ClavianAPI errors
All error codes

409 Conflict

Stock tracking is off here

Code
inventory_disabled
Status
409 Conflict
Type
https://errors.clavian.io/inventory-disabled

What it means

The venue has not turned stock tracking on (inventory.enabled), so nothing about its stock is recorded: no item, delivery, count, waste, recipe or copy is written while it is off.

What to do

Turn on "Track stock" in the venue’s Food and drinks settings (it needs settings:fnb), then send the request again. A client reads GET …/inventory/status and hides the stock actions while it is off.

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/inventory-disabled",
  "title": "Stock tracking is off here",
  "status": 409,
  "code": "inventory_disabled",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

13 endpoints in the OpenAPI document name it among their answers.

All 13 endpoints