Skip to main content

การโอนจ่าย (Pay-out · บราซิล)

smilepayz teamsประมาณ 3 นาที

Disburse in Brazil (BRL) via PIX keys (CPF, CNPJ, PHONE, EMAIL, EVP); see Payment methods. Send cashAccount, paymentMethod, and receiver.taxNumber.

Request

POST/v2.0/disbursement/pay-out

Request Path:

sandbox: https://sandbox-gateway.smilepayz.com/v2.0/disbursement/pay-out
production: https://gateway.smilepayz.com/v2.0/disbursement/pay-out

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. BRT −03:00).
X-SIGNATUREMStringRequest signature; Signature Generation.
X-PARTNER-IDMStringmerchantID (alphanumeric).

Body Parameters

FieldRequiredTypeDescription
orderNoMString(32)6–32 alphanumeric; unique per merchant.
purposeMString(64)UTF-8; length 1–64.
merchantMObjectMerchant routing and settlement.
    merchantIdMStringPlatform merchant ID.
    merchantNameOStringUTF-8 display name.
    subMerchantIdOStringSub-merchant ID.
    subMerchantNameOStringSub-merchant name (UTF-8).
moneyMObjectAmount and currency.
    currencyMStringBRL only.
    amountMNumberInteger centavos (e.g. 10000 = BRL 100.00).
paymentMethodMString(6)CPF, CNPJ, PHONE, EMAIL, EVP; Payment methods.
cashAccountMString(32)PIX key value (CPF/CNPJ/phone/email/EVP).
receiverMObjectReceiver Model.
    taxNumberMStringRecipient tax id (CPF 11 / CNPJ 14 digits).
callbackUrlOString(256)Webhook URL; HTTP(S); max 256.
additionalParamOObjectExtra parameters when required by product.

Example Body – Disbursement Request:

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001

Responses

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm

Body Parameters

FieldRequiredTypeDescription
codeMString00 = success; other codes = error.
messageMStringResult text (UTF-8).
orderNoMStringEcho of orderNo.
merchantMObjectMerchant Model.
    merchantIdMStringMerchant ID.
    merchantNameOStringDisplay name.
    subMerchantIdOStringSub-merchant ID.
    subMerchantNameOStringSub-merchant name.
    accountNoOStringMerchant account number when returned.
moneyMObjectMoney Model.
    currencyMStringBRL.
    amountMNumberInteger centavos.
disbursementTimeMStringWhen disbursement was accepted (yyyy-MM-ddTHH:mm:ss±HH:mm).
channelMObjectChannel Model.
    paymentMethodMStringEcho paymentMethod.
    cashAccountMStringEcho cashAccount.
    accountNameOStringDisplay name when returned.
tradeNoOStringPlatform trade ID.
statusOStringStatus Model.

Example Body – Disbursement Response:

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00

Notification/Callback

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
X-SIGNATUREMStringCallback signature; verify.

Body Parameters

FieldRequiredTypeDescription
orderNoMStringSame orderNo as payout request.
tradeNoMStringPlatform tradeNo.
merchantIdMStringMerchant ID.
merchantNameMStringDisplay name.
subMerchantIdOStringSub-merchant ID.
subMerchantNameOStringSub-merchant name.
paymentMethodMStringSettled PIX key type (CPF, CNPJ, …).
transactionTimeMStringCompletion time.
moneyMObjectFinal amount; Money Model.
    currencyMStringBRL.
    amountMNumberInteger centavos. Note: may differ from the request for fees/partials—reconcile on tradeNo.
statusMStringStatus Model.

Return

Important

Respond with the string SUCCESS only.

{
  "orderNo": "2000102900000000000001",
  "tradeNo": "1022000109e998347483949",
  "merchantId": "20001",
  "merchantName": "test",
  "subMerchantId": "",
  "subMerchantName": "",
  "paymentMethod": "CPF",
  "transactionTime": "2024-12-17T10:55:00",
  "money": {
    "currency": "BRL",
    "amount": 10000
  },
  "status": "SUCCESS"
}