A payment names an invoice with a second payee (a two-party check). 422. Nothing is written.
OPDC API error code
SECOND_PAYEE_UNSUPPORTED
HTTP status 422
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/second-payee-unsupported, and with X-Error-Code: SECOND_PAYEE_UNSUPPORTED. Branch on the code, never on the detail text.