Appearance
Transfer-wallet call. Credit is moved onto a product, then a game URL is opened.
Authorization
Send Basic authentication on this call.
HTTP Request
Method and path below. {API_URL} is a host from the Authentication page. {YOUR_API_URL} is the operator callback host.
text
POST {API_URL}/withdrawContent Type
Use Content-Type: application/json.
Parameter Description
Field name, type, and whether the caller must send it.
| Property | Type | Required | Description |
|---|---|---|---|
username | string | Required | Player login name |
amount | string | Required | Credit amount. two decimal places |
transactionRef | string | Required | Caller-supplied transaction id |
productId | string | Required | Product id from the API reference. values include SEXY; see Product Lists |
json
{
"username": "player01",
"amount": "1.00",
"transactionRef": "example",
"productId": "EXAMPLE"
}Response Description
Fields in a successful JSON body.
| Property | Type | Required | Description |
|---|---|---|---|
reqId | string | Required | Id for this response |
code | number | Required | Status code number. see Error message |
message | string | Required | Short status text |
data | WithdrawData | Required | Payload object |
json
{
"reqId": "req-1",
"code": 0,
"message": "ok",
"data": {}
}Withdraw Data
Use your own placeholders. A real key does not belong in this file.
| Property | Type | Required | Description |
|---|---|---|---|
username | string | Required | Player login name |
amount | string | Required | Credit amount. two decimal places |
beforeBalance | string | Required | Balance before the call. two decimal places |
balance | string | Required | Balance after the call. two decimal places |
txId | string | Required | Transaction id echoed from the request |
status | string | Required | Status text for this call. see Error message |
