#Admiral
1 messages ยท Page 1 of 1 (latest)
Hi ๐ start_date is not a valid parameter when updating Subscription Schedules (it's only available when initially creating the Subscription Schedule). You will need to remove that parameter.
I suspect doing so will cause new errors to be encountered though, are you trying to update the existing phase of a Subscription Schedule?
thanks for your response, I have yearly subscription, as user subscribes for that subscription, I want to trigger a schedule so it cancels the subscription after 1 year. and user doesn't get invoice after one year anymorew
Ah, gotcha. So I think you'll still need to include start_date within the first object inside of phases.
When updating a Subscription Schedule the request will try to unset any parameter that is currently set on the Subscription Schedule which isn't provided again in the update request. So you will need to pass several existing values back in to the update request, such as phases.start_data.
thank you, another question, if I want to include one day free trial to the subscription, then I have to add "trial_end" to that phase too? in unix format?
Yup, exactly.
thanks a lot for your help, really appreciate that ๐