A cash receipt applied to an invoice that is not open: it is paid or void, or it was never posted to the general ledger. 422.
Nothing is written. Apply the receipt to an open, posted invoice.
OPDC API error code
HTTP status 422
A cash receipt applied to an invoice that is not open: it is paid or void, or it was never posted to the general ledger. 422.
Nothing is written. Apply the receipt to an open, posted invoice.
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/developers/errors/invoice-not-open, and with X-Error-Code: INVOICE_NOT_OPEN. Branch on the code, never on the detail text.