Query Withdraw
URL : /withdraw/query
Method : POST
Data constraints
{
"merchant_id" : "[Merchant id]",
"token" : "[Auth Token]",
"time" : "[Time Stamp]",
"platform_order_id" : "[platform order id]",
}
Explainations
| param name | description | example |
|---|---|---|
| platform_order_id | platform order id | THBW20240401021854bxxxxxxx |
Data example
{
"merchant_id": "AA12345678",
"token": "testtokentesttokentesttokentesttokentesttoken",
"time": 1656272222,
"platform_order_id" : "THBW20240428214939exxxxxxx"
}
Response
Here are response parameters.
| param | description |
|---|---|
| platform_order_id | A unique platform order id. You will use this id to identify the order. |
| merchant_order_id | Your merchant order id. |
| order_datetime | Order datetime |
| bank | bank code. |
| account_no | account number |
| account_name | account name |
| amount | amount |
| status | status open success failed |
| done_datetime | done datetime |
Success Response
Code : 200 OK
Content example
{
"success": 200,
"data": {
"platform_order_id": "THBW20240428214939eAEByOvF",
"client_order_id": "ORDER112233445566",
"order_datetime": "2024-04-28 21:49:39",
"bank": "KBANK",
"account_no": "1234567890",
"account_name": "สมชาย นามสมมุติ",
"amount": "100.0000",
"status": "open",
"done_datetime": null
}
}
Error Response
Condition : If invalid merchant id, token, or singature
Code : 403 BAD REQUEST
Content :
{
"error": {
"code": 403,
"message": "authentication failed"
}
}
Condition : If something went wrong.
Code : 500 ERROR
Content :
{
"error": {
"code": 500,
"message": "amount must be greater than 20"
}
}