Skip to content

Report Schedule Create

Request

Schedule a report. Daily reports run at report_time for the day before, monthly ones at that time on the 1st for the month before, both in timezone's days (UTC if none). funding_history covers every country and takes no country.

Security
bearerAuth
Bodyapplication/jsonrequired
periodstring(ReportPeriod)required

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

Enum:"daily""monthly"
report_timestring, (time)(Report Time)required

Time of day, on a quarter hour

timezoneSupportedTimeZone (string) or null
Any of:

Zone of the time and of the days reported on

string(SupportedTimeZone)
Enum:"Asia/Kolkata""Asia/Karachi""Asia/Dubai""Canada/Mountain""Europe/Paris"
api_versionstring(ApiVersion)required
Enum:"v2""v3"
report_typestring(ClientReportType)required

Report types API clients can generate and filter by.

Enum:"payout""statement""wallet""funding_history""reversed_payouts"
countryApiCountry (string) or null
Any of:

Required, except for funding_history, which covers every country

string(ApiCountry)
Enum:"BGD""IND""PAK""PHL""NPL""EGY""VNM""NGA""LKA"
curl -i -X POST \
  https://docs.leanx.me/_mock/openapi/v3/reports/schedules \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "period": "daily",
    "report_time": "14:15:22Z",
    "timezone": "Asia/Kolkata",
    "api_version": "v2",
    "report_type": "payout",
    "country": "BGD"
  }'

Responses

Successful Response

Bodyapplication/json
periodstring(ReportPeriod)required

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

Enum:"daily""monthly"
report_timestring, (time)(Report Time)required

Time of day, on a quarter hour

timezoneSupportedTimeZone (string) or null
Any of:

Zone of the time and of the days reported on

string(SupportedTimeZone)
Enum:"Asia/Kolkata""Asia/Karachi""Asia/Dubai""Canada/Mountain""Europe/Paris"
idstring, (uuid)(Id)required
api_versionstring(ApiVersion)required
Enum:"v2""v3"
report_typestring(ClientReportType)required

Report types API clients can generate and filter by.

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"
created_atstring, (date-time)(Created At)required
updated_atstring, (date-time)(Updated At)required
Response
{ "period": "daily", "report_time": "14:15:22Z", "timezone": "Asia/Kolkata", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "api_version": "v2", "report_type": "payout", "country": "BGD", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }