Withdraw Payout
API สำหรับถอนเงินแบบ Payout
Withdraw Payout Order
POST
https://example.com/payment/withdraw/payout
Headers
Name
Type
Description
x-wildpay-partnerid*
String
partner id
x-wildpay-signature*
String
signature
Content-Type*
application/json
-
Request Body
Name
Type
Description
refId*
String
reference/transaction id
amount*
Number
จำนวนเงิน
userId
String
user Id
accountName*
String
ชื่อบัญชีธนาคาร
accountNo*
String
เลขบัญชีธนาคาร
bankCode*
String
รหัสธนาคาร
extendParams
Object
สำหรับเพิ่มข้อมูลเอาไว้ส่งกลับไปยัง Webhook
timestamp*
Date
ISO Date (UTC+0)
Example Request
{
"refId": "REF_ID",
"amount": 100,
"userId": "USER_ID",
"accountName": "wildpay",
"accountNo": "1234567890",
"bankCode": "KBANK",
"extendParams": {
"username": "wildpay",
},
"timestamp": "2023-02-05T16:34:57.956Z"
}
{
"data": {
"status": "QUEUED",
"refId": "REF_ID",
"transactionId": "PO1675614323G8HBANB5",
"amount": 100,
"method": "Payout",
"payee": {
"accountNo": "1112223333",
"accountName": "Wildpay",
"bankCode": "KBANK",
},
"extendParams": {
"username": "wildpay",
},
"fee": 0,
"transferAmount": 100,
"successTime": null,
"timestamp": "2023-02-05T16:25:23.708Z"
},
"code": 0,
"msg": "Success",
"cause": ""
}
หมายเหตุ
ทางเราแนะนำให้ใช้ค่าจาก code
ในการตรวจสอบว่าทำรายการสำเร็จไหมแทนนะครับ
code == 0
หมายถึง ทาง wildpay ได้นำรายการเข้าระบบแล้ว
code != 0
หมายถึง ทำรายการไม่สำเร็จ
Last updated