Get history of payouts by user token
Changed onThis GET endpoint is used to retrieve the payout history for a user with the specified token. <br> You can use this endpoint to view all payouts made to a user, including the payout_token, destinantion_token and destination_amount. <br> To use this endpoint, you need to provide the user token of the recipient in the URL Path. <br> The response will include a JSON object containing an array of payout transactions for the specified user, with each transaction including details such as the transaction ID, payout amount, currency, payout status, and date and time of the payout.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Token representing the user whose payout history is fetched. Accepted either as a bare UUID or prefixed with usr_; both forms reference the same user. 36 characters long, or 40 with the usr_ prefix.
Query parameters
Whether to include the payers logo in base64 format.
Headers
Unique key to prevent duplicate processing
Response
successful operation
Example response
[
{
"payout_token": "payout_ba4275f2-bae1-488d-9d6f-20af1cd83574",
"client_transfer_id": "aEjn345",
"source_currency_code": "USD",
"destination_currency_code": "MXN",
"source_token": "clnt_wlt_ba4275f2-bae1-488d-9d6f-20af1cd83574",
"destination_token": "dest_d2138fd0-00be-45a8-985f-4f5bde500962",
"destination_amount": 100.5,
"source_amount": 100.5,
"attr_set_token": "attr_set_b1a867c1-6e36-4525-b6d5-a20bac80e3b0",
"exchange_rate": 18.55,
"fee": 2.99,
"expiration": "2026-08-22T17:40:46.881Z",
"pickup_code": "54238173",
"trace_code": "021214893903107",
"payer_logo": "U3dhZ2dlciByb2Nrcw==",
"payer_name": "Elektra",
"country_code": "MEX",
"metadata": {
"group_id": 541
},
"estimated_availability": "2020-07-21T17:32:28Z",
"sender_user_token": "usr_7f8e9d0c-1b2a-4c3d-9e5f-6a7b8c9d0e1f",
"reversible_amount": 100.5
}
]Changes
- breaking
for the
pathrequest parameteruser_token, the minLength was increased from0to36 - breaking
added the pattern
^(usr_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$to thepathrequest parameteruser_token - breaking
the
/response's property format changed fromuuidto no format for status - breaking
the
/response's property format changed fromuuidto no format for status - breaking
the
/response's property format changed fromYYYY-MMDDThh:mm:sstodate-timefor status - breaking
the
/response's property format changed fromuuidto no format for status - breaking
the
/response's property format changed fromuuidto no format for status - warning
for the
pathrequest parameteruser_token, the maxLength was set to40 - info
added the optional property
/to the response with the status - info
the
/response's property pattern^(attr_set_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$was added for the status - info
the
/response's property pattern^[A-Z]{3}$was added for the status - info
the
/response's property pattern^[A-Z]{3,5}$was added for the status - info
the
/response's property pattern^(dest_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$was added for the status - info
the
/response's property pattern^(payout_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$was added for the status - info
the
/response's property pattern^[A-Z]{3,5}$was added for the status - info
the
/response's property pattern^([a-z]+(_[a-z]+)*_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$was added for the status
- breaking