#olli - unpaid invoices
1 messages · Page 1 of 1 (latest)
Yeah you can do a lot of filtering with this endpoint: 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.
what status would i want to filter by? im assuming an invoice that has a failed payment would still have the status open until billing marks it as uncollectible?
Yeah that's true. But that would just depend on what kind of behavior you want. Invoices can also be void
we reattempt payments using stripe billing, cancel the subscription, then mark the invoice as uncollectible if all payments fail
the bit i was really quite confused about is how to decide whether or not an invoice has failed payments. do you know what we'd want to look out for?
Gotcha. So for that I recommend proactively monitoring webhook events for failed payments: https://stripe.com/docs/webhooks and https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures
Particularly this event: https://stripe.com/docs/api/events/types#event_types-invoice.payment_failed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
got it, thanks :)
No problem!