Skip to main content

Money withdrawal request

Request URL

POST http(s)://API_URL/v2/app/users/:userId/wallet/withdraw?clientId=[CLIENT_ID]

Request header (HTTP Header)

Parameter NameDescriptionOptional / Mandatory
signRequest signatureMandatory

Request parameters

Parameter NameDescriptionOptional / Mandatory
clientIdCasino identifier. Sent in the request lineMandatory
userIdUser identifierMandatory
currencyISO currency codeMandatory
amountThe amount of cashout in cents. It must be a positive number, other symbols are not accepted.Mandatory
externalTransactionIdTransaction ID on your serverOptional

Response parameters

In case of successful execution, the response to the request will contain the data on proceeded withdrawal transaction.

Parameter NameDescriptionOptional / Mandatory
currencyISO currency codeMandatory
amountAmount of cashout in centsMandatory

Errors returned

HTTP CodeMessageDescription
400Not valid requestIncorrect request signature
404Player not foundUser with userId sent was not found
422Currency not validWrong currency ISO code was sent
Amount value has incorrect formatIncorrect deposit amount was sent. Deposit amount must be > 0 and contain numbers only.
Transaction already processedTransaction related to passed transactionExternalId is already processed on our server
500You have requested X but you have only Y of moneyThe withdrawal amount exceeds the current player’s balance in this currency

Example of response

{
"data": {
"id": "1589002", //transactionId
"type": "transaction",
"attributes": {
"currency": "FUN",
"amount": 500,
}
}
}