#でんでんAIO-webhook
1 messages · Page 1 of 1 (latest)
Can you give an example where are you seeing those?
invoice.paid is an Invoice object https://stripe.com/docs/api/invoices/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the properties should be listed there
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I did a check here.
Yes that's correct. where do you see subscription_cycle and subscription_update?
In the billing reason of the invoice object.
The relevant section reads as follows
billing_reason
string
Indicates the reason why the invoice was created. subscription_cycle indicates an invoice created by a subscription advancing into a new period. subscription_create indicates an invoice created due to creating a subscription. subscription_update indicates an invoice created due to updating a subscription. subscription is set for all old invoices to indicate either a change to a subscription or a period advancement. manual is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The upcoming value is reserved for simulated invoices per the upcoming invoice endpoint. subscription_threshold indicates an invoice created due to a billing threshold being reached.
ah that's value for the billing_reason parameter
It's pretty much explained there, isn't it?
subscription_update is from when the Subscription is updated via API, i.e Update Subscription API
subscription_cycle is from when it's automatically renewed
So the webhook that occurs when a customer makes a recurring payment is subscription_cycle?
yes
OK!Thank you!