ClavianAPI errors
All error codes

409 Conflict

The wallet does not hold that much cash

Code
wallet_insufficient_cash
Status
409 Conflict
Type
https://errors.clavian.io/wallet-insufficient-cash

What it means

The refund or debit is larger than the cash the wallet holds. A wallet refund gives back cash the player paid in, and a debit adjustment removes cash, so neither may take the cash balance below zero; a bonus balance is never refunded.

What to do

Refund or debit no more than the wallet’s current cash balance, or read the balance again if it has moved.

Example

The API answers with status 409 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.

{
  "type": "https://errors.clavian.io/wallet-insufficient-cash",
  "title": "The wallet does not hold that much cash",
  "status": 409,
  "code": "wallet_insufficient_cash",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: