#mathan-Invoice
1 messages ยท Page 1 of 1 (latest)
its the only way or is any other option in stripe settings?
You can also use Subscription Schedule. But it's a bit complicated API to use
Okay
In billing_cycle_anchor if I set Sep 01 when I create a subscription, from the next cycle it automatically creates invoice 1st date(Oct 01, Nov 01)?
Yes, using UTC time
Okay, any examples for my scenario?
what example are you looking for specifically?
**In billing_cycle_anchor if I set Sep 01 when I create a subscription, from the next cycle it automatically creates invoice 1st date(Oct 01, Nov 01)? ** for this scenario
what I put in billing_cycle_anchor?
put in the UTC timestamp like what orakaro mentioned
e.g. 1660799971 - this isn't Sep 01, just so you know
Okay, if I put Sep 01, then next month it will create an invoice on Oct 01 right without any changes from my side (automatically)?
yes that's correct. And if you want to test it out without waiting, you can use https://stripe.com/docs/billing/testing/test-clocks
Okay that's great, any steps explanation to using testclocks?
it's mentioned in the link i provided, maybe you'd want to go through it first?
Okay
For example, now I am in one plan with a price of 600$ and I changed to another plan in 15 days in this scenario** I need to bill only for that 15 days like 300$**, what do I do?
your subscription is billing up front for the full month first right?
example : on Oct 1, the customer will pay for the period of Oct 1 - Oct 31
you can probably use subscription schedules as mentioned earlier : https://stripe.com/docs/billing/subscriptions/subscription-schedules
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases
https://stripe.com/docs/api/subscription_schedules
You can either convert an existing subscription into a subscription schedule, or start with a subscription schedule - phase 0 will be the plan of $600 up till day 15, then phase 1 start plan 2
I think it's not my question, For example, now am in one plan with 600$ monthly base price(usage-based) after 15 days i upgraded to another plan(updating subscription) and in this scenario i jus bill 15days bill like (600%30) * 2
do you have a Price which you've created for this $600 monthly base price (usage based) that i can take a look at?
i'm confused by what you mean by $600 monthly base price(usage-based)
i am using graduated billing so mentioned base price
as an example - something like this?
yes right
there's no easy way to do this with metered usage. Prorations aren't supported for metered usage. So what will happen is that it will charge the full base price + usage if you choose to invoice on the 15th day
the only way i can think of is for you to implement your own logic and perform the necessary calculations to create a invoice item to prorate for the period of days that is unused
Okay, the proration period did not work with metered billing??
yes - proration does not work with metered billing.
the base will not be prorated
any other ways to do this like other usage-based billing methods?
๐ I'm taking over this thread from alex, catching up now
When usage-based billing is used, the usage should be submitted to Stripe when the service is used ideally and customer will be charged for those usage for cancellation
Could you share the use case why proration is required for usage-based billing?
yes
In graduated billing, I set a base 200$ and a flat fee 20$ per quantity, In this scenario, for example In 30 days cycle customer just changed their plan after 15 days i just need to bill base amount of 100$ (depending upon date)
Let me think if this is possible
Okay
I don't have a clean way for you, but one possible way is to create two separated prices:
- One price for flat fee $200
- One price for usage based billing $20 per quantity
When creating a subscription, there will be two items. However, the flat fee will always be charged at the beginning of the cycle instead charging at end of cycle like usage based billing.
Alternatively, you can calculate the proration on your own and apply the unused amount in the form of discounts when updating/cancelling a subscription
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
it means two plans?
two prices/plans but you can use them on the same subscription
but I need to charge a flat price at the end of the cycle!
so you want to disregard the usage record for the month?
could you please elaborate more on your use case?
my use case:- for example I have one plan that has one** base price of 200$ + quantity price at the end of the cycle.** if the customer subscribed to this plan and after 15 days they changed to another plan so, in this case,** I just need to bill 15dys to cost only (for example (200%30) 2 = 100$). i am using usage-based billing*
do you have a subscription id with this example?
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!