Factuarea APIDevelopers

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.

CodeTypeHTTPDescription
corrective_target_invoice_not_coveringinvalid_request_error422The invoice chosen for the refund does not contain what is being returned, and another candidate invoice of the origin does.
return_exceeds_delivered_quantityinvalid_request_error422The return declares more units than were delivered on that line, or more than the ones left to return after earlier returns.
return_line_not_returnableinvalid_request_error422The origin line is for a service item, which cannot be returned.
return_not_foundnot_found_error404No return of the authenticated company matches that identifier; returns of other companies answer exactly like one that never existed.
return_not_sendableinvalid_request_error422The return sheet can only be sent for an authorized, received or refunded return; this one is requested or rejected.
return_origin_not_deliveredinvalid_request_error422The 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_authorizedinvalid_request_error422A line declares more received units than were authorized in the return.
return_reception_emptyinvalid_request_error422The reception does not declare any line with a received quantity greater than zero.
return_rejection_reason_not_applicableinvalid_request_error422The 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_expiredinvalid_request_error422The return window counted from the delivery has expired, so those units are no longer returnable under the agreed policy.

On this page

Need a hand?Contact support