Query Withdraw (Thailand)
Query a single Thailandese Dong (THB) withdrawal order by merchant order number.
Request Information
- Request URL:
/gateway/api/v2/payouts/{payout_cl_id} - Request Method:
GET
Request Headers
| Parameter | Type | Description |
|---|---|---|
| Authorization | String | {authorization} Authorization token assigned by the system to the platform |
Path Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| payout_cl_id | Yes | String | Merchant order number |
Response Example
Success Response
{
"error_code": "0000",
"data": {
"payout_id": "DEMOPO0123456",
"payout_cl_id": "payout_20260112001",
"amount": 5000000,
"fee": 50000,
"status": 3,
"error_msg": "",
"create_time": 1737543600,
"success_time": 1737543700
}
}
Error Response Example
{
"error_code": "0050",
"error_msg": "Order not found!"
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message (returned when error_code is not "0000") |
| payout_id | String | Diamond Pay order number |
| payout_cl_id | String | Merchant order number |
| amount | Int | Order amount |
| fee | Int | Fee |
| status | Int | Order status (1: Pending, 2: Processing, 3: Success, 4: Cancelled) |
| error_msg | String | Error message (returned when withdrawal fails) |
| create_time | Int | Create time (Unix timestamp) |
| success_time | Int | Transfer success time (Unix timestamp) |
Notes
authorizationis the authorization token assigned by the system to the platform. If you haven't obtained one, please contact system personnel- Amount unit is Thailandese Dong (cents)