A deduction with no calculation number, which would post to the GL but not the subledger. 422.
OPDC API error code
PAYROLL_DEDUCTION_INVALID
HTTP status 422
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/payroll-deduction-invalid, and with X-Error-Code: PAYROLL_DEDUCTION_INVALID. Branch on the code, never on the detail text.