Skip to main content

CTC/clearance and portals in the EU: how to build reliable integrations

In clearance or portal-driven systems, the platform response (accepted/rejected, IDs, timestamps) can be part of the legally relevant record. That changes what you store, how you retry, and how you support customers.

What “clearance” / CTC means (without the buzzwords)

In clearance-style models, an invoice is sent to a platform that returns an acknowledgement (often with a platform ID). Delivery to the buyer may depend on that acknowledgement.

This creates an extra lifecycle: draft → submitted → accepted/rejected → delivered/archived.

Interactive route

Online, the invoice exists in KSeF before the buyer sees it. Switch to offline to see the side path with QR codes.

Mode
Invoice: FA(3)
Invoice routeLookup, report or receipt

Krajowy System e-Faktur

Run by

Polish Ministry of Finance

What happens here

Checks the FA(3) file, accepts it and assigns the KSeF number. The UPO is the official receipt.

What the sender needs

Store the KSeF number and the UPO with the invoice; you need them for reconciliation and disputes.

UPO
Poland: the seller issues the invoice as FA(3) XML and sends it to KSeF, the Krajowy System e-Faktur. KSeF accepts it, assigns the KSeF number and returns the UPO receipt; the buyer downloads the invoice from KSeF, and for a Polish VAT-registered buyer it counts as received on the day the KSeF number is assigned. In offline modes the seller issues the FA(3) invoice outside KSeF and gives the buyer a copy with two QR codes, OFFLINE and CERTYFIKAT, then sends it to KSeF later: in offline24 by the next business day, in emergency mode within seven business days after the announced failure ends. Based on our Poland KSeF guide and ksef.podatki.gov.pl (offline24 mode). Status: October 2026. Not tax advice. Invoice-Converter.com creates and checks invoice files. It is not part of these networks and does not send invoices.

Engineering implications: storage, retries, idempotency

Treat the platform as a state machine. You must store: the exact XML sent, submission IDs, acknowledgements, timestamps, and any transformed “accepted” version returned by the platform.

Idempotency is important. A retry should not create duplicate invoices on the platform.

Checklist: Engineering implications: storage, retries, idempotency

  • Use stable invoice keys for deduplication
  • Persist every response payload
  • Expose status to users (submitted/accepted/rejected)

Support playbook: what you need to answer quickly

When an invoice fails in a clearance model, users need a clear explanation: what failed (data vs delivery), what to fix, and whether they can resend safely.

Build “support artifacts” into the product: downloadable XML, validator logs, and platform acknowledgement IDs.