#Admiral

1 messages ยท Page 1 of 1 (latest)

open groveBOT
jaunty latch
#

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?

vocal oak
#

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

jaunty latch
#

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.

vocal oak
#

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?

jaunty latch
#

Yup, exactly.

vocal oak
#

thanks a lot for your help, really appreciate that ๐Ÿ™‚