#jscheel
1 messages · Page 1 of 1 (latest)
👋 Taking a look now - sorry for the wait
no worries @keen olive !
You're missing the top-level proration_behavior: none (outside of any of the phases) https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior
Since your update request is changing the current phase, you need to make sure to set that one
ahhhh, ok, that makes sense. Just to clarify, there are other parts of the current phase that I can only change by modifying the phase though, correct? Or have I completely misunderstood schedules?
I think I just missed the proration_behavior because I'm having to do a bunch of work to create a delta of the phases 🤦♂️
*Just to clarify, there are other parts of the current phase that I can only change by modifying the phase though, correct? *
I'm not fully understanding your question - can you maybe give some more specifics?
quantity for example. If I have a subscription that currently has a schedule and is currently in a schedule phase, the only way to update the quantity is to get the schedule, get the current phase, and update it there.
Gotcha! Then what you're doing (updating the schedule itself) is correct
I believe you could update the Subscription, and that would change the underlying current phase, but it wouldn't change any future phases (which is what you want if I'm understanding you correctly)
hmm, every time I've tried to update a subscription that has a schedule, the api returns an error telling me to update the schedule. But that's ok, that's what I've written. Wrote about 1000 lines of specs yesterday for it too, and still missed the top-line proration_behvior though. Thanks for clarifying for me!