#Suren

1 messages · Page 1 of 1 (latest)

atomic robinBOT
red jasper
#

can you share more context?

#

what webhook event are you referring to? what request are you expecting it to action on?

knotty narwhal
#

I calling schedule Subscription.update method and I expect action webhook subscription.update or subscription_schedule.updated

red jasper
#

can you share the request id of the subscription schedule update request?

knotty narwhal
#

req_FAaU9N4QQ5ms9k

red jasper
knotty narwhal
#

Yes it's right! can I have a another question ?

tulip sequoia
#

sure

knotty narwhal
#

This is my way schedule subscription! when I try update subscription from monthly to yearly it's working! but for example customer update monthly to yearly and after that customer update subscription from yearly to monthly how can I remove last subscription schedule ?

tulip sequoia
#

do you mean remove the last phase?

#

you'd just exclude it. When you update the schedule, it replaces all existing phases with the phases you pass. So if it has two phases, and you make an API call to update the schedule, passing only one phase in the phases array, the other one is effectively removed.

knotty narwhal
#

You can not modify the start date of the current phase. I catch this error

#

I don't know why

#

req_mm2Oq2lBBztyuw

tulip sequoia
#

the current phase started at 1672394563 , you can't make an update that changes the start date to something else (1672394657)