409 Conflict
Stock tracking is off here
- Code
inventory_disabled- Status
409Conflict- 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
POST /v1/organizations/{organizationId}/venues/{venueId}/inventory/adjustmentsCorrect one item by hand, with a notePOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/copy-from-venueCopy another venue’s items, packs and recipesPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/countsStart a full or spot countPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/counts/{countId}/cancelDiscard an open countPUT /v1/organizations/{organizationId}/venues/{venueId}/inventory/counts/{countId}/linesEnter counted quantities on an open countPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/counts/{countId}/submitSubmit a count: each variance becomes a movementPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/itemsAdd an ingredient or a supplyPATCH /v1/organizations/{organizationId}/venues/{venueId}/inventory/items/{stockItemId}Edit a stock item and its packs, or archive itPUT /v1/organizations/{organizationId}/venues/{venueId}/inventory/products/{productId}/recipesReplace a product’s recipes at the venuePOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/receiptsReceive a deliveryPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/suppliersAdd a supplierPATCH /v1/organizations/{organizationId}/venues/{venueId}/inventory/suppliers/{supplierId}Edit or archive a supplierPOST /v1/organizations/{organizationId}/venues/{venueId}/inventory/usageRecord waste, a staff meal or a supply issue