invoice_cannot_be_marked_as_sent
The delivery mark records that an issued invoice reached the customer, so it only applies to `issued` or `overdue` invoices. A draft or a scheduled invoice is not the fiscal invoice yet, and a cancelled or annulled one no longer is.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_cannot_be_marked_as_sent | invalid_request_error | 422 | Invoices |
Cause
The delivery mark records that an issued invoice reached the customer, so it only applies to issued or overdue invoices. A draft or a scheduled invoice is not the fiscal invoice yet, and a cancelled or annulled one no longer is.
What to do
If the invoice is a draft, issue it first with POST /v1/invoices/{id}/issue and then record the delivery: from API version 2026-10-01 mark-sent no longer issues drafts. A cancelled or annulled invoice has no delivery to record.
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.