Is there any possibility to retrieve all the Invoice data for one location from a single api call?
or
Can we filter the Invoice data by specific fields? (ex: created_at, updated_at)
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Pay or Refund Invoices
Square Developer
Create and Publish Invoices
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
You can use the SearchInvoices endpoint in the Invoices API to retrieve all invoices for a specific location. However, this endpoint does not support filtering by specific fields like created_at or updated_at.
I have tried SearchInvoices method with query parameters, but it’s still returns only 100 records at a time.
That is expected. The endpoint will only return 100 records at a time. To get the additional results you’ll need to paginate with the returned cursor.