Skip to content

Report List

Request

List generated reports, newest first.

Returns only reports generated by the caller. Results can be narrowed with the optional body filter (report type, country and a created_at time range).

Security
bearerAuth
Query
limitinteger, [ 0 .. 1000 ](Limit)
Default:50
offsetinteger, >= 0(Offset)
Default:0
Bodyapplication/json
Any of:

Report list filter

report_typeClientReportType (string) or null
Any of:

Report types API clients can generate and filter by.

string(ClientReportType)
Enum:"payout""statement""wallet""funding_history""reversed_payouts"
countryApiCountry (string) or null
Any of:
string(ApiCountry)
Enum:"BGD""IND""PAK""PHL""NPL""EGY""VNM""NGA""LKA"
start_tsstring or null(Start Ts)
Any of:
string (date-time)
end_tsstring or null(End Ts)
Any of:
string (date-time)
curl -i -X PUT \
  'https://docs.leanx.me/_mock/openapi/v2/reports/list/?limit=50&offset=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "report_type": "payout",
    "country": "BGD",
    "start_ts": "2019-08-24T14:15:22Z",
    "end_ts": "2019-08-24T14:15:22Z"
  }'

Responses

Successful Response

Bodyapplication/json
Array [
idstring, (uuid)(Id)required

Report id, for GET /v2/reports/{id} and the presigned download URL.

file_namestring(File Name)required

Report file name.

content_typestring(Content Type)required

MIME type of the file.

report_typestring(ReportType)required

Kind of report.

Enum:"payout""statement""wallet""funding_history""pnl""reversed_payouts""agent_payout"
file_statusstring(BatchJobItemStatus)required

Generation status. The file can be downloaded once this is success.

Enum:"pending""processing""success""fail"
auto_generatedboolean(Auto Generated)required

true if the scheduler created this report, false if you requested it.

periodReportPeriod (string) or null
Any of:

Cadence at which the scheduler auto-generates a client report: daily covers yesterday, monthly last month, both in the schedule's zone.

string(ReportPeriod)
Enum:"daily""monthly"
created_atstring, (date-time)(Created At)required

When the report was created (UTC).

params(ClientReportParams (ClientPayoutReportParams (object) or ClientStatementReportParams (object) or ClientWalletReportParams (object) or ClientFundingHistoryReportParams (object) or ClientReversedPayoutsReportParams (object))) or null(Params)required
Any of:

The filters the report was generated with.

Any of:

Payout report parameters available to API clients.

Mirrors the client-facing parameters of stream_order_results so a generated report can be reproduced exactly from the persisted params.

]
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" } ]