Export invoices asynchronously
curl -X GET "https://test-api.kashier.io/v2/paymentRequest/export-async"{ "body": { "status": "processing" }, "message": "success"}Starts an invoice export in the background and emails the finished file to the account that made the request. Use this instead of Export invoices when the date range is wide enough that a synchronous download would time out.
Authorization
secretKey Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).
In: header
Query Parameters
Filter by payment status.
Value in
- "unpaid"
- "on hold"
- "paid"
- "voided"
Start of the creation-date range (e.g., 2026-01-01).
End of the creation-date range (e.g., 2026-06-30).
Number of records per page.
Page number.
Response Body
application/json
application/json
application/json
application/json
application/json
Export invoices GET
Exports the invoices matching your filters as a spreadsheet, returned inline in the response. For large exports use Export invoices asynchronously instead, which emails you the file once it is ready.
Import invoices POST
Creates many invoices at once from an uploaded spreadsheet. Each row becomes an invoice; the response reports how many rows were accepted and which ones failed, so you can fix and re-upload just th…