Purchase Orders error codes
Every public API error code emitted by Purchase Orders, with its HTTP status, its type and a page per code.
Error codes emitted by Purchase Orders. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
goods_receipt_already_posted | invalid_request_error | 422 | The receipt is already posted in the stock ledger, and a posted receipt is immutable: its movements are part of the audited stock history. |
goods_receipt_exceeds_ordered_quantity | invalid_request_error | 422 | The receipt declares more units than the purchase order still has pending, so accepting it would post stock that nobody ordered. |
goods_receipt_not_found | not_found_error | 404 | No goods receipt of the authenticated company matches that identifier; a receipt of another company is indistinguishable from one that does not exist. |
goods_receipt_sheet_not_available | invalid_request_error | 422 | The goods receipt no longer has a receipt sheet: only a receipt in created status is counted at the dock, and this one is posted or cancelled. |
purchase_invoice_quantity_mismatch | invalid_request_error | 422 | The quantity on the purchase invoice does not match the quantity received against the purchase order, so the three-way match —order, receipt and invoice— cannot be closed. |
purchase_order_already_billed | invalid_request_error | 422 | The purchase order is already matched to a purchase invoice, and a matched order admits neither a second match nor further edits: the billed amount is already committed. |
purchase_order_not_found | not_found_error | 404 | No purchase order of the authenticated company matches that identifier. A purchase order of another company answers exactly like one that never existed. |
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.