#atul

1 messages · Page 1 of 1 (latest)

midnight lagoonBOT
cursive moss
#

Do you want to listen to the first Invoice of the Subscription, or every Invoices?

summer mauve
#

every invoice

#

every successfully paid invoice.

cursive moss
summer mauve
#

Do you got my question ??

#

Please give me relevant reply

cursive moss
#

Yes, I answered above. Did you check the webhook event's content?

summer mauve
#

yes
I am able to catch invoice.paid event.
I am not able to identify for which subscription invoice is paid

cursive moss
#

So what do you see inside the event?

#

object data

summer mauve
#

There is data like due_amount lline `biiling_reason'

#

req_lrv7WAw1HlQsKo

cursive moss
#

That a request id, not an event id

#

Do you have an exact event id for invoice.paid? ie evt_xxx

summer mauve
#

evt_1LpR0gHxaKwf0RtdwU3VFdir

cursive moss
#
{
  "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