Warehouses error codes
Every public API error code emitted by Warehouses, with its HTTP status, its type and a page per code.
Error codes emitted by Warehouses. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
stock_transfer_already_dispatched | invalid_request_error | 422 | The transfer already left the source warehouse, and with the goods on the way it admits neither editing nor cancellation. |
stock_transfer_line_duplicated | invalid_request_error | 422 | The same line appears more than once in the preparation, so none was saved: each line carries a single quantity. |
stock_transfer_not_dispatched | invalid_request_error | 422 | The transfer has not been dispatched yet, so there is nothing travelling to receive at the destination warehouse. |
stock_transfer_not_found | not_found_error | 404 | No stock transfer of the authenticated company matches that identifier; transfers of other companies are invisible here. |
stock_transfer_prepared_exceeds_quantity | invalid_request_error | 422 | One of the prepared quantities is above the quantity of its line, so none was saved: the preparation is all or nothing. |
stock_transfer_transport_locked | invalid_request_error | 422 | The status of the transfer no longer admits changing that transport field: a dispatched one only accepts the tracking number and the planned arrival, and a received or cancelled one accepts none. |
stock_transfer_warehouses_frozen | invalid_request_error | 422 | The origin and destination warehouses are fixed when the transfer is created and cannot change afterwards. |
warehouse_not_empty | invalid_request_error | 422 | 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. |
warehouse_not_found | not_found_error | 404 | No warehouse of the authenticated company matches that identifier; a warehouse of another company answers exactly like one that never existed. |
warehouse_not_resolvable | invalid_request_error | 422 | The warehouse resolution chain of the document (the line, then the document, then the customer or the supplier, then the company default warehouse) reached no active warehouse, so the stock movement cannot be attributed to any. |
warehouse_stock_cannot_be_negative | invalid_request_error | 422 | The adjustment names a warehouse and would leave the stock of THAT warehouse below zero, even though the total of the item across the company is enough. |
Related
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.