invoice_cannot_assign_number
A definitive number was requested for an invoice that is not a draft, or that already carries one. Series numbering is monotonic and numbers are never reassigned.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_cannot_assign_number | invalid_request_error | 422 | Invoices |
Cause
A definitive number was requested for an invoice that is not a draft, or that already carries one. Series numbering is monotonic and numbers are never reassigned.
What to do
Only ask for a number on a draft that still shows the placeholder; if the invoice already has one, read it from the number field.
Related
All Invoices error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.