Guide
Markdown exportCTC/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
How a KSeF invoice travels, online and offline
Online, the invoice exists in KSeF before the buyer sees it. Switch to offline to see the side path with QR codes.
KSeF
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.
UPOEngineering 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.