Factuarea APIDevelopers

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.

CodeTypeHTTPDescription
stock_transfer_already_dispatchedinvalid_request_error422The transfer already left the source warehouse, and with the goods on the way it admits neither editing nor cancellation.
stock_transfer_line_duplicatedinvalid_request_error422The same line appears more than once in the preparation, so none was saved: each line carries a single quantity.
stock_transfer_not_dispatchedinvalid_request_error422The transfer has not been dispatched yet, so there is nothing travelling to receive at the destination warehouse.
stock_transfer_not_foundnot_found_error404No stock transfer of the authenticated company matches that identifier; transfers of other companies are invisible here.
stock_transfer_prepared_exceeds_quantityinvalid_request_error422One of the prepared quantities is above the quantity of its line, so none was saved: the preparation is all or nothing.
stock_transfer_transport_lockedinvalid_request_error422The 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_frozeninvalid_request_error422The origin and destination warehouses are fixed when the transfer is created and cannot change afterwards.
warehouse_not_emptyinvalid_request_error422The 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_foundnot_found_error404No warehouse of the authenticated company matches that identifier; a warehouse of another company answers exactly like one that never existed.
warehouse_not_resolvableinvalid_request_error422The 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_negativeinvalid_request_error422The 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.

On this page

Need a hand?Contact support