#Rahul Kuthuru

1 messages · Page 1 of 1 (latest)

lavish rivetBOT
carmine stag
#

Hi, could you elaborate a bit more?

#

Thanks, this looks like a list of webhook events

#

You would want to configure a webhook endpoint then listen to specific events to catch those information. For example the first line looks like a customer.subscription.created event

solemn tusk
#

Hi Orakaro, Thanks for the quick response. Instead of configuring a webhook endpoint and storing the data in my database, can I fetch these data, when I need them from stripe just like fetch other data of the customer like card expiry date etc

carmine stag
#

It depends on which data you want to fetch, ie. if you want to fetch all Subscription of that Customer? or all Invoices?

#

That list is a list of webhook events really, so setting up a webhook endpoint is the best way to have all of them in one place

solemn tusk
#

When we generate a invoice and send it to the customer through stripe. I would like to know the status of the invoice , whether he has declined it or was not paid due to insufficent funds. We are having a webhook endpoint when it is paid and saving the data. I would like to know the status in the above two cases

carmine stag
#

Okie, I think it should be

invoice.payment_failed
Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.

solemn tusk
#

How do I know what events belongs to a specific customer

#

There is no customer Id in the event recieved. Correct me if I am wrong

carmine stag
carmine stag
#

Hi, I am stepping down for the day. If you have further question feel free to ask in the channel!

#

The Customer Id should be there per above Doc!