Request a report file
This method is used to request a report in CSV or XLSX format. A link to the generated report can later be obtained in the response to the Get a report file by ID request.
Report types
At the moment, the following report type is available for this method:
-
balance_records
balance_records report contains the balance data at the merchant, shop or gateway level depending on whether merchant_id, shop_id or gateway_id are specified in the request.
If none of merchant_id, shop_id or gateway_id are specified, the report will contain balance records at the PSP level.
Request
The requests must:
- use HTTP Basic authentication with your PSP ID and secret key as a username and a password respectively;
- have the
Content-Typeheader set toapplication/json; - have the
Acceptheader set toapplication/json; - be UTF-8 encoded.
Send a POST request to {YOUR DWH URL}/api/v2/reports with the following parameters:
|
||||||||||||||||||||||||||||
{
"type": "balance_records",
"language": "en",
"format": "xlsx",
"user_id": 1098,
"notification_email": "test@test.com",
"request_params": {
"date_from": "2025-01-01T00:00:00.000000+03:00",
"date_to": "2025-11-30T23:59:59.999999+03:00",
"shop_id": 1673,
"currency": "USD"
}
}
Response
|
||||||||||||||||||||||||||
{
"data": {
"report": {
"id": "c3050350-358c-4136-9ba2-da187fc443f5",
"status": "queued",
"type": "balance_records",
"format": "xlsx",
"engine": "oban",
"attempt": 0,
"updated_at": "2025-12-15T12:22:38.821314Z",
"language": "en",
"user_id": 1098,
"psp_id": 1,
"created_at": "2025-12-15T12:22:38.821314Z",
"generated_at": null,
"expiry_date": null,
"file_url": null,
"notification_email": "test@test.com",
"request_params": {
"currency": "USD",
"date_from": "2024-12-31T21:00:00.000000+00:00",
"date_to": "2025-11-30T20:59:59.999999+00:00",
"shop_id": 1673
}
}
}
}