409 Conflict
The wallet does not hold that much cash
- Code
wallet_insufficient_cash- Status
409Conflict- 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:
POST /v1/organizations/{organizationId}/players/{playerId}/wallet/adjustmentsCredit or debit a player’s wallet cashPOST /v1/organizations/{organizationId}/players/{playerId}/wallet/refundsRefund a player’s wallet cash to a tender