การโอนจ่าย (Pay-out · บราซิล)API Pay-out ภูมิภาค บราซิล (BRL ). ดู Payment methods 。
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 request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. BRT −03:00). X-SIGNATUREM String Signature of JSON body (see product Signature doc). X-PARTNER-IDM String Your merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) Merchant-unique id, 6–32 alphanumeric. purposeM String(64) Memo to payer, 1–64 UTF-8 chars. merchantM Object Wraps merchantId and optional sub-merchant fields. merchantId M String Smilepayz merchantId for this call. merchantName O String UTF-8 merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String UTF-8 name for subMerchantId. moneyM Object Currency plus amount for this transaction. currency M String Fixed to BRL. amount M Number BRL integer minor units (e.g. 5000 = BRL 50.00). paymentMethodM String(6) Same as pixType, Code (see Payment methods doc). cashAccountM String(32) Same as pixAccount: beneficiary account identifier. receiverM Object Beneficiary object (see Receiver model). pixType O String Recommended; identifier type (e.g. CPF, CNPJ); pixAccount O String Recommended; identifier value; taxNumber O String Recommended; for CPF/CNPJ, same as pixAccount. callbackUrlO String(256) HTTPS async status URL, max 256 chars.
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
{
"orderNo" : "2000102900000000000001" ,
"purpose" : "Freelancer payout — Rio" ,
"merchant" : {
"merchantId" : "20001"
} ,
"money" : {
"currency" : "BRL" ,
"amount" : 1000
} ,
"paymentMethod" : "CPF" ,
"cashAccount" : "12345678901" ,
"receiver" : {
"name" : "João da Silva" ,
"taxNumber" : "12345678901"
}
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 success, other values error.messageM String UTF-8 human-readable result line. orderNoM String Merchant-unique id, 6–32 alphanumeric. tradeNoO String Smilepayz tradeNo for this order. merchantM Object Wraps merchantId and optional sub-merchant fields. merchantId M String Smilepayz merchantId for this call. merchantName O String UTF-8 merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String UTF-8 name for subMerchantId. accountNo O String Settlement accountNo if gateway returns it. moneyM Object Currency plus amount for this transaction. currency M String Fixed to BRL. amount M Number BRL integer minor units (e.g. 5000 = BRL 50.00). disbursementTimeM String Format (yyyy-MM-ddTHH:mm:ss±HH:mm). channelM Object Channel payload (paymentUrl, qrString, …). paymentMethod M String Same as pixType, Code (see Payment methods doc). cashAccount M String Same as pixAccount: beneficiary account identifier. accountName O String Display name when returned. statusO String Order or payment status enum value.
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" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "2000124234782342"
} ,
"money" : {
"currency" : "BRL" ,
"amount" : 1000
} ,
"disbursementTime" : "2024-12-17T10:55:00-03:00" ,
"channel" : {
"paymentMethod" : "CPF" ,
"cashAccount" : "12345678901" ,
"accountName" : "João da Silva"
} ,
"status" : "PROCESSING"
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback body signature (see Callback signature guide ).
Body Parameters Field Required Type Description orderNoM String Merchant-unique id, 6–32 alphanumeric. tradeNoM String Smilepayz tradeNo for this order. merchantIdM String Smilepayz merchantId for this call. merchantNameM String UTF-8 merchant display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String UTF-8 name for subMerchantId. paymentMethodM String Same as pixType, Code (see Payment methods doc). transactionTimeM String Format: yyyy-MM-ddTHH:mm:ss moneyM Object Currency plus amount for this transaction. currency M String Fixed to BRL. amount M Number BRL integer minor units (e.g. 5000 = BRL 50.00). statusM String Order or payment status enum value.
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "1022000109e998347483949" ,
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "CPF" ,
"transactionTime" : "2024-12-17T10:55:00-03:00" ,
"money" : {
"currency" : "BRL" ,
"amount" : 1000
} ,
"status" : "SUCCESS"
}
ก่อนหน้า
การรับชำระเงิน (Pay-In · บราซิล)