Debits do not equal credits. 422.
OPDC API error code
JOURNAL_UNBALANCED
HTTP status 422
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/journal-unbalanced, and with X-Error-Code: JOURNAL_UNBALANCED. Branch on the code, never on the detail text.