#でんでんAIO-webhooks
1 messages · Page 1 of 1 (latest)
hi there! what's the difference between I have signed up for a subscription and I have received a subscription.?
I'm sorry, the fourth is wrong. The correct one is:
The fourth is a webbook that tells you that you have canceled your subscription.
webbook that tells me that I have completed payment : you can use invoice.paid https://stripe.com/docs/api/events/types#event_types-invoice.paid
webbook that tells me that I have signed up for a subscription / webhook that tells you that you have completed a recurring payment : You can look at the billing_reason property on invoice.paid event. Starting with API version 2018-10-31, it will have the value subscription_create if this invoice was the first one for the current subscription. https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
webbook that tells you that you have canceled your subscription : customer.subscription.deleted https://stripe.com/docs/api/events/types#event_types-customer.subscription.deleted