#CowLover24
1 messages · Page 1 of 1 (latest)
You can use the list invoices endpoint to filter invoices by status: 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.
Looks like this is on the team's radar for the search api though
Should be released eventually
Alrighty coolio looking forward to it! Using the list invoices endpoint can I pull all of the invoices excluding a certain status. That is the functionality I am needing. Say I want to exclude draft invoices from the list is that possible? Also, does the list endpoint have the capability of returning the total_count like with the search endpoint?
Ah unfortunately the answer is no to both of those
You can filter by a status but not a way to exclude only 1 status
You get has_more with the list endpoint but not a count
Hmm darn okay. Well, I think I can work with my current solution until the search endpoint gets updated. Thank you for your assistance it is greatly appreciated. Have a great day friend!