API reference
Reports
CSV, Excel and PDF exports rendered in the background. Details in the guide →
- POST/v1/reportsRequest a report (rendered asynchronously; CSV and Excel up to 10 000 rows, PDF up to 2 000)
- GET/v1/reportsList recent reports (kept for 7 days)
- GET/v1/reports/{id}Retrieve a report
- GET/v1/reports/{id}/downloadDownload a ready report file
/v1/reportsRequest a report (rendered asynchronously; CSV and Excel up to 10 000 rows, PDF up to 2 000)
reportsKey: live or testRequest body
kindstringrequiredValues:
invoiceswithdrawalsbalance_transactionswebhook_deliveriesformatstringoptionalValues:
csvxlsxpdfDefault: "csv"
langstringoptionalLanguage of the column headers and the PDF title.
Values:
trenDefault: "en"
fromstring (date-time)optionalInclusive start (ISO 8601, UTC).
pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
tostring (date-time)optionalExclusive end (ISO 8601, UTC).
pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
statusarray<string>optionalOnly rows in these states (invoices, withdrawals and webhook_deliveries).
≤ 10 items
Responses
- 202 Returns the Report object
curl -X POST https://hisarpay.com/v1/reports \
-H "Authorization: Bearer $HISARPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"kind": "invoices",
"format": "csv",
"lang": "en",
"from": "2026-10-01T00:00:00Z"
}'/v1/reportsList recent reports (kept for 7 days)
reportsKey: live or testResponses
- 200 OKJSON response
2 fields
dataarray<Report>next_beforestring | number· nullable
curl https://hisarpay.com/v1/reports \
-H "Authorization: Bearer $HISARPAY_API_KEY"/v1/reports/{id}Retrieve a report
reportsKey: live or testPath parameters
idstring (uuid)requiredThe record id.
Responses
- 200 OKReturns the Report object
curl https://hisarpay.com/v1/reports/0b6a3f52-3c1d-4a7e-8f4b-1d2c3e4f5a6b \
-H "Authorization: Bearer $HISARPAY_API_KEY"/v1/reports/{id}/downloadDownload a ready report file
reportsKey: live or testPath parameters
idstring (uuid)requiredThe record id.
Responses
- 200 OKJSON response
curl https://hisarpay.com/v1/reports/0b6a3f52-3c1d-4a7e-8f4b-1d2c3e4f5a6b/download \
-H "Authorization: Bearer $HISARPAY_API_KEY"