#mathan-usage-sub

1 messages · Page 1 of 1 (latest)

cosmic turtle
dusk vessel
#

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 ?

cosmic turtle
#

On the upgrade, the customer would be credited for any unused time (28 days) on the old plan

dusk vessel
#

what i need to set on proration for this scenario?

#

its working default or can i add "create_proration"

cosmic turtle
#

You should pass proration_behavior when making your update call yep

cosmic turtle
#

The value you pass depends on the behaviour you want

cosmic turtle
dusk vessel
#

Yes, depending upon my scenario which is work?

cosmic turtle
#

I guess always_invoice

#

Try it out

dusk vessel
#

thanks, its only bill depending upon the days we use right?

cosmic turtle
#

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.

Learn about prorations.

dusk vessel
#

when i use "always_invoice" right?

cosmic turtle
#

Yes

dusk vessel
#

how can setup billing cycle 1-to-1 (for example aug 01 - sep 01 for every month)?

tall bronze
#

you could change the billing_cycle_anchor

#

when creating the subscription

dusk vessel
#

but its work only for one month next month i need to update it?

tall bronze
#

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

tall bronze
#

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

dusk vessel
#

but i update new plan today in testmode stripe shows next invoice on 17th sep

tall bronze
#

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

dusk vessel
#

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

tall bronze
#

oh when updating the subscription if you don't want the billing cycle to change you should pass billing_cycle_anchor: 'unchanged'

dusk vessel
#

Okay after sep 01 what will happen it will change to oct 01??

tall bronze
#

yes

dusk vessel
#

any other ways to changes in stripe account ?

tall bronze
#

what do you mean?

dusk vessel
#

any way to change this action in stripe account manualy

tall bronze
#

change what exactly? could you please elaborate with more details on what you're trying to achieve?

dusk vessel
#

i add billing_cycle_anchor but any other ways to do this or second option?