- Report File Create
Request a payout report, generated in the background and stored for download. Takes the same filter as POST /v3/reports/payout.
The report starts out pending: poll GET /v3/reports/files/{id} until file_status is success, then fetch it through GET /v3/reports/files/{id}/presigned-url.
Filter on the effective status — the one the report reports, overrides applied
When true, ids holds external_id values from the original payment requests rather than LeanX ids
Only report these payments. An id that matches nothing still gets a row, carrying just the id; one whose payment status or payment_method excludes is left out.
Only payments of these methods; omit for any
- Mock serverhttps://docs.leanx.me/_mock/openapi/v3/reports/files/payout/generate
- Leanx Test serverhttps://api.leanxtest.me/v3/reports/files/payout/generate
- Leanx Production serverhttps://api.leanx.me/v3/reports/files/payout/generate
curl -i -X POST \
https://docs.leanx.me/_mock/openapi/v3/reports/files/payout/generate \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"country": "BGD",
"status": [
"queued"
],
"external": false,
"ids": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"payment_method": [
"bank_transfer"
],
"sorting_order": "asc"
}'Successful Response
Report id, for GET /v3/reports/files/{id} and the presigned download URL.
Kind of report.
Generation status. The file can be downloaded once this is success.
true if the scheduler created this report, false if you requested it.
Cadence at which the scheduler auto-generates a client report: daily covers yesterday, monthly last month, both in the schedule's zone.
The filters the report was generated with.
Payout report parameters available to API clients.
{ "id": "string", "file_name": "string", "content_type": "string", "report_type": "payout", "file_status": "pending", "auto_generated": true, "period": "daily", "created_at": "2019-08-24T14:15:22Z", "params": { "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z", "country": "BGD", "status": [ … ], "external": false, "ids": [ … ], "payment_method": [ … ], "sorting_order": "asc" } }