Get status of a payout by payout token
Changed onThis GET endpoint is used to retrieve the status of a payout transaction for a user with the specified token and payout token. <br> You can use this endpoint to check the status of a specific payout transaction, including whether the payout has been successfully processed or if there was an error. <br> To use this endpoint, you need to provide the user_token and payout_token in the URL Path. <br> The response will include a JSON object containing details about the payout transaction.
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.
Query parameters
Attempts to get an updated status from the payout destination before responding. When the destination answers, the payout.status webhook is sent whether or not the status changed; a changed status is also written. Leave it unset when you only need the stored state. Never set it from inside a webhook handler: the handler would send itself the next event.
Whether to include the payer logo in base64 format.
Headers
Unique key to prevent duplicate processing
Response
OK
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
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 - 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