Skip to content

Create Payout

WARNING

Note: if the response times out or returns a non-200 HTTP status code, confirm the order status with operations before resubmitting

WARNING

Important: name + phone + email + amount are used to identify distinct customers. Follow these notes to avoid incorrect risk-control decisions.

  1. Do not hard-code name, phone, and email together
  2. Use the same name + phone + email for the same customer

Brazil transfer account formats (account) PIX_CPF 11 digits PIX_CNPJ 14 digits PIX_EMAIL email format PIX_PHONE +55{11 digits} PIX_EVP ^[0-9 a-z]{8}-[0-9 a-z]{4}-[0-9 a-z]{4}-[0-9 a-z]{4}-[0-9 a-z]{12}$

Endpoint

POST /cashout/bra/order/create

Request Headers

NameRequiredExampleDescription
Content-TypeYesapplication/json
langNoenResponse language: zh Chinese, en English, pt Portuguese

Request Parameters

FieldTypeRequiredDescription
namestringYesPayer name — More realistic values improve checkout success rate. Concatenate First Name and Last Name
phonestringYesCustomer mobile number — More realistic values improve success rate and reduce risk flags; numbers start with +55
emailstringYesCustomer email — More realistic values improve success rate and reduce risk-control flags
bankCodestring enumYesPayout code — PIX_CPF, PIX_CNPJ, PIX_PHONE, PIX_EMAIL, PIX_EVP
accountstringYesAccount number — Account depends on bankCode: for PIX_CPF use CPF number; for PIX_PHONE use phone with country code in +55... format;
amountnumberYesAmount — 10~49999; up to 2 decimal places (rounded). Trailing zeros after the decimal are omitted in the pre-sign string for float amounts
notifyUrlstringYesNotification callback URL — Sandbox supports automatic callbacks: odd last digit of phone → success; even → failure
signstringYesSignature
appIdstringYesMerchant appId
mchOrderNostringYesMerchant order number
mchIdintegerYesMerchant ID
txChannelstringYesTransaction channel — Fixed value: TX_BAR_001
timestampintegerYesCurrent timestamp — Unix timestamp in seconds
taxNumberstringYesTax ID: CPF for individuals, CNPJ for companies — must be real and valid
productInfostringNoTransfer remark — Chinese characters are strictly prohibited; default: Withdrawal

Request Example

json
{
 "mchId": 10404,
 "txChannel": "TX_BAR_001",
 "appId": "QByyZWJCFhiNupV1xl",
 "timestamp": 16624500121,
 "mchOrderNo": "payout_16622125006",
 "name": "Matthew Clark",
 "phone": "19818970682",
 "email": "test@gmail.com",
 "bankCode": "PIX_EMAIL",
 "account": "test@gmail.com",
 "amount": "180.50",
 "notifyUrl": "http://xmevj.kg/obp",
 "sign": "xxxxxxxxx",
 "taxNumber": "45920019932",
 "productInfo": "Withdrawal123"
}

Response Parameters

FieldTypeRequiredDescription
statusintegerYesStatus — 200 success
msgstringYesMessage
dataobjectYes
data.applyTimeintegerYesApplication time
data.amountnumberYesCredited amount
data.platOrderNostringYesPlatform order number
data.mchOrderNostringYesMerchant order number
data.orderStatusstringYesOrder status

Response Example

json
{
 "status": 200,
 "msg": null,
 "data": {
 "mchOrderNo": "payout_1662104438",
 "platOrderNo": "wussXUCOoXO3yptr7rQV",
 "applyTime": 1662104742,
 "amount": 180.34,
 "orderStatus": "PENDING"
 }
}

Transafe Developer Documentation