#geimsdin - schedule webhook
1 messages · Page 1 of 1 (latest)
Hi there
You need to listen to the webhook invoice.paid
https://stripe.com/docs/billing/subscriptions/webhooks#:~:text=Sent when the invoice is successfully paid. You can provision access to your product when you receive this event and the subscription status is active.
That is the reliable one? Does it indicate also the phase?
It is the reliable one to track if the user paid the subscription or not as mentioned in the documentation and keep the subscription with the correct status
But if you want to know the current phase, which is this field https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-current_phase
You need to fetch it from the API after you get the webhook. Webhook invoice.paid -> subscription -> subscription_schedules.current_phase
Ok, thanks, very detailed