Skip to content

Withdraw POST

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}/withdraw

Content Type ​

Use Content-Type: application/json.

Parameter Description ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
usernamestringRequiredPlayer login name
amountstringRequiredCredit amount. two decimal places
transactionRefstringRequiredCaller-supplied transaction id
productIdstringRequiredProduct 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.

PropertyTypeRequiredDescription
reqIdstringRequiredId for this response
codenumberRequiredStatus code number. see Error message
messagestringRequiredShort status text
dataWithdrawDataRequiredPayload 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.

PropertyTypeRequiredDescription
usernamestringRequiredPlayer login name
amountstringRequiredCredit amount. two decimal places
beforeBalancestringRequiredBalance before the call. two decimal places
balancestringRequiredBalance after the call. two decimal places
txIdstringRequiredTransaction id echoed from the request
statusstringRequiredStatus text for this call. see Error message

Local editable copy. Not the official AMBSuperAPI documentation.