Skip to content

Reversed Payouts Report

Request

Reversed payouts as CSV, one row per payment reversed after it settled, with its retry.

start and end bound the window on payment creation time, end exclusive; set window to reversal to bound it on when the payment last changed instead: when it was reversed, parked for a manual reversal, or released once its retry ended. A payment awaiting reversal counts as reversed; one whose retry is still running is left out, as the API shows it succeeded. Retry Id is the payment's direct retry; the Final columns describe the last payment in its retry chain. timezone sets the zone timestamps are written in; omit it for UTC.

Security
bearerAuth
Bodyapplication/jsonrequired
startstring, (date-time)(ReportTime)required

Start of the window

endstring, (date-time)(ReportTime)required

End of the window, exclusive

countrystring(ApiCountry)required

Payment country

Enum:"BGD""IND""PAK""PHL""NPL""EGY""VNM""NGA""LKA"
idsArray of strings or null(Ids)
Any of:
<= 10000 items
Array of strings (uuid)
payment_methodArray of strings or null(Payment Method)
Any of:

Only payments of these methods; omit for any

sorting_orderstring(SortingOrder)

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"
timezoneSupportedTimeZone (string) or null
Any of:

Zone timestamps are written in; omit for UTC

string(SupportedTimeZone)
Enum:"Asia/Kolkata""Asia/Karachi""Asia/Dubai""Canada/Mountain""Europe/Paris"
windowstring(ReversedPayoutsWindow)

What start and end bound: when the payment was created, or when it last changed (reversed, parked for a manual reversal, or released once its retry ended)

Default:"creation"
Enum:"creation""reversal"
curl -i -X POST \
  https://docs.leanx.me/_mock/openapi/v3/reports/reversed_payouts \
  -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",
    "ids": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "payment_method": [
      "bank_transfer"
    ],
    "sorting_order": "asc",
    "timezone": "Asia/Kolkata",
    "window": "creation"
  }'

Responses

Successful Response

Response
No content