409 Conflict
On account is off here
- Code
credit_disabled- Status
409Conflict- Type
https://errors.clavian.io/credit-disabled
What it means
The organisation has not turned on account on (credit.enabled), so a sale cannot be charged to a player’s account.
What to do
Take payment another way, or turn on account on in the organisation’s settings first.
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/credit-disabled",
"title": "On account is off here",
"status": 409,
"code": "credit_disabled",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/organizations/{organizationId}/venues/{venueId}/sales/{saleId}/on-accountTake a sale on accountPOST /v1/station/food-ordersOrder food from the PCPOST /v1/station/passes/{productId}/purchaseBuy a pass from the kiosk