Skip to content

Create a payout order

Request URL

methodurl
POST/api/pay/payout/create/v1

Header Information

Header ParameterParameter Description
timestampRequest timestamp
nonceRandom value
countryCountry code (MX)
app_codeApplication ID

matters need attention

  1. There are scenarios where the batch payment orders may fail to be successfully converted. The common reasons are that the account number for receiving payment is correctly formatted but does not exist or the status of the receiving account is abnormal. This situation typically triggers two callbacks within five minutes after the order is created. Such cases will first notify the merchant of the successful status, and then notify the merchant of the refund status. The merchant must handle this logic correctly.
  2. When the account type is a debit card, the length of bankAccount must be 16 characters; and the first 6 digits of bankAccount should refer to the BIN list corresponding to the bank codes in the bank list. If the bin list in the bank list is empty, the platform will not verify bankAccount.
  3. When the account type is CLABE, the length of bankAccount must be 18 characters; and the first 3 digits of bankAccount must be the same as the last 3 digits of bankCode. If the bank list does not have bankCode, the platform will not verify bankAccount.

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
amountStringyes20Payout amount (in pesos)
bankCodeStringyes50Bank code
bankNameStringyes50Bank name
accountTypeIntyesAccount type 3-Debit card 40-CLABE
bankAccountStringyes50Recipient account number
realNameStringyes40Customer name
idCardNumberStringyes50Recipient ID number
callbackUrlStringno200Payout callback URL, if not provided, the merchant configuration will be used
signStringyesSignature
Request
{
"outTradeNo": "OrderNoExample",
"amount": "100",
"bankCode": "646",
"bankName": "STP",
"accountType": 3,
"bankAccount": "1234567890",
"realName": "John Doe",
"idCardNumber": "1234567890",
"callbackUrl": "https://merchant.com/api/payout/callback",
"sign": "YOUR_SIGN"
}

Return Parameters

ParameterTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyesPlatform order number
statusIntyes1-Pending 3-Failed (can be retried)
amountStringyesTransaction amount
Return
{
"merchantOrderNo": "OrderNoExample",
"tradeNo": "TF201806251011",
"status": 1,
"sign": "TEEMO_SIGN"
}