OPDC API error code

BANK_ACCOUNT_NOT_CASH

HTTP status 422

A payment drawn on a ledger account that is not a cash account. 422. Nothing is written.

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

How errors work, and what to retryEvery error code