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 namedescriptionexample
platform_order_idplatform order idTHBW20240401021854bxxxxxxx

Data example

{
  "merchant_id": "AA12345678",
  "token": "testtokentesttokentesttokentesttokentesttoken",
  "time": 1656272222,
  "platform_order_id" : "THBW20240428214939exxxxxxx"
}

Response

Here are response parameters.

paramdescription
platform_order_idA unique platform order id. You will use this id to identify the order.
merchant_order_idYour merchant order id.
order_datetimeOrder datetime
bankbank code.
account_noaccount number
account_nameaccount name
amountamount
statusstatus open success failed
done_datetimedone 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"
    }
}