A new service invoice sent at a status it cannot be entered at. 422.
Paid (4): enter the invoice at Open (1) and record the payment with a cash receipt. Void (5) is not allowed on a new entry. Nothing is written.
OPDC API error code
HTTP status 422
A new service invoice sent at a status it cannot be entered at. 422.
Paid (4): enter the invoice at Open (1) and record the payment with a cash receipt. Void (5) is not allowed on a new entry. Nothing is written.
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/developers/errors/service-invoice-status-not-creatable, and with X-Error-Code: SERVICE_INVOICE_STATUS_NOT_CREATABLE. Branch on the code, never on the detail text.