#lucas_reddy

1 messages ยท Page 1 of 1 (latest)

red swanBOT
spare dawn
#

๐Ÿ‘‹ happy to help

#

if you want the subscription to apply on the next cycle without any proration you can use the Subscription Update API with https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior none and https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor unchanged

lusty shoal
#

Sorry i am confused, can you send me params here?

spare dawn
#

what do you mean?

lusty shoal
#

passed billing_cycle_anchor:"none" and result is => billing_cycle_anchor: must be one of now or unchanged
i already try this

spare dawn
#

it's proration_behavior: "none" and billing_cycle_anchor: "unchanged"

lusty shoal
#

StripeInvalidRequestError: Changing plan intervals. There's no way to leave billing cycle unchanged.

spare dawn
#

Oh yeah sorry I haven't thought about that, you're right, in this case you would need to use Subscription Schedules

#

I was hoping to avoid this, but I think there's no other alternative

lusty shoal
#

ok got it,

spare dawn
#

in that case you need to do 2 API calls

#

note that you'd need to still pass the old phase as is and just change the end_date

lusty shoal
#

ok thank you so much ๐Ÿ™‚