#mathan-usage-sub
1 messages · Page 1 of 1 (latest)
You need to report usage to us via the API/Dashboard, and the invoice will be generated at the end of the billing period to reflect usage based on the pricing model: https://stripe.com/docs/billing/subscriptions/usage-based#report
that's okay. but my question is if I set a base amount of 500$ for my current plan and I used 2 days and change to the next plan, in this scenario I just need to make a bill for that 2 days only not 30days ?
Ok, that's something else entirely called prorations: https://stripe.com/docs/billing/subscriptions/prorations
On the upgrade, the customer would be credited for any unused time (28 days) on the old plan
what i need to set on proration for this scenario?
its working default or can i add "create_proration"
You should pass proration_behavior when making your update call yep
the value ?
The value you pass depends on the behaviour you want
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, depending upon my scenario which is work?
thanks, its only bill depending upon the days we use right?
Well your customers will be billed upfront for the billing cycle. If they upgrade mid cycle, credit will be applied for that unused time
How this works is detailed here: https://stripe.com/docs/billing/subscriptions/prorations#:~:text=Changes to a,the new price.
Changes to a subscription such as upgrading or downgrading can result in prorated charges. For example, if a customer upgrades from a 10 GBP per month subscription to a 20 GBP option, they’re charged prorated amounts for the time spent on each option. Assuming the change occurred halfway through the billing period, the customer is billed an additional 5 GBP: -5 GBP for unused time on the initial price, and 10 GBP for the remaining time on the new price.
when i use "always_invoice" right?
Yes
how can setup billing cycle 1-to-1 (for example aug 01 - sep 01 for every month)?
but its work only for one month next month i need to update it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if you are using a monthly recurring price setting the billing cycle to something like next month on the 1st, it will get you a prorated invoice for the 1st month and all next invoices would start from the 1st of the according month
how can do this ?
e.g. if you create a subscription today and put the billing_cycle_anchor to Sept 1st, the 1st generated invoice would be from Aug 17 till Sept 1st and then the billing cycle would be from Sept 1st till Oct 1st and so on
but i update new plan today in testmode stripe shows next invoice on 17th sep
you can't do what I explained when updating an existing subscription
this is only applicable for subscription creation
if you need to do it on updates then it's a bit messy and you'd have to either introduce a trial period or deal with Subscription Schedules
Okay
i created one subscription with billing_cycle_anchor = sep 01 but when i changed a plan invoice date also changed to next 30 days not 1st date
oh when updating the subscription if you don't want the billing cycle to change you should pass billing_cycle_anchor: 'unchanged'
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay after sep 01 what will happen it will change to oct 01??
yes
any other ways to changes in stripe account ?
what do you mean?
any way to change this action in stripe account manualy
change what exactly? could you please elaborate with more details on what you're trying to achieve?
i add billing_cycle_anchor but any other ways to do this or second option?