#PghDev-webhook
1 messages ยท Page 1 of 1 (latest)
Is this a popular ask by Stripe Developers?
I've seen it asked for before, but it's been like this for a while now - since past_due isn't a status on the Invoice, its not something we can emit a invoice.updated event for
I saw due_date as a property in the invoice
Yes, so that's something you can store and use yourself to determine when an Invoice is past_due with your own logic
Can I make a call an API call to Stripe to get invoices where the status is open/unpaid?
Yeah, you can list invoices and specify status (see https://stripe.com/docs/api/invoices/list#list_invoices-status)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay will take a look into it. I think creating a webhook based on stripe realizing that an invoice is past due or current date is greater than the invoice's due date is a good idea
Yeah I can definitely flag it as feedback
Thank you Karbi. I am taking off but have a good night ๐