#ninjaparade
1 messages · Page 1 of 1 (latest)
hello! there's a current_phase hash, https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-current_phase - i'm guessing that's what you're looking for?
ah I missed that, let me try and see if that solves my issue, which I think it would
if I update the schedule, for example I have 2 phases, 1 year on price x 1 year on price y, if the customer upgrades/downgrades I need to change price y (second year price)
so I am assuming I could make a schedule that starts when the shcedule was first created? if that makes sense and set the second phase to the changed price?
you already have a schedule for the subscription, with 2 phases, and the customer is on phase 1, then you can just update the current schedule's phase 2 to the new price
what if they are still on phase 1 though, thats what I am asking.
yeah, it's fine if they're on phase 1
you just update phase 2
unless you're asking how to update phase 1 also?
I can update just one phase not all of them?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
when you update a schedule, you need to pass in all current and future phases that you want to keep.
with this it reads (to me) I would need to pass all the phases again