In system and database synchronized purposes, we use the same params name to declare withdrawal and deposit order as [withdraw_id]. Please take note to avoid confusing in development
Request Body Parameters:#
| Params | Type | Description | Example |
|---|
| withdraw_id | String | Platform trace ID | 12345_67890 |
| player_name | String | Player's bank account holder name | NGUYEN VAN A |
| player_id | String | Player's game nickname | test123 |
| merchant_id | String | Platform merchant ID | att_merchant_4 |
| amount | Number | Transaction amount (VND) | 50000 |
| signature | String | Signature logic | 7779b0e5a82b61ac89f5c3f50ffbdc65 |
| callback_url | String | Merchant callback URL | https://example.com/callback |
Response Parameters (Success)#
| Field | Type | Description |
|---|
| status_code | Number | Status code - status_code explanation |
| valid | Boolean | Indicates whether the request data is valid |
| result | Object | Additional data returned by the system |
| result.page_url | String | Redirect URL to the deposit payment interface |
| mess | String | System message or description |
Success response example:{
status_code: 200,
valid: true,
mess: "Transaction has been sent and waiting for process!",
result: {
page_url: "https://interface.sample-att.com?withdraw_id=12345671…"
}
}
Response Parameters (Error)#
| Field | Type | Description |
|---|
| status_code | Number | Status code - status_code explanation |
| valid | Boolean | Indicates whether the request data is valid |
| error | Object | Error details for third-party debugging |
| mess | String | System message or description |
{
"status_code": 422,
"valid": false,
"error": "Callback URL is required and must be case-sensitive with no spaces.",
"mess": "Validation failed."
}