ClavianAPI errors
All error codes

409 Conflict

Cash refunds are turned off here

Code
wallet_refunds_off
Status
409 Conflict
Type
https://errors.clavian.io/wallet-refunds-off

What it means

The organisation does not allow wallet cash to be refunded (wallet.cashRefundsAllowed is off), so a top-up cannot be reversed to a tender.

What to do

Turn wallet.cashRefundsAllowed on in the organisation’s settings to refund wallet cash, or let the player spend the balance instead.

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-refunds-off",
  "title": "Cash refunds are turned off here",
  "status": 409,
  "code": "wallet_refunds_off",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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