#kitem - subscription schedule

1 messages · Page 1 of 1 (latest)

celest atlas
#

Hi there!

#

Updating the phases of subscription schedule can be tricky.

dense sand
#

Hey, yes i see 😅 I don't understand why I can create it the first time and it work, if i release and create new one it got me these errors (Im using the same syntax)

celest atlas
#

Here it looks like you need to set end_date or iteration on the first phase.

dense sand
#

yes already tried, let me find the req_id with that

#

req_wS8LnIkz0QGNXC

celest atlas
#

the existing schedule has end_date: 1658650810, so could you try to add that to the phase instead of the iteration?

dense sand
#

ok, when i create the new schedule

#

i get that end_date from that and put that inside the update

#

let me try

#

req_hOpbfLoUN9DohN here we are

#

I've created a new subscription and retried all steps, got
The subscription schedule update is missing at least one phase with a start_date to anchor end dates to.

celest atlas
#

got it, and now if you add the start date from the existing schedule, I think it should work. for the schedule you just shared it should be start_date: 1656059745

dense sand
#

ok seems that passing the start_date too it works

#

so i need to pass the start_date and end_date

#

of the subscriptionSchedule I've just created

#

I thought it inherited the "period" from subscription :v

celest atlas
#

I thought it inherited the "period" from subscription :v
It does, but when you update the schedule, Stripe needs to match the existing phases to the new phases. And one way to do so it by providing a start/end date.

dense sand
#

okok, thank you

#

seems clear