Create Payout Order¶
Creates a new payout order.
Payout Order
A payout order is a payout operation created for a merchant gate payment method. Payout orders represent outgoing funds from a merchant or gate balance to a destination account.
Idempotency
Idempotency prevents duplicate payout requests by using the unique reference_id value.
Each reference_id should identify one payout request and must be unique within the merchant context. If the same reference_id is submitted again for the same context, the system can detect the request as a duplicate.
Use a newly generated UUID or another stable unique value for each new payout request, especially when generating reference_id values automatically.
Endpoint¶
POST /api/v1/orders/payout
/api/v1/orders/payout
HTTP
POST /api/v1/orders/payout HTTP/1.1
X-Api-Key-Id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
X-Signature: <generated-signature>
X-Timestamp: 1234567
Content-Type: application/json
Accept: application/json
{
"reference_id": "merchant-payout-12345",
"currency": "USD",
"amount": 100.00,
"destination_account": "4111111111111111",
"merchant_gate_method_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method_data": {
"payment_url": "https://merchant.example/payment/12345"
},
"customer": {
"reference_id": "customer-12345",
"first_name": "John",
"last_name": "Doe",
"email": "user@example.com",
"phone": "+12025550123",
"address": {
"country": "FR",
"city": "New York",
"street": "Main Street 10",
"post_code": "10001"
}
},
"comment": "Payout order comment"
}
200
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reference_id": "merchant-payout-12345",
"status": "CREATED",
"resolution": "OK",
"resolution_code": "WORKFLOW_EXECUTION_SKIPPED",
"resolution_message": "Order created successfully.",
"provider_error_message": "",
"payment_source": "CARD",
"currency": "USD",
"amount": 100.0,
"destination_account": "4111111111111111",
"fee_percent": 1,
"fee_fixed": 3,
"fee_min": 1,
"fee_max": 7,
"fee_total": 4,
"total": 104,
"payment_method_data": {
"bank_id": "bank_001",
"cpf": "11371142882",
"iban": "GB82WEST12345698765432",
"ifsc": "ifsc_001",
"pix_key": "customer@example.com",
"tckn": "30641505382"
},
"customer": {
"reference_id": "customer-12345",
"first_name": "John",
"last_name": "Doe",
"email": "user@example.com",
"phone": "+12025550123",
"address": {
"country": "FR",
"city": "Paris",
"street": "Main Street 10",
"post_code": "75001"
}
},
"create_date": 1783705454,
"update_date": 1783705454,
"comment": "Payout order comment."
}
Headers
API key identifier issued for the merchant integration.
Request signature generated from the HTTP method, request path without query string, raw request body, and timestamp.
Unix epoch timestamp in seconds used in the signature base string.
Request signature
This endpoint requires the X-Signature header. For signature generation rules, see Request Signature Authentication.
Request body
application/jsonRequest body for creating a payout order.
Merchant-side order identifier. Use this value to match the payout order with the corresponding order in the merchant system and to prevent duplicate payout requests.
Currency in which the payout order amount is processed.
USDEURUAHKZTUSDT_TRONPayout order amount.
Destination account value used for the payout. For card payouts, this value can be the destination card number.
Identifier of the merchant gate payment method used to create and process the payout order.
payment_method_data
object
optional
Additional payment method data used for the selected merchant gate payment method.
Additional payment method data used for the selected merchant gate payment method.
URL of the merchant website or payment page associated with the payment.
customer
object
required
Customer information associated with the payout order.
Customer information associated with the payout order.
Customer identifier in the merchant system.
Customer first name. Use Latin letters and supported special characters only.
Customer last name. Use Latin letters and supported special characters only.
Customer email address in a standard email format, such as local-part@domain. The value must contain a local part, the @ symbol, and a valid domain.
Customer phone number in international format. The value must start with + and contain digits after the country calling code.
address
object
optional
Customer address information.
Customer address information.
Two-letter country code in ISO 3166-1 alpha-2 format.
Customer city name.
Customer street address.
Customer postal or ZIP code.
Comment associated with the payout order.
Responses
200 OK. Payout order created successfully. application/json
Returns the created payout order object.
System-generated unique payout order identifier. Use this value to retrieve a specific payout order by ID.
Identifier used to group related orders. Orders created or processed as part of the same operation can share this value.
Order reference identifier provided by the merchant system. Use this value to match the payout order with the corresponding order in the merchant system.
Current payout order processing status.
CREATEDIN_PROGRESSPROCESS_PENDINGSUCCESSFAILEDCLOSEDHigh-level processing resolution for the order.
OKSYSTEM_ERRORPROVIDER_ERRORMachine-readable resolution reason code returned for the order.
ACCESS_DENIEDAMOUNT_OVER_LIMITAMOUNT_UNDER_LIMITBALANCE_INSUFFICIENTBALANCE_UPDATE_FAILEDBLACKLISTED_INPUT_DATACURRENCY_INVALIDDESTINATION_ACCOUNT_INVALIDMERCHANT_MISCONFIGURATIONMETHOD_INACTIVEMETHOD_NOT_FOUNDORDER_CANNOT_BE_PROCESSEDORDER_CANNOT_BE_ROUTEDORDER_FAILED_MANUALLYPAYMENT_METHOD_NOT_SUPPORTEDPROVIDER_NOT_SUPPORTEDREPORT_GENERATION_FAILEDRESOURCE_NOT_FOUNDUNKNOWN_ERRORVALIDATION_FAILEDWORKFLOW_EXECUTION_SKIPPEDHuman-readable message with additional details about the order resolution.
Error message returned by the payment provider, if available.
Payment source used for the payout order.
CARDP2PCRYPTOPHONEPIXBLIKPayout order currency.
USDEURUAHKZTUSDT_TRONOriginal payout order amount in the order currency.
External destination account to which the payout is sent. For card payouts, this can be the destination card number. Depending on the payment method, this can also represent a bank account, wallet, phone number, crypto address, PIX key, or another destination identifier.
Percentage-based fee rate applied to the order amount.
Fixed fee amount charged for the order.
Minimum fee amount that can be applied to the order.
Maximum fee amount that can be applied to the order.
Final fee amount calculated for the order after applying percentage, fixed, minimum, and maximum fee rules.
Calculated payout total after fee calculation. In payout flows, this usually represents the amount written off from the merchant or gate balance.
payment_method_data
object
Payment-method-specific data returned for the order.
Payment-method-specific data returned for the order.
Bank identifier used by a payment method or provider.
CPF value used for payment methods that require CPF.
IBAN value used for bank transfer or account-based payment methods.
IFSC value used for payment methods that require IFSC.
PIX key used for PIX-based payment methods.
TCKN value used for payment methods that require TCKN.
customer
object
Customer information associated with the order.
Customer information associated with the order.
Customer identifier in the merchant system.
Customer first name.
Customer last name.
Customer email address.
Customer phone number in international format.
address
object
Customer address information.
Customer address information.
Two-letter country code in ISO 3166-1 alpha-2 format.
Customer city.
Customer street address.
Customer postal code.
Unix timestamp in seconds indicating when the order was created.
Unix timestamp in seconds indicating when the order was last updated.
Comment associated with the order.