Seamless Wallet API

Danger

Avoid strict validation that blocks unknown fields. The API will remain backward-compatible, but new fields may be introduced in future updates.

The Wallet API offers seamless wallet integration. Casino operator should implement the following protocol on their side. VeliGames will call the methods to retrieve and update player’s balance when player makes a bet, gets a win or cancels previous transaction.

All following requests are passed from VeliGames to the operator using the HTTP POST method with the content type application/json. The signature parameter in the header is mandatory for all requests.

See also

Authentication

Important

Idempotent behavior in case of duplicate transactions.

If the initial transaction was successfully processed, any subsequent duplicate transactions should be ignored. Error response should be returned with HTTP status code 409 as a DUPLICATE_TRANSACTION.

The session ID expires on operator side

If the session identifier (the sessionId parameter) expires on operator side, /balance, /win and /cancel API methods should still be processed. The /bet method is only processed if isAdjustment=true.

Tip

Round Id not tied to Player ID

In some cases, a single round identifier (the roundId parameter) is not tied to a specific player identifier (the playerId parameter). For instance, in crash games, rounds are global, meaning all users participating in the same round will share the same roundId.

Balance with sport providers

Some sport providers, like 568win (SBO), expect a negative player balance in cases when the canceled amount exceeds the actual balance.

API Method: balance

The /balance API method enables receiving the current player’s balance in order to show it in the game. This method is sometimes requested outside the gaming session.

Path:

https://{operator-wallet-url}/balance

HTTP Method:

POST

Request body

Parameter

Type

Description

sessionId

string

A one-time identifier previously generated by the operator for a specific session

providerId

string

The identifier of the game provider

playerId

string

The identifier of the player [4]

currency

string

The player’s currency code [1]

brandId

string

The identifier of the casino brand [3]

gameId

string (optional)

The unique identifier of a game. If the session expires and the gameId is valid, the balance is returned.

JSON Response

The response contains details about the current player’s balance. If the bonus balance is available, related properties- amount and currency -are specified.

Parameter

Type

Description

real

object

The real balance of the player

real.amount

decimal

The balance amount in real money

real.currency

string

Real balance currency [1]

bonus (optional)

object

The player’s bonus balance

bonus.amount

decimal

Bonus balance amount.

bonus.currency

string

The code for the bonus balance currency. This code must match that of the real currency

An example of using balance API method
curl -X 'POST' \
'https://{operator-wallet-url}/balance' \
-H 'Content-Type": application/json' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5d...0GCfUspxw==' \
-d '{
       "brandId":"someBrand",
       "providerId":"acceptance-tests",
       "sessionId":"449d...b1f8b7",
       "currency":"EUR",
       "playerId":"2cafb095...7f05",
       "gameId":"e2e"
 }'
An example of the success response to the balance request
{ "real": { "currency":"EUR", "amount":27.3 } }

Errors

Error

Status code

Description

UNKNOWN_ERROR

500

A generic error: an internal server error, which can be retried

BAD_REQUEST

400

Missing/invalid parameters

UNAUTHORIZED

401

Invalid signature

PLAYER_NOT_FOUND

404

There is no player for the requested player identifier

SESSION_NOT_FOUND

404

Session does not exist

SESSION_EXPIRED

410

The session has expired

API Method: bet

The /bet API method enables checking if the player’s balance has enough funds for making a bet and then subtracting the bet amount from the player’s balance.

Path:

https://{operator-wallet-url}/bet

HTTP Method:

POST

Request body

Parameter

Type

Description

sessionId

string

Session Id

betType

string

The type of the bet: BET_SPIN, BET_SPORT, BET_CRASH

transactionId

string

The unique identifier of the transaction

gameId

string

The identifier of the game

playerId

string

Identifier of the player [4]

roundId

string

The identifier of the round

providerId

string

The identifier of the game provider

amount

object

Information about the bet amount

amount.amount

decimal

The bet amount

amount.currency

string

The currency code [1]

sideAmount

object (optional)

The side-bet portion of the bet. Sent by live casino games that support side bets. Important: do not process this amount separately — it is for information purposes only. amount already contains the full amount that must affect the player’s balance, including this side bet.

sideAmount.amount

decimal

The side-bet amount

sideAmount.currency

string

The currency code [1]

correlationId

string

The bet Id Identifier

brandId

string

The identifier of the casino brand [3]

gameType

string

The type of the game: CRASH , SPORT or OTHER

isBonusBuy

boolean

Bonus buy transaction. Such bets can be without corresponding win.

jackpotContribution

decimal

The amount of the contribution to the jackpot

jackpotId

string

The identifier of the active jackpot to contribute

isAdjustment

boolean

The session expiration is ignored when this parameter is set to true

status

string

The status of the round after this bet. Sent by sportsbooks: RUNNING. See Round status

extraInfo

ExtraInfoSchema (optional)

Additional information about the bet

Important

  • In some cases, a single roundId is not tied to a specific playerId. For instance, in crash games, rounds are global and all users participating in the same round share the same roundId.

  • Some Sport providers expect a negative player balance support in case when the canceled amount exceeds the actual balance.

  • If sessionId expires on the operator’s side, /win and /cancel are still processed. The /bet API method is processed even if isAdjustment is set to true. Some providers may readjust players’ balance outside of the session. In this case the bet contains isAdjustment set to true.

  • The following parameters are optional: jackpotContribution, jackpotId, isAdjustment, status, extraInfo, and sideAmount

  • sideAmount is sent by live casino games that support side bets. It is a subset of amount and must not be debited on top of it — amount is always the full amount to charge the player and already includes the side bet. Use sideAmount only if you want to track side bets separately.

An example of a bet request
curl -X 'POST' \
'https://{operator-wallet-url}/bet' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "providerId":"acceptance-tests",
       "sessionId":"449d1e54-5f7b-42d1-b851-93e6fcb1f8b7",
       "brandId":"someBrand",
       "betType":"BET_CRASH",
       "gameId":"e2e",
       "gameType":"CRASH",
       "playerId":"PLAYER-2cafb...7f05",
       "roundId":"ceef015...96bce",
       "transactionId":"TRX-b93...42eb",
       "correlationId":"eda29e8...c514",
       "amount":{"amount":50,"currency":"EUR"}
}'

JSON Response

{
  "real": {
    "currency": "EUR",
    "amount": 27.3
  },
  "bonus": {
    "currency": "EUR",
    "amount": 10
  },
  "walletTransactionId": "TRX-b93...42eb",
  "usedBonusAmount": 0,
  "usedRealAmount": 10
}

Parameter

Type

Description

walletTransactionId

string

The identifier of the transaction in the wallet

real

object

Information about the player’s balance in real money

real.amount

decimal

The amount of the real balance

real.currency

string

The currency code [1]

bonus (optional)

object

The bonus balance of the player

bonus.amount

decimal

The bonus balance amount

bonus.currency

string

The code of the bonus balance currency. This cannot be different from the currency of the real balance

usedRealAmount

decimal

The part of the bet amount which is taken from real balance

usedBonusAmount

decimal

The part of the bet amount which is taken from bonus balance

Optional response parameters

The following parameters are optional: usedRealAmount, usedBonusAmount. All parameters related to the bonus money are included in case the player has the bonus amount. Otherwise, all bonus related parameters are omitted.

Errors

An example of an error response to the bet request
{"error":"INSUFFICIENT_BALANCE"}

Error ID

Status code

Description

UNKNOWN_ERROR

500

A generic error or an internal server error that can be retried

BAD_REQUEST

400

The parameters are missing or invalid

UNAUTHORIZED

401

Invalid signature

PLAYER_NOT_FOUND

404

The player does not exist

SESSION_NOT_FOUND

404

The session does not exist

SESSION_EXPIRED

410

The session has expired

INSUFFICIENT_BALANCE

400

The balance is not sufficient

BET_LIMIT_REACHED

400

The bet limit has been reached (for regulated markets)

ACCOUNT_LOCKED

403

The player is locked or frozen

DUPLICATE_TRANSACTION

409

Duplicate transaction

REALITY_CHECK_WARNING

409

A reality check warning

API Method: win

Via the /win API method, VeliGames sends the winning result of a player’s bet. The player’s balance is updated by the winning amount. Then, the updated balance is returned in the response. The operator may not reject the win on the round even if the session has expired. The request can be retried or the bet can be settled later.

Path:

https://{operator-wallet-url}/win

HTTP Method:

POST

Request body

Parameter

Type

Description

sessionId

string

The identifier of the session

winType

string

The type of the win. This parameter is set to one of

  • WIN_ORDINARY

  • WIN_FREE

  • WIN_JACKPOT

The WIN_FREE type is only sent if a free spin or a free bet has been assigned by the operator.

transactionId

string

The unique identifier of the transaction

gameId

string

The identifier of the game

playerId

string

The identifier of the player [4]

roundId

string

The identifier of the round

correlationId

string

The Bet Id Identifier

providerId

string

The identifier of the game provider

amount

object

The amount object that describes the winning

amount.amount

decimal

The won amount

amount.currency

string

The player’s currency [1]

sideAmount

object (optional)

The side-bet portion of the winning. Sent by live casino games that support side bets. Important: do not process this amount separately — it is for information purposes only. amount already contains the full winning amount that must affect the player’s balance, including this side bet.

sideAmount.amount

decimal

The side-bet amount

sideAmount.currency

string

The currency code [1]

brandId

string

The identifier of the casino brand [3]

gameType

string

The type of the game:

  • CRASH

  • SPORT

  • OTHER

rewardId

string

The identifier of the free spin or free bet reward. (Freespin or Freebet)

betPlacedAt

string (ISO 8601)

The time the bet was placed (in UTC time zone). Sent for sportsbook free bets with the winType WIN_FREE, see Free bets settled after the end date

isCashOut

boolean

Indicates if the winning is a result of a cash-out operation, full or partial. See Cash-out

roundClosed

boolean

true when this winning closes the round. false when more operations are expected for the round, for example after a partial cash-out or while some selections of an accumulator are not settled yet. A closed sport round is not final, see Resettlement

status

string

The status of the round after this winning. Sent by some providers, mainly sportsbooks:

  • RUNNING

  • WON

  • LOST

  • CANCELED

  • CASHED_OUT_FULLY

  • CASHED_OUT_PARTIALLY

See Round status

isPromo

boolean

such wins can be without corresponding bet, for example for in-game bonus, tournaments, etc.

isAdjustment

boolean

Such wins can be without corresponding bet. If the win was initiated from Provider as an adjustment.

extraInfo

ExtraInfoSchema

Additional information about the winning

Optional parameters

The following parameters are optional: betPlacedAt, isCashOut, roundClosed, status, extraInfo, isPromo, isAdjustment, and sideAmount. The rewardId parameter is only required with the winType set to WIN_FREE.

sideAmount is sent by live casino games that support side bets. It is a subset of amount and must not be credited on top of it — amount is always the full winning amount and already includes the side bet. Use sideAmount only if you want to track side bets separately.

An example of a win API method
curl -X 'POST' \
'https://{operator-wallet-url}/win' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "brandId":"someBrand",
       "sessionId":"03bbdd...54fd3",
       "providerId":"btg",
       "winType":"WIN_ORDINARY",
       "gameId":"whiterabbitv4000",
       "gameType":"OTHER",
       "playerId":"PLAYER-be6f...26de7",
       "roundId":"9940...5ad01c71e3",
       "transactionId":"TRX-680b24...540e1a",
       "correlationId":"9940b...d01c71e3",
       "roundClosed":true,
       "amount":{"amount":1830,"currency":"ZAR"}
}'

JSON Response

Parameter

Type

Description

walletTransactionId

string

The identifier of the transaction in the wallet

real

object

The balance of the player in real money

real.amount

decimal

The amount of the real balance

real.currency

string

Real balance currency

bonus (optional)

object

Bonus balance of the player [2]

bonus.amount

decimal

The amount of the bonus balance

bonus.currency

string

The code of the bonus balance currency. The currency code must match that of the real balance

usedRealAmount

decimal

Part of the win amount which is added to real balance

usedBonusAmount

decimal

Part of the win amount which is added to bonus balance

{
    "walletTransactionId": "TRX-b93...42eb",
    "real": {
       "currency": "EUR",
       "amount":27.3,
    },
    "bonus": {
       "currency": "EUR",
       "amount": 10,
       ""
    },
    "usedRealAmount": 5,
    "usedBonusAmount" 5
}

Errors

Error ID

Status Code

Description

UNKNOWN_ERROR

500

A generic error or an internal server error that can be retried

BAD_REQUEST

400

The parameters are missing or invalid

UNAUTHORIZED

401

The signature is invalid

PLAYER_NOT_FOUND

404

The player does not exist

SESSION_NOT_FOUND

404

Session does not exist

DUPLICATE_TRANSACTION

409

A duplicate transaction

SESSION_EXPIRED

410

The session has expired

FREE_BET_NOT_FOUND

404

The rewardId is not registered on the operator side or has been canceled

API Method: promo-win

The /promo-win API method notifies the operator about a reward granted to the player outside of a regular bet/win flow — for example campaign payouts (tournaments, missions, prize drops) or wins of internally-assigned free bets. The operator credits the player and records the transaction.

Three reward types are supported:

  • MONEY_REWARD — direct cash credit; no underlying bet. Carries amount; issued with rewardSource VELIGAMES or PROVIDER (the latter adds providerId).

  • FREE_BET_WIN — the win from a free bet that was assigned internally via a VeliGames backoffice template (not delivered to the operator through /free-bet/assign). Carries amount plus freeBetId, providerId and gameId.

  • CASINO_BONUS — a bonus granted from a VeliGames backoffice bonus template. The operator awards the bonus identified by casinoBonusTemplateId; amount is sent with a 0 value — the credited value comes from the bonus template. Always issued with rewardSource: “VELIGAMES”.

Which optional fields are present depends on rewardType and rewardSource — see the field requirements table below.

Path:

https://{operator-wallet-url}/promo-win

HTTP Method:

POST

Important

Provider-originated free bet wins where the free bet was previously announced via /free-bet/assign are not sent here — they continue to flow through /win with winType: WIN_FREE.

Request body

The following parameters are mandatory. A request is only valid if it contains all of these parameters.

Required Parameter

Type

Description

transactionId

string

The unique identifier of the promo-win transaction. Used for idempotency.

playerId

string

The identifier of the player [4]

brandId

string

The identifier of the casino brand [3]

rewardType

string

One of MONEY_REWARD, FREE_BET_WIN or CASINO_BONUS.

rewardSource

string

One of VELIGAMES (issued by VeliGames) or PROVIDER (issued by a game provider and mirrored to the operator).

campaignType

string

The campaign that triggered the reward. Informational — do not validate against a fixed set; new values may be added. Common values: TOURNAMENT, MISSION, PRIZE_DROP, OTHER.

amount

object

The reward amount object. Always present.

amount.amount

decimal

The reward amount. Greater than 0 for every rewardType except CASINO_BONUS, where it is always 0 — the credited value comes from the bonus template.

amount.currency

string

The player’s currency code [1]

Tip

Which of the optional parameters below are present depends on rewardType and rewardSource — see field requirements.

Optional Parameter

Type

Description

casinoBonusTemplateId

string

Identifier of the backoffice bonus template to award. Mandatory for rewardType CASINO_BONUS; omitted otherwise.

campaignId

string

Identifier of the campaign. For provider rewards, the provider’s campaign id is mirrored through as-is. Informational — no validation required.

freeBetId

string

Identifier of the internally-assigned free bet that produced the win. Informational — no validation required.

providerId

string

Game provider.

gameId

string

Game in which the free bet was played.

Field requirements

Field

FREE_BET_WIN

MONEY_REWARD (VELIGAMES)

MONEY_REWARD (PROVIDER)

CASINO_BONUS

rewardSource

VELIGAMES / PROVIDER

VELIGAMES

PROVIDER

VELIGAMES only

amount

required

required

required

required (always 0)

casinoBonusTemplateId

omitted

omitted

omitted

required

providerId

required

omitted

required

omitted

gameId

required

omitted

omitted

omitted

freeBetId

required

omitted

omitted

omitted

An example of a promo-win request (money reward)
curl -X 'POST' \
'https://{operator-wallet-url}/promo-win' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "transactionId":"TRX-9b2d5f7a-1c3e-4a6b-8d0f-2e4c6a8b0d1f",
       "playerId":"PLAYER-2cafb...7f05",
       "brandId":"someBrand",
       "amount":{"amount":"10.00","currency":"EUR"},
       "rewardType":"MONEY_REWARD",
       "rewardSource":"VELIGAMES",
       "campaignType":"TOURNAMENT",
       "campaignId":"camp-2026-spring"
}'
An example of a promo-win request (free bet winning)
curl -X 'POST' \
'https://{operator-wallet-url}/promo-win' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "transactionId":"TRX-5e1a3c7d-9f2b-4d8e-a6c0-1b3d5f7a9c2e",
       "playerId":"PLAYER-2cafb...7f05",
       "brandId":"someBrand",
       "amount":{"amount":"5.50","currency":"EUR"},
       "rewardType":"FREE_BET_WIN",
       "rewardSource":"VELIGAMES",
       "campaignType":"MISSION",
       "freeBetId":"FREE-BET-2a4c6e8b-0d1f-4e3a-9c7b-5f8a1d3e6b0c",
       "providerId":"btg",
       "gameId":"whiterabbitv4000"
}'
An example of a promo-win request (casino bonus)
curl -X 'POST' \
'https://{operator-wallet-url}/promo-win' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "transactionId":"TRX-7c4e2a0b-6d8f-4b1a-9e3c-5a7d1f9b3e0c",
       "playerId":"PLAYER-2cafb...7f05",
       "brandId":"someBrand",
       "amount":{"amount":"0.00","currency":"EUR"},
       "rewardType":"CASINO_BONUS",
       "rewardSource":"VELIGAMES",
       "campaignType":"MISSION",
       "casinoBonusTemplateId":"f47ac10b-58cc-4372-a567-0e02b2c3d479"
}'

Note

A provider-mirrored money reward looks the same as the first example, but with rewardSource: “PROVIDER” and an added providerId identifying the source provider.

JSON Response

The response mirrors the /win response and includes the updated player balance after the reward is credited.

Parameter

Type

Description

walletTransactionId

string

The identifier of the transaction in the operator’s wallet.

real

object

The player’s balance in real money after applying the reward.

real.amount

decimal

The amount of the real balance.

real.currency

string

The currency code of the real balance [1]

bonus (optional)

object

The player’s bonus balance [2]

bonus.amount

decimal

The bonus balance amount.

bonus.currency

string

The bonus balance currency code. The currency code must match that of the real balance

A success response for the promo-win request
{
    "walletTransactionId": "TRX-c1d3e5f7-2a4b-6c8d-0e2f-4a6b8c0d2e4f",
    "real": {
        "currency": "EUR",
        "amount": 37.30
    }
}

Errors

Error ID

Status code

Description

UNKNOWN_ERROR

500

A generic error or an internal server error that can be retried

BAD_REQUEST

400

The parameters are missing or invalid

UNAUTHORIZED

401

Invalid signature

PLAYER_NOT_FOUND

404

The player does not exist

ACCOUNT_LOCKED

403

The player is locked or frozen

DUPLICATE_TRANSACTION

409

A transaction with the same transactionId has already been processed

An example of an error response
{ "error": "DUPLICATE_TRANSACTION" }

API Method: cancel

The /cancel API method reverses the transaction and adjusts the player’s balance. The operator returns the money back to the player’s balance. The operator may not reject the cancellation of the transaction even if the session has expired.

Path:

https://{operator-wallet-url}/cancel

HTTP Method:

POST

Request body

All parameters in the JSON request are mandatory unless specified otherwise.

Parameter

Type

Description

sessionId

string

A unique session identifier

cancelType

string

The type of the cancellation. This parameter may be set to one of the following values:

  • CANCEL_ROUND

  • CANCEL_BET

  • CANCEL_TRANSACTION

transactionId

string

The unique identifier of the transaction

refTransactionId

string

A reference to the original transaction identifier

gameId

string

The identifier of the game

playerId

string

The identifier of the player [4]

roundId

string

The identifier of the round

correlationId

string

The Bet Id Identifier

providerId

string

The identifier of the game provider

adjustmentRefund

object

Adjustment refund amount

adjustmentRefund.amount

decimal

The amount of the refund

adjustmentRefund.currency

string

The player’s currency code [1]

isAdjustment

boolean

If the cancel was initiated by Provider as an adjustment.

brandId

string

The identifier of the casino brand [3]

gameType

string

The game type. This parameter may be set to one of the following values:

  • CRASH

  • SPORT

  • OTHER

roundClosed

boolean

true when this cancel closes the round

status

string

The status of the round after this cancel. Sent by sportsbooks: CANCELED or CLOSED. See Round status

extraInfo

ExtraInfoSchema

Additional information about the cancel request

Optional parameters

The adjustmentRefund parameter is only available if the cancelType parameter is set to CANCEL_BET. In this case, the parameters adjustmentRefund.amount and adjustmentRefund.currency will also be specified. isAdjustment is set to true when the refund differs from the bet amount.

The refTransactionId parameter is omitted if cancelType is set to CANCEL_ROUND.

The parameters correlationId, roundClosed, status and extraInfo are optional.

Important

What each cancelType does to the balance

cancelType

Operator action

CANCEL_BET

Credit exactly adjustmentRefund.amount, nothing else is refunded. Wins already paid in the round stay as they are

CANCEL_TRANSACTION

Reverse exactly the transaction referenced by refTransactionId: a bet is refunded, a win is debited

CANCEL_ROUND

Reverse every transaction of the round

A win is reversed only by a CANCEL_TRANSACTION that references the win, or by CANCEL_ROUND. A cancel that references a bet never reverses a win, also when the bet was cashed out before.

Example: partial cash-out followed by a void

A player places a 2.00 EUR single and cashes out part of it. The market is later voided. The wallet receives three calls:

Call

Parameters that matter

status

Balance effect

bet

amount 2.00, gameType SPORT

RUNNING

-2.00

win

amount 1.58, isCashOut true, roundClosed false

CASHED_OUT_PARTIALLY

+1.58

cancel

cancelType CANCEL_BET, refTransactionId = the bet, adjustmentRefund 0.38, isAdjustment true, roundClosed true

CLOSED

+0.38

The 0.38 is the part of the stake that was still open when the market was voided (2.00 stake, 0.04 cash-out fee kept by the sportsbook, 1.58 already paid). The cash-out win of 1.58 stays, and the player’s net result for the round is -0.04. Reversing the win on this cancel is wrong and leaves a reconciliation difference equal to the cash-out amount.

An example of using the cancel API method
curl -X 'POST' \
'https://{operator-wallet-url}/cancel' \
-H 'accept: */*' \
-H 'signature:OPERATOR_ID:tapm5+EvNZ5dCCN...N5CdDx0GCfUspxw==' \
-H 'Content-Type: application/json' \
-d '{
       "sessionId":"0fc68f...61726de8b",
       "providerId":"jili",
       "transactionId":"TRX-b367c9...87688222",
       "refTransactionId":"TRX-bba5...54394",
       "playerId":"PLAYER-d39...08c57",
       "gameId":"101",
       "gameType":"OTHER",
       "cancelType":"CANCEL_TRANSACTION",
       "roundId":"776686",
       "correlationId":"776686",
       "brandId":"someBrand"
}'

JSON Response

Parameter

Type

Description

walletTransactionId

string

The identifier of the transaction in the wallet

real

object

The balance of the player in real money

real.amount

decimal

The amount of the real balance

real.currency

string

The code of the currency on the real balance

bonus (optional)

object

Bonus balance of the player [2]

bonus.amount

decimal

Bonus balance amount

bonus.currency

string

The currency code of the bonus balance. The currency code must match that of the real balance

usedRealAmount

decimal

The part of the cancel amount which is taken from real balance

usedBonusAmount

decimal

The part of the cancel amount which is taken from bonus balance

Optional parameters

The parameters usedRealAmount and usedBonusAmount are optional.

Errors

Error ID

Status Code

Description

UNKNOWN_ERROR

500

A generic error or an internal server error that can be retried

BAD_REQUEST

400

The parameters are either missing or invalid

UNAUTHORIZED

401

The signature is invalid

PLAYER_NOT_FOUND

404

The player does not exist

SESSION_NOT_FOUND

404

The session does not exist

TRANSACTION_NOT_FOUND

404

The transaction has not been found

DUPLICATE_TRANSACTION

409

Duplicate transaction

SESSION_EXPIRED

410

The session has expired

Sportsbook

Additional details for sportsbook providers (gameType SPORT): the status of the round, cash-outs, resettlement, updates of single selections, and the bet details sent in extraInfo.

Round status

Sportsbooks send status on bet, win and cancel. It is the status of the bet after the transaction:

status

Meaning

RUNNING

The bet is open. Sent with the bet and with wins on a bet that is not settled yet

WON

The bet is settled as won. The win carries the payout and roundClosed true

LOST

The bet is settled as lost. Sent with a zero-amount win. For an accumulator, roundClosed stays false while some selections are not settled yet. Their results come later as zero-amount wins (see Selection updates), and the last one has roundClosed true

CASHED_OUT_FULLY

The whole bet was cashed out, see Cash-out

CASHED_OUT_PARTIALLY

Part of the bet was cashed out and the rest is still open, see Cash-out

CANCELED

The bet was voided in full: the cancel reverses the stake and nothing of the round stands. If the bet had already paid out, it comes as one cancel with cancelType CANCEL_ROUND, which reverses every transaction of the round, wins included

CLOSED

Sent on a cancel that settles the bet but leaves earlier wins in place, for example the return of the stake that was still open after a partial cash-out. roundClosed is true

Warning

Many casino providers also send roundClosed, but what it means depends on the provider (end of a spin, end of a feature, every win, never). Do not settle, lock or report rounds on roundClosed for non-sport providers.

Cash-out

Sportsbooks let the player cash out a bet before all its events are settled. A cash-out is sent as a win with isCashOut set to true. The amount is the cash-out amount and must be credited like any other winning.

There are two kinds of cash-out, told apart by status and roundClosed:

Kind

status

roundClosed

What happens next

Full cash-out

CASHED_OUT_FULLY

true

Nothing. The bet is finished

Partial cash-out

CASHED_OUT_PARTIALLY

false

The rest of the bet stays open. When it is settled, another win arrives for the same roundId with the final status and roundClosed set to true

Note

The stake left open after a partial cash-out is not sent. Only the cash-out amount is provided.

The following example shows a 100 INR accumulator. The player cashes out part of it for 35 INR, and the rest of the bet is later lost.

  • bet - the stake is debited

  • {
       "roundId": "9242630",
       "transactionId": "TRX-e04467b8...4d194",
       "gameType": "SPORT",
       "amount": {"amount": 100, "currency": "INR"},
       "status": "RUNNING"
    }
    
  • win - partial cash-out, the round stays open

  • {
       "roundId": "9242630",
       "transactionId": "TRX-8597c98c...04944",
       "gameType": "SPORT",
       "amount": {"amount": 35, "currency": "INR"},
       "isCashOut": true,
       "status": "CASHED_OUT_PARTIALLY",
       "roundClosed": false
    }
    
  • win - the rest of the bet is settled and the round is closed

  • {
       "roundId": "9242630",
       "transactionId": "TRX-cd02f6d3...3fec",
       "gameType": "SPORT",
       "amount": {"amount": 0, "currency": "INR"},
       "isCashOut": false,
       "status": "LOST",
       "roundClosed": true
    }
    

    The examples show only the fields related to cash-out. The full requests also carry the parameters described in API Method: win, including extraInfo.

    Resettlement

    A sportsbook may change the result of a bet after the round is closed. The wallet then receives a cancel with cancelType CANCEL_TRANSACTION that references the earlier win (the round reopens), followed by a new win with isAdjustment set to true and the corrected amount and status. This can happen more than once for the same round, so never reject transactions on a round because it was closed earlier.

    Selection updates

    The result of a single selection can change after the bet is placed, also after the bet is settled. Each change comes as a win with amount 0 for the same roundId, with the updated stakes in extraInfo (see the stake status in ExtraInfoSchema Type). It moves no money: use it only to update the selections of the bet.

    Free bets settled after the end date

    A sports free bet can be placed before its endDate and settled after it, because the result is known only when the events finish. The free bet is valid if it was placed before its endDate. The time of the settlement does not matter.

    For these wins VeliGames sends betPlacedAt in the win request. It is sent by velisports with the winType WIN_FREE, whether the bet is settled before or after the endDate:

    Case

    What VeliGames does

    Placed at or before the endDate, settled before or after it

    Sends the win

    Placed after the endDate

    Does not send the win

    The placement time is not known (betPlacedAt is not sent)

    Sends the win only if it is settled at or before the endDate

    The operator should not reject a WIN_FREE only because the free bet has already expired on the operator side. To check the validity of the free bet, compare its endDate with betPlacedAt and not with the time the win is received. A lost free bet is sent as a win with amount 0, also after the endDate.

    A free bet with the endDate 2026-11-06T03:00:00Z, settled on 2026-11-07
    {
       "winType": "WIN_FREE",
       "roundId": "9242630",
       "transactionId": "TRX-8597c98c...04944",
       "rewardId": "33ee9a8112....5653966725a",
       "gameType": "SPORT",
       "amount": {"amount": 420.5, "currency": "INR"},
       "betPlacedAt": "2026-11-03T03:02:17.279Z",
       "status": "WON",
       "roundClosed": true
    }
    

    The example shows only the fields related to the free bet. The full request also carries the parameters described in API Method: win.

    ExtraInfoSchema Type

    ExtraInfoSchema is a type that may optionally be passed in requests in order to specify additional information with JSON documents in the scope of the Wallet API. This type is normally used with sport integrations.

    If present, conforming objects must have the following parameters:

    Parameter

    Type

    Description

    betType

    string

    The type of the bet

    globalCoefficient

    number

    The global coefficient for the bet

    stakes

    ExtraInfoStakeSchema[]

    A list of stakes

    Each stake from the list of stakes passed as the value of the stakes parameter is structured as follows:

    Parameter

    Type

    Description

    coefficient

    number

    The coefficient of the stake

    eventName

    string

    The name of the event

    eventDate

    string (date-time)

    The date of the event

    stakeType

    string

    The type of the stake

    stake

    string

    Stake information

    tournament

    string

    The name of the tournament

    sportType

    string

    The type of the sport

    isLive

    boolean

    Whether the event is live (true) or prematch (false)

    Testing Seamless Wallet

    To test if implementation is correct, launch a real game session with following parameters:

    • providerId: acceptance-tests

    • gameId: e2e

    (Stage Only)

    Footnotes