การโอนจ่าย (Pay-out · ไทย)โอนเงินให้ผู้รับในประเทศไทย (THB ): รางธนาคารเช่น KBANK , BBL , SCB ; ดู 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 X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm 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 THB only. amount M Number Integer minor units. paymentMethodM String Pay-out rail code (e.g. KBANK , BBL ); Payment methods . cashAccountM String(32) Recipient bank account or wallet id. callbackUrlO String(256) Webhook URL; HTTP(S); max 256.
Example Body – Disbursement Request: Header Min Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo" : "2000102900000000000001" ,
"paymentMethod" : "KBANK" ,
"purpose" : "Purpose For Disbursement from Java SDK" ,
"cashAccount" : "17385238451" ,
"merchant" : {
"merchantId" : "20001"
} ,
"money" : {
"amount" : 200 ,
"currency" : "THB"
}
}
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 . tradeNoO String Platform trade ID. 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 THB . amount M Number Integer minors. disbursementTimeM String When disbursement was processed (yyyy-MM-ddTHH:mm:ss±HH:mm). channelM Object Channel / recipient snapshot. paymentMethod M String Settled method code. cashAccount M String Recipient account. accountName O String Account holder name. statusO String Status Model .
Example Body – Disbursement Response: Header Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
{
"code" : "00" ,
"message" : "successful" ,
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "20001032432400001" ,
"merchant" : {
"merchantId" : "10002" ,
"merchantName" : "Betty" ,
"accountNo" : "2000124234782342"
} ,
"money" : {
"currency" : "THB" ,
"amount" : 10000
} ,
"disbursementTime" : "2024-12-17T10:55:00" ,
"channel" : {
"paymentMethod" : "KBANK" ,
"cashAccount" : "17385238451" ,
"accountName" : "test"
} ,
"status" : "PROCESSING"
}
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 channel (e.g. KBANK , BBL ). transactionTimeM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm moneyM Object Final amount; Money Model . currency M String THB . amount M Number Integer minors. statusM String Status Model .
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "0TIn7z0G96HAGV8I734290310" ,
"tradeNo" : "112200012412160218303176" ,
"merchantId" : "20001" ,
"merchantName" : "test" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "KBANK" ,
"transactionTime" : "2024-12-16T02:18:30" ,
"money" : {
"currency" : "THB" ,
"amount" : 1000
} ,
"status" : "SUCCESS"
}
ก่อนหน้า
การรับชำระเงิน (Pay-In · ไทย)