Initiate a payout transaction
This POST endpoint is used to initiate a payout transaction from your account to a user with a specified token. <br> You can use this endpoint to pay out funds to your users, such as payments for services rendered or rewards for completing tasks. To use this endpoint, you need to provide the user token of the recipient in the URL Path. <br> The request body should include the funding source (source_token), payout destination (destination_token) and specify in which currency the payout should be made (destination_currency_code). <br> As a response API will return all details about your payout transaction.
Path parameters
Token representing the user to pay out
Query parameters
Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent. Amount is specified in source_currency.
When true, performs all validation checks without initiating the payout.
Headers
Unique key to prevent duplicate processing
Request body
Example request
{
"client_transfer_id": "aEjn345",
"source_currency_code": "USD",
"destination_currency_code": "MXN",
"source_token": "123e4567-e89b-12d3-a456-426614174000",
"destination_token": "123e4567-e89b-12d3-a456-426614174000",
"destination_amount": 100.5,
"source_amount": 100.5,
"attr_set_token": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"group_id": 541
},
"statement_description": "Merchant 4561",
"value_added_services": {
"account_validation": {
"validation": "SKIP"
}
}
}Response
Successfully created.
Example response
{
"payout_token": "ba4275f2-bae1-488d-9d6f-20af1cd83574",
"client_transfer_id": "aEjn345",
"source_currency_code": "USD",
"destination_currency_code": "MXN",
"source_token": "ba4275f2-bae1-488d-9d6f-20af1cd83574",
"destination_token": "d2138fd0-00be-45a8-985f-4f5bde500962",
"destination_amount": 100.5,
"source_amount": 100.5,
"attr_set_token": "b1a867c1-6e36-4525-b6d5-a20bac80e3b0",
"exchange_rate": 18.55,
"fee": 2.99,
"expiration": "2019-06-26T22:32:05",
"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",
"reversible_amount": 100.5
}