OPDC API error code

RECEIPT_EXCEEDS_ORDER

HTTP status 422

A purchase-order receipt that receives more than a line has left to receive (ordered, less already received and cancelled), or that names a line that is not on the purchase order. 422.

The detail names each line and the quantity left on it, and nothing is received. A line ordered as a negative quantity (a credit) is not limited.

The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/receipt-exceeds-order, and with X-Error-Code: RECEIPT_EXCEEDS_ORDER. Branch on the code, never on the detail text.

How errors work, and what to retryEvery error code