#atul
1 messages · Page 1 of 1 (latest)
Do you want to listen to the first Invoice of the Subscription, or every Invoices?
Okie. For each invoice.paid you will receive an Invoice object. It has the property subscription inside https://stripe.com/docs/api/invoices/object#invoice_object-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, I answered above. Did you check the webhook event's content?
yes
I am able to catch invoice.paid event.
I am not able to identify for which subscription invoice is paid
That a request id, not an event id
Do you have an exact event id for invoice.paid? ie evt_xxx
evt_1LpR0gHxaKwf0RtdwU3VFdir
{
"id": "evt_1LpR0gHxaKwf0RtdwU3VFdir",
"object": "event",
"api_version": "2022-08-01",
"created": 1664950994,
"data": {
"object": {
"id": "in_1LpR0fHxaKwf0RtdKh7y4J0h",
"object": "invoice",
"account_country": "US",
...
"subscription": null,
...
This invoice doesn't have any Subscription because it was a standalone Invoice