#Cory - API errors
1 messages · Page 1 of 1 (latest)
Hey there, can you explain what you mean by all the api errors here? or share an example?
You likely will want to handle API errors as they happen on payments. You can review a limited history of previous errors in your dashboard logs (give me a sec to get you a link).
I mean, when a payment fails on a subscription invoice, I want to email them and let them know what exactly failed on the card, IE, zipcode, no funds, expired
(Dashboard logs filtered to errors here: https://dashboard.stripe.com/test/logs?success=false&method[]=post&method[]=delete&direction[]=self&direction[]=connect_in )
Ah, it sounds like you are referring more towards events not API request logs
yea
So for this you'll likely want to filter to invoice.payment_failed events
eg, you can inspect these in the dashboard:
https://dashboard.stripe.com/test/events?type=invoice.payment_failed
Or you can list past events using the API: https://stripe.com/docs/api/events/list#list_events-types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For future events, though, you should make sure to set up a webhook endpoint and have it set to receive these events and do the necessary processing on each event as it happens
If you haven't explored this yet, then a good docs entry point is here: https://stripe.com/docs/webhooks
If you have an endpoint already, then make sure it's set to receive and handle these invoice events.