Appearance
Withdraw POST
This api is use for withdraw money of member.
Authorization
Transfer uses Basic Authentication with your agent credentials. (Authentication)
HTTP Request
POST {{ API_URL }}/withdraw
Content Type
Type: application/json
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
username | string | Required | Member username |
amount | string | Required | Amount to deposit (Decimal 2 digits) |
transactionRef | string | Required | Unique transaction ref |
productId | string | Required | Product ID (Ref. Product List)) (Example : SEXY ) |
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 | WithdrawData | Required | Withdraw data |
Withdraw Data
Property | Type | Required | Description |
---|---|---|---|
username | string | Required | Username |
amount | string | Required | Withdrawal amount (Decimal 2 digits) |
beforeBalance | string | Required | Balance on each productId before withdrawal (Decimal 2 digits) |
balance | string | Required | Balance on each productId after withdrawal (Decimal 2 digits) |
txId | string | Required | Unique transaction ref drawn from the request |
status | string | Required | Response status |
Request Body
json
{
"username": "test00001",
"amount": "100.25",
"transactionRef": "test00001rxqd1629781421",
"productId": "SEXY"
}
JSON response example:
json
{
"reqId": "c16510ed-6462-414a-9cc5-f380848723a0",
"code": 0,
"message": "Success",
"data": {
"status": "SUCCESS",
"amount": "100.25",
"balance": "10010.1",
"txId": "test00001rxqd1629781421",
"username": "test00001",
"beforeBalance": "9909.85"
}
}