#vijju
1 messages · Page 1 of 1 (latest)
hi
i want to update the price for particular phase
i've created schedule using iterations not with start date and end date
so now can i only update the price for particular phase without using start date and end date
schedule Id : sub_sched_1MtQhNSJsMWpZw6ef5fN1n0O
Hey! Taking over for my colleague. The start and end date on subscription scheduler are optional according to the API doc:
https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-start_date
https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-end_date
Let me do a quick test
OK just did a test, you should provide at least one phase with start date
so even if you don't set start_date on the creation of the subscription schedule, just go a fetch on the subscription scheduler, and get the first phase's start date and set it when doing the update
ok
do i need to give all the phases information again
to update one phase price?
or just i can use phase[1][items][0][price] is enough?
do i need to give all the phases information again
to update one phase price?
Yes you need to provide all phases even if you want to update just one phase. Otherwise, the update will be considered as if you wanted to remove other phases
ok
thanks
so i can give first phase start date and for next phases i will give iterations that should work right?
yes you can do a test for that.
yes it is working thanks