409 Conflict
The wallet does not hold enough
- Code
wallet_insufficient_funds- Status
409Conflict- 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:
POST /v1/me/venues/{venueId}/passes/{productId}/purchaseBuy a pass from your walletPOST /v1/organizations/{organizationId}/venues/{venueId}/sales/{saleId}/paymentsTake a tender against a salePOST /v1/station/food-ordersOrder food from the PCPOST /v1/station/passes/{productId}/purchaseBuy a pass from the kioskPOST /v1/station/sessions/current/use-walletKeep playing with the wallet