Withdraw
Body Required
-
The total amount of the transaction in the currency of the transaction. This amount is the sum of the cash amount and the jackpot amount.
-
The cash contribution to the amount field in the currency of the transaction. This field is mainly for analytics purposes.
-
freeSpinsCampaignId string
-
jackpotAmount number | null
The jackpot contribution to the amount field in the currency of the transaction. This field is mainly for analytics purposes. If the transaction does not involve a jackpot, this field should be set to null.
Minimum value is
0
.
POST
/wallet/withdraw
curl \
-X POST BASE_URL/wallet/withdraw \
-H "Content-Type: application/json" \
-H "Signature: string" \
-H "Public-Key: string" \
-d '{"amount":42.0,"cashAmount":42.0,"currency":"string","freeSpinsCampaignId":"string","gameId":"string","gameRoundId":"string","isGameRoundFinished":true,"jackpotAmount":42.0,"playerId":"string","sessionId":"string","transactionId":"string"}'
Request examples
# Headers
Signature: string
Public-Key: string
# Payload
{
"amount": 42.0,
"cashAmount": 42.0,
"currency": "string",
"freeSpinsCampaignId": "string",
"gameId": "string",
"gameRoundId": "string",
"isGameRoundFinished": true,
"jackpotAmount": 42.0,
"playerId": "string",
"sessionId": "string",
"transactionId": "string"
}
Response examples (200)
{
"balance": 42.0,
"currency": "string",
"resolveTimestamp": 42
}
Response examples (400)
{
"code": "ERROR_UNKNOWN_ERROR",
"description": "string",
"traceId": "string"
}
Response examples (401)
{
"code": "ERROR_INVALID_SIGNATURE",
"description": "string",
"traceId": "string"
}
Response examples (500)
{
"code": "ERROR_UNKNOWN_ERROR",
"description": "string",
"traceId": "string"
}