代付(Pay-out · 巴西)巴西代付(BRL ),经 PIX 类型键 CPF 、CNPJ 、PHONE 、EMAIL 、EVP ;详见 支付方式 。需提供 cashAccount 、paymentMethod 与 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
Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. BRT −03:00 ). X-SIGNATUREM String Request signature; Signature Generation . X-PARTNER-IDM String merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) 6–32 alphanumeric; unique per merchant. purposeM String(64) UTF-8; length 1–64. merchantM Object Merchant routing and settlement. merchantId M String Platform merchant ID. merchantName O String UTF-8 display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name (UTF-8). moneyM Object Amount and currency. currency M String BRL only. amount M Number Integer centavos (e.g. 10000 = BRL 100.00). paymentMethodM String(6) CPF , CNPJ , PHONE , EMAIL , EVP ; Payment methods .cashAccountM String(32) PIX key value (CPF/CNPJ/phone/email/EVP). receiverM Object Receiver Model . taxNumber M String Recipient tax id (CPF 11 / CNPJ 14 digits). callbackUrlO String(256) Webhook URL; HTTP(S); max 256. additionalParamO Object Extra parameters when required by product.
Example Body – Disbursement Request: Header CPF Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"additionalParam" : { } ,
"cashAccount" : "12532481501" ,
"receiver" : {
"taxNumber" : "12345678909"
} ,
"merchant" : {
"merchantId" : "20001"
} ,
"money" : {
"amount" : 10000 ,
"currency" : "BRL"
} ,
"orderNo" : "2000102900000000000001" ,
"paymentMethod" : "CPF" ,
"purpose" : "Purpose For Disbursement from Java SDK"
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 = success; other codes = error.messageM String Result text (UTF-8). orderNoM String Echo of orderNo . merchantM Object Merchant Model . merchantId M String Merchant ID. merchantName O String Display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name. accountNo O String Merchant account number when returned. moneyM Object Money Model . currency M String BRL . amount M Number Integer centavos. disbursementTimeM String When disbursement was accepted (yyyy-MM-ddTHH:mm:ss±HH:mm). channelM Object Channel Model . paymentMethod M String Echo paymentMethod . cashAccount M String Echo cashAccount . accountName O String Display name when returned. tradeNoO String Platform trade ID. statusO String Status Model .
Example Body – Disbursement Response: Header Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "1022000109e998347483949" ,
"status" : "PROCESSING" ,
"disbursementTime" : "2024-12-17T10:55:00-03:00" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "test" ,
"accountNo" : "2000124234782342"
} ,
"money" : {
"currency" : "BRL" ,
"amount" : 10000
} ,
"channel" : {
"paymentMethod" : "CPF" ,
"cashAccount" : "12532481501" ,
"accountName" : "Betty"
}
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback signature; verify .
Body Parameters Field Required Type Description orderNoM String Same orderNo as payout request. tradeNoM String Platform tradeNo . merchantIdM String Merchant ID. merchantNameM String Display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String Sub-merchant name. paymentMethodM String Settled PIX key type (CPF , CNPJ , …). transactionTimeM String Completion time. moneyM Object Final amount; Money Model . currency M String BRL . amount M Number Integer centavos. Note: may differ from the request for fees/partials—reconcile on tradeNo . statusM String Status Model .
Return Important
Respond with the string SUCCESS only.
Request Response
{
"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"
}
上一页
收款(Pay-In · 巴西)