Appearance
Verify Deposit Withdraw POST
This api is verify transaction of deposit or withdraw to successfully or fail.
Authorization
Transfer uses Basic Authentication with your agent credentials. (Authentication)
HTTP Request
POST {{ API_URL }}/verifyDepositWithdraw
Content Type
Type: application/json
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
username | string | Required | Member username |
transactionRef | string | Required | Unique transaction ref |
productId | string | Required | Product ID (Ref. Product List)) (Example : SEXY ) |
type | string | Required | Either DEPOSIT or WITHDRAW |
Response Description
Property | Type | Required | Description |
---|---|---|---|
reqId | string | Required | Unique reference for each request |
code | number | Required | Response status |
message | string | Required | Additional information on response status |
data | VerifyDepositWithdrawData | Required | Verify deposit/withdraw data |
Verify Deposit Withdraw Data
Property | Type | Required | Description |
---|---|---|---|
success | boolean | Required | Indicate whether the transaction was successful or not true : transaction has successfalse : Transaction has fail |
username | string | Required | Username |
productId | string | Required | Product associated with the transaction |
currency | string | Required | Currency associated with the transaction |
transactionRef | string | Required | Unique transaction ref |
amount | string | Required | Deposit or withdrawal amount |
beforeBalance | string | Required | Balance on before deposit or withdrawal |
afterBalance | string | Required | Balance on after deposit or withdrawal |
Request Body
json
{
"username": "test00001",
"transactionRef": "test00001rxqd1629781421",
"productId": "SEXY",
"type": "DEPOSIT"
}
JSON response example (Success):
json
{
"reqId": "c16510ed-6462-414a-9cc5-f380848723a0",
"code": 0,
"message": "Success",
"data": {
"success": true,
"username": "test00001",
"productId": "SEXY",
"currency": "THB",
"transactionRef": "test00001rxqd1629781421",
"amount": "100.00",
"beforeBalance": "0.00",
"afterBalance": "100.00"
}
}