Skip to content

Cashier operations

All three operations need player_id, terminal_ID and amount. The player must belong to the terminal's shop.

The player is logged out first

Before each operation, the player's active session is closed on all devices.

Deposit

POST /api/deposite

Adds money to the player's balance and takes it from the shop balance.

Field Required Description
player_id yes Player ID
terminal_ID yes Terminal ID
amount yes Deposit amount
promo_code no Promo code, see Promo codes
curl -X POST https://<fizz-api-host>/api/deposite \
  -H "Content-Type: application/json" \
  -d '{"player_id": 12345, "terminal_ID": "70790473203088", "amount": 20, "promo_code": "WELCOME"}'
{
  "status": "success",
  "data": {
    "print": "Deposit successful",
    "deposit_amount": 20.0,
    "withdraw_available": 0.0,
    "account_amount": "40.00",
    "deposit_bonus": 20,
    "currentDateTime": "Monday, Nov 30 2026 14:05:11",
    "username": "",
    "pin": "17-42-93-08-65-21",
    "id": 12345,
    "promo": {
      "applied": true,
      "code": "WELCOME",
      "type": "DEPOSIT_MATCH",
      "amount": 20.0,
      "spins": null,
      "percent": 100.0,
      "max_amount": 200.0,
      "min_deposit": 20.0,
      "description": "100% deposit bonus: 20.00 bonus entries for a 20.00 deposit (up to 200.00). Minimum deposit 20.00."
    }
  }
}
{ "status": "failure", "error": "not_enough_money_in_the_shop" }
  • account_amount is the player's balance after the deposit.
  • deposit_bonus is the whole part of the promo bonus that was credited.
  • promo is present only when promo_code was sent. If the code does not apply, the deposit still goes through, and promo has applied: false with the reason in error.

Errors: terminal not found, player not found, Player not register from this terminal, not_enough_money_in_the_shop, Player must be logged out, account_blocked.

Withdraw

POST /api/withdraw

Pays out the player's winnings and returns the amount to the shop balance. The player can withdraw up to total_win - total_withdraw.

curl -X POST https://<fizz-api-host>/api/withdraw \
  -H "Content-Type: application/json" \
  -d '{"player_id": 12345, "terminal_ID": "70790473203088", "amount": 15}'
{
  "status": "success",
  "data": {
    "reedem": "Reedem successful",
    "deposit_amount": 15.0,
    "withdraw_available": 25.0,
    "account_amount": "25.00",
    "deposit_bonus": 0,
    "currentDateTime": "Monday, Nov 30 2026 14:10:02",
    "username": "",
    "pin": "17-42-93-08-65-21",
    "id": 12345
  }
}
{ "status": "failure", "error": "insufficient_funds" }

Errors: terminal not found, player not found, Player not register from this terminal, insufficient_funds, Player must be logged out, account_blocked.

Withdrawal limits

When a withdrawal limit blocks the operation, error contains a message that is ready to show to the player.

Refund

POST /api/refund

Returns an amount back to the player's winnings.

curl -X POST https://<fizz-api-host>/api/refund \
  -H "Content-Type: application/json" \
  -d '{"player_id": 12345, "terminal_ID": "70790473203088", "amount": 10}'
{
  "status": "success",
  "data": {
    "message": "Refunded 10.0 to user's winnings",
    "total_win": 50.0,
    "total_withdraw": 10.0,
    "withdraw_available": 40.0
  }
}

Errors: terminal not found, player not found, Player not register from this terminal.