Status and operations
GET /outgoing-invoices/{invoiceId}/status returns a convenient unified status and diagnostic detail.
{"status":"ISSUING","detail":{"documentStatus":"PUBLISHED","workflowStatus":"RUNNING","transport":{"channel":"AS4","status":"ACKNOWLEDGED"},"fiscalization":{"mode":"E_INVOICE","status":"PENDING"},"correction":{"state":"NONE"}}}
Ordinary eInvoice fiscalization and eReporting share one dimension so they are not mistaken for two concurrent obligations. The authoritative non-AS4 path returns fiscalization.mode: "E_IZVJESTAVANJE" with purpose: "NON_AS4_DELIVERY"; ordinary fiscalization returns mode: "E_INVOICE".
CORRECTED and REVERSED are unified business statuses of the source document. detail.correction retains the chain diagnostics, while the effective replacement remains independently addressable.
Asynchronous operations
Issuance, correction, and reversal return an operation resource. Workers claim each operation with a database lease so two instances cannot send the same document concurrently. ACTION_REQUIRED is intentionally excluded from automatic retries.
Poll one operation through GET /public/v1/operations/{operationId}. To follow several operations without frequent polling, open the guarded SSE event stream with events:read.