eTIMS

Integrating with eTIMS: What a Developer Needs to Know

K By Kev 5 November 2026 Updated 7 November 2026 12 min read
Share
eTIMS guide

Integrating software with eTIMS is less an API problem than a certification and state-handling problem. The calls themselves are not the hard part; being a certified integrator, mapping every item to a tax treatment, and handling the half-dozen states that are not a clean success are. This sets out what the work actually consists of, in the order it tends to bite.

Key takeaways
  • Certification gates the work: without a control unit signature, the document is a receipt.
  • OSCU makes the sale path depend on the network; VSCU moves the complexity into the queue.
  • Item classification is schema, not data entry, and deferring it corrupts the return.
  • Design idempotency and credit notes in from the start, not after the first duplicate.
  • The shop needs to see transmitted against pending without reading logs.
On this page▾
  1. Certification comes before code
  2. The work, in the order it bites
  3. Where integrations go wrong
  4. A worked example: the catalogue that was all one rate
  5. How Veira handles it
  6. Frequently asked questions

Certification comes before code

Invoices are signed by a KRA control unit, and access to one is not something software grants itself. A business can only issue compliant tax invoices through certified software, which means the integration question starts with whether you are, or are working through, a certified integrator.

This is the part teams underestimate. It is entirely possible to build something that produces a beautiful invoice document with a PIN and a QR code on it and is not a tax invoice, because nothing signed it. The QR code has to resolve to KRA's record, which only happens if the invoice genuinely went through a control unit.

After that comes the route: OSCU signs each invoice through an online call at the point of sale; VSCU signs locally and transmits in batches. The choice shapes your architecture more than any other decision, because it decides what your system does when the network is gone.

Want to see it running in your own business first?

Sign Up

The work, in the order it bites

Five areas, roughly in the order teams hit them.

  1. 1

    Taxpayer and device registration

    The business's details have to match what KRA holds, and a mismatch surfaces as a rejected invoice rather than as a registration error. Settle this against iTax before debugging anything in code: KRA PIN requirements.

  2. 2

    Item classification

    Every product needs a tax treatment, and this is the step most often deferred and most often regretted. A catalogue defaulted to a single rate produces invoices that cannot be reconciled to the return behind them, and fixing it later means correcting invoices rather than correcting data.

  3. 3

    The invoice payload

    Supplier identity, buyer identity where it applies, line detail with per-line tax treatment, totals, and the control unit fields that come back. What a compliant invoice must show is the functional spec for what your payload has to be able to express.

  4. 4

    Offline behaviour

    Queue, sign, transmit on reconnect, and keep queued distinguishable from failed. This is most of the engineering: the happy path is short and the recovery paths are not. See what real time actually means.

  5. 5

    Corrections

    An issued invoice cannot be edited, because KRA holds it. Credit notes referencing the original are the mechanism, and designing for them late means retrofitting a relationship between documents that your schema did not anticipate.

Where integrations go wrong

Building the document rather than the invoice

A PDF with a PIN and a QR code is a receipt. Only a control unit signature makes it a tax invoice, and no amount of layout work substitutes.

Treating offline as an edge case

In Kenya it is a weekly condition, not an edge case. A design where the offline path was added afterwards usually leaks duplicates or loses invoices under exactly the conditions it was added for.

No idempotency

Retries happen, callbacks repeat, and operators press buttons twice. Without an idempotency key, the result is duplicate invoice numbers at KRA, which is among the more unpleasant things to unwind.

Deferring item classification

It feels like data entry and it is actually schema. Every invoice line carries a tax treatment, so a catalogue without them cannot produce a correct invoice no matter how good the integration is.

No visibility for the business

The people running the shop need to see transmitted against pending without reading logs. An integration that is only observable by its developers gets no early warning when a queue stalls: eTIMS errors.

A worked example: the catalogue that was all one rate

Worked example

A team integrating a retail system got invoices transmitting within a fortnight. Payloads validated, control unit numbers came back, QR codes resolved. By their measure it was done.

The catalogue had been loaded with every item on a single tax treatment, because classifying several thousand products was scheduled for later and the integration worked without it.

The return was the problem. The figures it produced could not be reconciled to the invoices behind them, and the correction was not a data fix: invoices already at KRA had declared the wrong treatment, and each one needed a credit note and a reissue. The fortnight of integration work was undone by a step that had looked like data entry.

Business impact

Trading without eTIMS-compliant tax invoices risks KRA penalties, blocked VAT input claims for your customers, and receipts a business buyer cannot expense.

Veira signs every sale to KRA eTIMS automatically, so each receipt is compliant the moment it prints, with no separate device to reconcile.

How Veira handles it

Veira is a KRA-certified eTIMS integrator, so a business using it is not building any of the above: the invoice is signed and transmitted as part of the sale, and the control unit evidence on the receipt is there because the invoice genuinely went through a control unit.

Products carry their own tax treatment, so a mixed basket is invoiced correctly line by line, and corrections go out as credit notes against the original invoice rather than as a second version of it.

Selling continues when the connection does not, with queued and transmitted visible to the person running the shop rather than only to a developer.

Frequently asked questions

Can I integrate with eTIMS directly?
Invoices must be signed by a KRA control unit, and access to one goes through certification. In practice most businesses integrate through a certified integrator rather than becoming one, because certification is the gating step rather than the API surface.
What is the difference between OSCU and VSCU for a developer?
OSCU makes signing a synchronous network call at the point of sale, so your sale path depends on connectivity. VSCU signs locally and transmits in batches, which moves the complexity into queue management and reconciliation but lets the sale complete offline.
Why does item classification matter so much?
Because every invoice line declares a tax treatment, and that is what the return is reconciled against. A catalogue on a single default rate produces invoices that are individually accepted and collectively impossible to reconcile.
How should corrections be modelled?
As credit notes referencing the original invoice, never as edits. KRA holds the original, so your schema needs a relationship between documents from the start; adding it later means reworking everything that assumed an invoice was a single mutable row.
What states do I have to handle?
Signed-and-transmitted, signed-and-queued, rejected with a reason, timed out with an unknown outcome, and duplicate submission. The happy path is short; nearly all the engineering is in the other four.
Does a QR code on a receipt prove compliance?
Only if it resolves to KRA's own record of that invoice. A QR code is trivial to draw; one that verifies against KRA exists because a control unit signed the invoice, which is the thing being proved.

The eTIMS integration problem is certification, classification and state handling rather than endpoints. Settle which control unit route you are on, classify the catalogue before you go live, and design the queue and the credit note in from the start.

Need help, or want to talk it through first? Chat with us on WhatsApp

For more eTIMS guides and compliance resources, visit our free resource site.

Keep reading

See all eTIMS guides

Veira for your business

Browse Veira by business type · Who we serve