#lucas_reddy
1 messages ยท Page 1 of 1 (latest)
๐ 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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry i am confused, can you send me params here?
what do you mean?
passed billing_cycle_anchor:"none" and result is => billing_cycle_anchor: must be one of now or unchanged
i already try this
it's proration_behavior: "none" and billing_cycle_anchor: "unchanged"
StripeInvalidRequestError: Changing plan intervals. There's no way to leave billing cycle unchanged.
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
ok got it,
in that case you need to do 2 API calls
first one to create the Subscription Schedule from_subscription https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the second is to update the schedule and add a next phase with the modifications https://stripe.com/docs/api/subscription_schedules/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
note that you'd need to still pass the old phase as is and just change the end_date
ok thank you so much ๐