ClavianAPI errors
All error codes

409 Conflict

The wallet does not hold enough

Code
wallet_insufficient_funds
Status
409 Conflict
Type
https://errors.clavian.io/wallet-insufficient-funds

What it means

The wallet payment is larger than the player’s wallet holds — its cash and bonus together — or the player has no wallet here. A wallet never goes below zero.

What to do

Read the wallet balance, take no more than it holds from the wallet, and take the rest by another tender.

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-funds",
  "title": "The wallet does not hold enough",
  "status": 409,
  "code": "wallet_insufficient_funds",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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