Invoice lifecycle
An invoice’s state is read in three fields. status combines the document and its current submission to the authority. authorityState is that submission’s own step. simpleStatus folds everything, payments included, into one word for display. All three come back on every invoice read; GET /i/v1/invoices/{id}/status returns the first two with every submission.
status
| Status | Meaning |
|---|---|
draft | Being prepared; totals are computed as you edit |
finalised | Issued and not submitted to the authority, or its submission was withdrawn |
queued | Submitted and waiting for the authority (authorityState queued or handed_off) |
signed | Registered by the authority, IRN assigned; also when the authority then could not send it on to the buyer |
transmitted | Sent to the buyer’s access point, not yet acknowledged |
accepted | The authority says the buyer received it |
rejected | The authority rejected the current submission |
failed | The current submission is on hold; parkReason says why |
cancellation_pending | A credit note that credits it in full is waiting to register |
cancelled | Voided, or cancelled by a registered credit note |
A draft can be edited, deleted, finalised, or submitted with finalise=true. Every status from finalised to failed is a finalised document: frozen, so the supplier details and totals will not change, and you can send it to the buyer, download it, record payments and cancel it. A cancelled invoice cannot change; the credit note is its record.
Two moves go backwards. Reopen (POST /i/v1/invoices/{id}/reopen) returns a finalised invoice to draft after the authority rejected it, so you can correct and resubmit. Revise (POST /i/v1/invoices/{id}/revise) returns a finalised invoice that was never reported and never paid to draft.
Only drafts can be deleted.
Submission state
Submitting creates a submission that climbs a ladder. It never climbs down. Its step is authorityState, on the invoice and on each entry of submissions.
| State | Meaning |
|---|---|
queued | Waiting to be handed to the tax authority’s gateway |
handed_off | The gateway accepted it and assigned its IRN; the authority has not registered it yet |
registered | The authority registered it: the invoice is reported, with its verification code (the QR code’s content). This is the milestone that uses credits |
transmitted | The authority sent it on towards the buyer’s access point |
delivered | The authority confirmed delivery to the buyer |
Three states sit off the ladder:
| State | Meaning | What you can do |
|---|---|---|
rejected | The authority refused it before registering it; rejectReasons on the submission say why | Reopen, correct, submit again |
parked | On hold for a reason that is not the content; parkReason says which (below) | Retry with POST /i/v1/invoices/{id}/retry; for a number clash, POST /i/v1/invoices/{id}/renumber |
withdrawn | Cancelled before it was handed over, or replaced by a renumbered submission | Nothing |
parkReason is authority_unavailable or authority_blocked when the authority’s gateway could not take the submission after repeated tries, connection_required when your tax connection is not usable (the submission resumes once it is), reference_conflict when the authority already holds the invoice number for another document (renumber it), and idempotency_conflict when it cannot be sent safely (contact support).
A submission that is already registered is never demoted. If the authority later holds or refuses it (parkReason authority_rejected_after_registration, or authority_parked, alone or followed by the gateway’s own code after a colon), the invoice keeps its registration, stays reported, and its status stays signed.
Resubmitting after a rejection is a new submission, and uses credits again.
simpleStatus
The first of these that holds:
| Value | When |
|---|---|
draft | The document is a draft |
cancelled | Voided, or cancelled by a registered credit note |
paid | Paid in full (on a credit note, its refund) |
part_paid | A partial payment is recorded |
delivered | The authority says the buyer received it |
transmitted | Sent to the buyer’s access point and not yet acknowledged |
reported | Registered by the authority |
issued | Finalised and none of the above: never submitted, or a submission that is queued, on hold or rejected |
reportedToNrs is true once the authority has registered the invoice, whatever simpleStatus says: a paid or cancelled invoice may or may not have been reported. It is false on a draft.
Payments
Record what the buyer paid with PATCH /i/v1/invoices/{id}/payment-status: unpaid, partially_paid, paid or payment_failed, with an amount and a reference. Registered invoices have their payment status reported to the authority as well.
Credit and debit notes
Cancelling a finalised invoice (POST /i/v1/invoices/{id}/cancel) issues the closing credit note; it is the only way an invoice becomes cancelled. A partial credit note (POST /i/v1/invoices/{id}/credit-notes) or a debit note (POST /i/v1/invoices/{id}/debit-notes) changes what is owed without cancelling the original. invoiceType on create accepts standard only.
Issuing without reporting
POST /i/v1/invoices/{id}/issue finalises an invoice and issues it to the buyer without submitting it to the authority. Use it where reporting is not required for the document, and submit later if it becomes so.
Held: issued while the tax connection is in progress
A business can ask to connect before the tax authority lists it for e-invoicing. Its connection then waits (GET /i/v1/tax-connection shows state: "awaiting_authority_listing"), and Yona asks the authority again every 6 hours and completes the connection by itself.
Invoices do not have to wait. While a connection is in progress, POST /i/v1/invoices/{id}/issue still finalises the invoice and sends it to the buyer, and answers:
{ "reporting": "held", "notReportedReason": "awaiting_connection" }A held invoice is issued and valid between the parties, and not yet registered: it has no submission and no authority reference. Yona reports it automatically once the connection completes, and from then on it climbs the ladder like any other.
| Where | What you see |
|---|---|
| The invoice | reporting.state is held |
GET /i/v1/invoices?reporting=held | Only the held invoices |
GET /i/v1/invoices/summary | Their count, in held |
| The buyer’s copy and the share link | A line saying it is not yet registered and will be once the seller’s connection completes |
What you can do with one meanwhile: cancel it or revise it, as for any invoice that was never reported. A credit or debit note needs a registered original, so it is refused until the invoice has been reported.
If an invoice cannot be reported when the connection completes, its reporting.reason is release_refused and it is no longer held: report it yourself with POST /i/v1/invoices/{id}/submit.
Watching the lifecycle
Poll GET /i/v1/invoices/{id}/status, or subscribe to the submission events through webhooks: invoice.submitted (queued), invoice.signed (registered), invoice.transmitted, invoice.accepted (delivered), and invoice.rejected, invoice.parked and invoice.retry_scheduled (resumed). handed_off and withdrawn publish no event of their own. The authority’s own status can be asked for directly with POST /i/v1/invoices/{id}/query-status, which uses credits; the automatic checks behind the ladder do not.