MRA · Mra

MRA Offline Mode Requirements

What your EBS must do when the MRA endpoint is unreachable.

MRA e-invoicing requires that your EBS continues issuing invoices even when the MRA endpoint is unreachable. This is called offline mode. The MRA allows extended offline periods, but your EBS must handle them correctly: sequential counter, “Not Yet Fiscalised” placeholder, and auto-fiscalise on reconnect.

What is offline mode?

Offline mode is the ability of your MRA-approved EBS to issue invoices even when the MRA endpoint cannot be reached. The MRA endpoint is reachable over the internet, so offline mode covers: no internet at your location, MRA's endpoint down, network issues between you and the MRA, or MRA scheduled maintenance.

What your EBS must do in offline mode

  1. Continue issuing invoices. The EBS must not block sales because the MRA endpoint is down.
  2. Use a sequential counter. Each invoice gets the next counter in the company-global sequence, regardless of fiscalisation status.
  3. Show “Not Yet Fiscalised” in the QR code area. The customer invoice prints normally, with the QR code space replaced by clear text.
  4. Compute the hash chain locally. The chain is computed without contacting the MRA.
  5. Queue unfiscalised invoices. The EBS tracks which invoices are pending fiscalisation.
  6. Auto-fiscalise on reconnect. When the endpoint is reachable, the EBS sends all pending invoices in batch, receives IRNs and QR codes, and updates each invoice.

How long can you stay offline?

The MRA allows extended offline periods. There is no hard limit published in the Technical Guidelines, but a typical outage (1-24 hours) is the design assumption. The EBS must handle longer outages gracefully — days or weeks should not break the chain.

What about credit notes in offline mode?

Credit notes follow the same rules. They get a sequential counter, continue the chain, and are fiscalised in batch on reconnect. You cannot issue a credit note for an invoice that has not been fiscalised yet — wait for the original invoice to be fiscalised first.

How to test offline mode

  1. Disconnect your device from the internet (turn off Wi-Fi and mobile data).
  2. Issue a test invoice through your EBS.
  3. Verify the invoice prints with “Not Yet Fiscalised” in the QR code area.
  4. Verify the counter is sequential and the hash chain is intact.
  5. Reconnect to the internet.
  6. Wait up to 5 minutes (the typical retry interval).
  7. Verify the invoice now has an IRN and a QR code in the EBS.

Common offline-mode bugs to avoid

  • Blocking sales when the MRA endpoint is down (this is a critical compliance failure).
  • Printing a fake or pre-generated QR code (the MRA will reject it).
  • Skipping the counter (creating gaps in the sequence).
  • Not retrying on reconnect (invoices stuck in “Not Yet Fiscalised” forever).
  • Retrying too aggressively (rate-limited by the MRA).

Internal links

Read our complete MRA e-invoicing guide, MRA fiscalisation explained, and how to test your EBS offline mode. See Codeblix eInvoicing for the implementation.

Key points

  • EBS must continue issuing invoices when the MRA endpoint is unreachable
  • Sequential counter must be maintained in offline mode
  • QR code area shows 'Not Yet Fiscalised' text in offline mode
  • Hash chain is computed locally regardless of MRA status
  • On reconnect, the EBS auto-fiscalises pending invoices in batch

FAQ

Can I print a QR code in offline mode?

No. The QR code can only be generated after the MRA returns it. In offline mode, the QR code area shows 'Not Yet Fiscalised' text. The QR code is added once the invoice is fiscalised.

What happens to a credit note issued in offline mode?

Same as a standard invoice: it gets a sequential counter, is part of the chain, and is fiscalised in batch on reconnect. The IRN and QR code are added later.

How do I know my offline invoices have been fiscalised?

Your EBS shows the fiscalisation status on each invoice. The transaction report also lists the fiscalisation status, so you can spot any that are still pending.

Can I have more than one offline period?

Yes. The EBS handles repeated offline/online cycles. Each cycle triggers a batch retry of all pending invoices.

Need help staying compliant?

Start free trial