#Duane-failed-invoices
1 messages · Page 1 of 1 (latest)
Hi there! You can list invoices using our List Invoices API: https://stripe.com/docs/api/invoices/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In the Dashboard the status shows as "failed" but in the API is shows as "open". How do we find just the ones that "failed".
Ah I see, thanks for clarifying.
The Dashboard is showing failed because there was a failed payment attempt for the invoice
You can also filter right in the Dashboard for failed invoices
And then export those
I am actually trying to pull this through the API. I need to void an invoice in the ERP system if the Stripe invoice fails.
Gotcha, okay so when you list open invoices you will want to look at the charge property: https://stripe.com/docs/api/invoices/object?lang=curl#invoice_object-charge
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If that is not empty then the invoice will be "failed"