#Suren
1 messages · Page 1 of 1 (latest)
can you share more context?
what webhook event are you referring to? what request are you expecting it to action on?
I calling schedule Subscription.update method and I expect action webhook subscription.update or subscription_schedule.updated
can you share the request id of the subscription schedule update request?
req_FAaU9N4QQ5ms9k
i see a customer.subscription.updated event : https://dashboard.stripe.com/test/events/evt_1MKdeDBfTh1Z0SMkIpu7JULN - this was sent to your webhook endpoint.
i also see a subscription_schedule.updated event generated : https://dashboard.stripe.com/test/events/evt_1MKdwhBfTh1Z0SMkWQJxv3v7 - you updated your webhook endpoint at 30/12/2022, 02:29:04, this event was generated at 30/12/2022, 02:28:07 - that's why it wasn't sent to your webhook endpoint
Yes it's right! can I have a another question ?
sure
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 ?
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.
You can not modify the start date of the current phase. I catch this error
I don't know why
req_mm2Oq2lBBztyuw
the current phase started at 1672394563 , you can't make an update that changes the start date to something else (1672394657)