Request an asynchronous report generation.
Creates a report file record with status pending and enqueues a background job that builds the report from the supplied parameters and uploads it to storage.
Currently only the payout report type is supported.
Security
bearerAuth
ORDER BY direction with explicit nulls handling.
ASC => ASC NULLS LAST DESC => DESC NULLS LAST
Both place nulls at the end, which should be a sane default
Default:"desc"
Enum:"asc""desc"
- Mock serverhttps://docs.leanx.me/_mock/openapi/v2/reports/{report_type}
- Leanx Test serverhttps://api.leanxtest.me/v2/reports/{report_type}
- Leanx Production serverhttps://api.leanx.me/v2/reports/{report_type}
curl -i -X POST \
'https://docs.leanx.me/_mock/openapi/v2/reports/{report_type}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"country": "BGD",
"sorting_order": "asc",
"start_ts": "2019-08-24T14:15:22Z",
"end_ts": "2019-08-24T14:15:22Z",
"status": [
"queued"
],
"ids": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"external": false
}'Successful Response
Kind of report.
Enum:"payout""statement""wallet""funding_history""pnl""reversed_payouts""agent_payout"
Generation status. The file can be downloaded once this is success.
Enum:"pending""processing""success""fail"
true if the scheduler created this report, false if you requested it.
Response
{ "auto_generated": false, "content_type": "text/csv", "created_at": "2024-12-01T01:02:03.000000Z", "file_name": "payout_IND_2024-12-01.csv", "file_status": "success", "id": "00000000-0000-4000-A000-000000000000", "report_type": "payout" }