#stripe101-sub-schedules

1 messages · Page 1 of 1 (latest)

vocal sorrel
#

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?

pseudo geode
#

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.)

vocal sorrel
#

Are you also trying to add a trial? req_VXkOZFx2s0rqA5 also sets trial_end?

pseudo geode
#

ah, yes actually, but i'm hoping to set the trial in the subscription creation.

that's another piece i need to work on.

vocal sorrel
#

Do you want the Subscription to end as soon as the trial is over, or the next full cycle after the trial is over?

pseudo geode
#

the latter

#

Dec. 1-7 trial
Dec. 7- Jan 7 first billing cycle
Jan 7 cancel at end of first billing cycle

vocal sorrel
#

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

pseudo geode
#

oh, cool! let me give a try.

#

also, for Subscriptions created via SubscriptionSchedules do all of the same Subscription events (webhooks) occur?

vocal sorrel
#

Yes, they should still be the same!

pseudo geode
#

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?

vocal sorrel
#

Yup, if you update the subscription I beileve it should update the schedule for you

pseudo geode
#

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

vocal sorrel
#

I believe so, yes 👍

pseudo geode
#

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 ..

vocal sorrel
#

Yes, if you want to know when the Subscription is going to be automatically cancelled by the schedule the best way to find this would be to check the end_date of the last phase

#

I need to head out, but if you need anything else @subtle kindle can help!