#stripe101-sub-schedules
1 messages · Page 1 of 1 (latest)
Do you have a request ID I can take a look at? Can you also specify how specifically you're trying to update the subscription schedule?
req_1eZDCRa0mb5W0A "The subscription schedule update is missing at least one phase with a start_date to anchor end dates to."
req_VXkOZFx2s0rqA5 "You can not modify the start date of the current phase."
I just want to tell the created subscription to cancel after 1 iteration.
(I might have sent the wrong req id's, i was placing the start_date a few different places to test out.)
Are you also trying to add a trial? req_VXkOZFx2s0rqA5 also sets trial_end?
ah, yes actually, but i'm hoping to set the trial in the subscription creation.
that's another piece i need to work on.
Do you want the Subscription to end as soon as the trial is over, or the next full cycle after the trial is over?
the latter
Dec. 1-7 trial
Dec. 7- Jan 7 first billing cycle
Jan 7 cancel at end of first billing cycle
When you create a Subscription schedule from a trialing Subscription it should create the two phases for you automatically - the first for the trial, and the second for the next full billing cycle. All you would have to do to is update the created Subscription Schedule and set end_behavior: cancel and you should be good to go
oh, cool! let me give a try.
also, for Subscriptions created via SubscriptionSchedules do all of the same Subscription events (webhooks) occur?
Yes, they should still be the same!
Great. And just to be extra sure, updating the Subscription quantity is also the same, I don't need to update the Subscription Schedule quantity?
Yup, if you update the subscription I beileve it should update the schedule for you
Or in general, updating the subscription is still "first-class" and the schedule is exactly that and will try to update the subscription via phases etc.?
I believe so, yes 👍
nvm
Ok, yeah, so how would I go about getting the subscription end_date?
I see that the end_date is marked in the dashboard, "Ends" label, here sub_1K6OrqKw8DGVSI1LbcIu8JOp
Do I need to use the response from the Schedule update and loop through the phases?
Or will the subscription itself be updated? (i'm not seeing this event)
oh woops i used the don't cancel button one sec ..