warehouse_not_empty
The warehouse still holds stock or live reservations, and a warehouse with contents cannot be archived or deleted: its balance would vanish from the ledger.
| Code | Type | HTTP | Category |
|---|---|---|---|
warehouse_not_empty | invalid_request_error | 422 | Warehouses |
Cause
The warehouse still holds stock or live reservations, and a warehouse with contents cannot be archived or deleted: its balance would vanish from the ledger.
What to do
Empty it first —transfer the remaining stock to another warehouse and release or let its reservations expire— and archive it afterwards.
Related
All Warehouses error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.