#nukesforbreakfast_api

1 messages ¡ Page 1 of 1 (latest)

long kelpBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1413579826736005140

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

humble horizon
#

The list invoice API doesn't support sort customisation by the fields, including finalized_at. The response will always be sorted by creation date

round horizon
#

is this something that's possible with the search API?

#

I guess not, I don't see finalized_at in the list of fields the search API allows invoices to be searched on

#

and it doesn't seem to have a concept of sorting the search results.

humble horizon
#

Sorting by fields are not supported in all Stripe APIs

#

I'd recommend listening to invoice.finalized event and save the timestamp to your own database. You can then search within your database when needed

round horizon
#

Alright, thanks.