Returns error codes
Every public API error code emitted by Returns, with its HTTP status, its type and a page per code.
Error codes emitted by Returns. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
corrective_target_invoice_not_covering | invalid_request_error | 422 | The invoice chosen for the refund does not contain what is being returned, and another candidate invoice of the origin does. |
return_exceeds_delivered_quantity | invalid_request_error | 422 | The return declares more units than were delivered on that line, or more than the ones left to return after earlier returns. |
return_line_not_returnable | invalid_request_error | 422 | The origin line is for a service item, which cannot be returned. |
return_not_found | not_found_error | 404 | No return of the authenticated company matches that identifier; returns of other companies answer exactly like one that never existed. |
return_not_sendable | invalid_request_error | 422 | The return sheet can only be sent for an authorized, received or refunded return; this one is requested or rejected. |
return_origin_not_delivered | invalid_request_error | 422 | The origin document has not been delivered yet (a draft or voided delivery note, an invoice that is not issued, or an order with nothing served), and only what was delivered can be returned. |
return_received_exceeds_authorized | invalid_request_error | 422 | A line declares more received units than were authorized in the return. |
return_reception_empty | invalid_request_error | 422 | The reception does not declare any line with a received quantity greater than zero. |
return_rejection_reason_not_applicable | invalid_request_error | 422 | The rejection reason chosen does not hold for this return: for example, an expired window while the window is still open or unlimited, excess units with no line above the returnable quantity, or an unavailable origin when it is available. |
return_window_expired | invalid_request_error | 422 | The return window counted from the delivery has expired, so those units are no longer returnable under the agreed policy. |
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.