Fetch a single generated report by id.
Only reports generated by the caller are visible. Use this to poll file_status after requesting a report: pending and processing mean the report is still being built, success means it is ready for download and fail means generation failed.
Security
bearerAuth
- Mock serverhttps://docs.swiftxpay.com/_mock/openapi/v2/reports/{id}
- Swiftx Test serverhttps://api.swiftxapptest.net/v2/reports/{id}
- Swiftx Production serverhttps://api.swiftxapp.net/v2/reports/{id}
curl -i -X GET \
'https://docs.swiftxpay.com/_mock/openapi/v2/reports/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'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" }