OPDC API error code

JOB_COST_MISMATCH

HTTP status 422

A journal's job costs do not equal its lines on job-cost accounts (work in progress and direct expense): no job costs where those lines move money, job costs with a different total, or job costs with no such line. When the company requires a cost type on expense accounts, also such a line on an account with no cost type, or a cost type whose job costs are less than its lines. 422. Nothing is posted.

The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/developers/errors/job-cost-mismatch, and with X-Error-Code: JOB_COST_MISMATCH. Branch on the code, never on the detail text.

How errors work, and what to retryEvery error code