OPDC API error code

CREDIT_NOT_APPLICABLE

HTTP status 422

A payment's credit row is not an open credit of the vendor, or its credits come to more than the invoices they offset. 422. Nothing is written.

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

How errors work, and what to retryEvery error code