#jscheel

1 messages · Page 1 of 1 (latest)

humble apexBOT
keen olive
#

👋 Taking a look now - sorry for the wait

unique meadow
#

no worries @keen olive !

keen olive
#

Since your update request is changing the current phase, you need to make sure to set that one

unique meadow
#

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 🤦‍♂️

keen olive
#

*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?

unique meadow
#

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.

keen olive
#

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)

unique meadow
#

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!