ZATCA e-invoicing integration errors: causes and how to fix them

Phase 2 e-invoicing integration errors usually sit in one of three areas: the invoice data itself, its sequence, or the device certificate and its connection to the Fatoora platform. The most frequent: missing or badly formatted data such as the buyer’s VAT number and address on tax invoices, rounding differences between line totals and the invoice total, a broken invoice chain when each document does not carry the previous document’s hash and its counter, an expired device certificate or an expired activation code, and simplified invoices not reported within 24 hours because the connection dropped. Start with the response the platform returned, and tell an error that rejects the invoice apart from a warning that accepts it. At FortuneCode we diagnose and fix the integration, or build a system that includes it.

On this page

Understand the response before you change anything: error or warning?

Every invoice sent to Fatoora comes back with a response. Errors mean the invoice was not accepted and must be corrected and reissued through the proper procedure; warnings mean the invoice was accepted but contains something to correct in future invoices. Ignoring warnings for long turns them into a problem.

Also distinguish the two invoice types: a B2B tax invoice goes through clearance before it is given to the customer, while a simplified B2C invoice is given to the customer first and then reported to the platform within 24 hours. So an error shows immediately on the first, and may surface later on the second.

A quick check you can do yourself

Before you call your system provider, gather this information. It will cut the time to a fix and show whether the problem is in the data your team enters or in the system itself.

  • Are all invoices rejected, or one type (tax, simplified, credit note, debit note)?
  • Did it start suddenly on a specific date? Compare it with the date of a system update or the device certificate.
  • Does it happen at one branch or device only?
  • What exact error text did the platform return? Save it in full with the invoice number.
  • Are customer details on tax invoices complete: name, VAT number and national address?
  • Do your business details in the system match what is registered with the authority?

The causes, most common first

These are the categories of error that recur in Phase 2 systems. Exact messages and codes vary, so always go back to the response text and to the technical documentation the authority publishes on its developer portal.

  • Buyer or seller data missing or badly formatted, especially the VAT number and address elements on tax invoices.
  • Rounding differences: line totals and VAT do not add up to the total because rounding happens per line in one place and on the total in another.
  • The wrong VAT category or exemption reason on exempt or zero-rated lines.
  • A broken chain: each document must carry the previous document’s hash and a sequential counter for the same device, and any deleted invoice or out-of-order resend breaks it.
  • An expired device certificate, one issued for a different invoice type than the one being sent, or test and production environments mixed up.
  • The activation code (OTP) from the Fatoora portal expired before device onboarding was completed.
  • A dropped connection, so simplified invoices pile up unreported past the deadline.
  • A credit or debit note that does not reference the original invoice correctly.

What you can fix and what needs a developer

Customer, item and company data can be fixed by your team in the system: complete VAT numbers and addresses, and correct the VAT category for exempt items. An expired activation code is solved by generating a new one in the Fatoora portal and using it straight away.

Rounding differences, a broken chain, certificate renewal, resending piled-up invoices and file-format errors live in the system’s code or setup, and your system provider or developer must handle them. Do not try to delete invoices or edit their numbers by hand to repair the chain; that makes things worse.

When the answer is a new system, not a fix

If your system is old and only signs and sends invoices through an external add-on that keeps failing, or its developer is no longer available, or errors return with every change in requirements, moving to ready-made software that supports Phase 2, or to a system with integration built into its core, may cost less than endless patching.

If your business is in a wave whose deadline has not arrived yet, this is a good time to test the integration in the simulation environment, well before it becomes mandatory.

How FortuneCode handles integration errors

We read the platform responses and logs, and work out whether the error is in the data, in invoice generation or in the certificate and connection. Then we fix the cause, handle the affected invoices through the proper procedure, and add monitoring that alerts you to any rejection or backlog.

If the better route is to build or configure a system with integration as part of it, we put the scope and date in a contract, and you own the code. A system with us starts from SAR 18,800, and you get a written quote within 24 hours.

What fixing or rebuilding e-invoicing integration costs (Saudi market ranges, 2026)

Indicative Saudi market ranges in SAR, not a quote.

ScopeTypical costWhat drives the price
Cloud accounting and invoicing software including Phase 2About SAR 119–380 per monthPhase 2 is often not in the cheapest plan; extra users and branches cost more
Integrating an existing system for a small or mid-size businessSAR 9,500–18,000One main system or device, 7 to 10 working days
Integrating a company with several branches and POS terminalsSAR 22,000–45,000Up to about 10 devices and POS terminals, 2 to 3 weeks
Groups and holding companies on global systemsSAR 55,000–110,000+SAP, NetSuite or Oracle, 3 to 5 weeks

We send you a written quote in SAR within 24 hours of the discovery session.

Our commitments

You own the code

Source code, accounts and domain are in your organisation’s name from day one.

Written scope and contract

Scope, milestones and price are agreed in writing before the first line of code.

On-time delivery, guaranteed

The delivery date is written into the contract, and we keep it at every milestone.

Fast technical support

A team that responds quickly after launch and fixes any issue in production.

How we work with you

  1. 1

    Free discovery session

    30 minutes with an engineer to understand your needs and how you work.

  2. 2

    Written proposal within 24 hours

    Clear scope, milestones, timeline and a price in SAR, with no obligation.

  3. 3

    Contract and staged payments

    You pay in stages tied to deliveries, not everything upfront.

  4. 4

    Delivery with weekly reports

    Follow progress in the client portal and review every milestone before sign-off.

  5. 5

    Launch, training and support

    We launch on schedule, train your team and stay with you with fast support.

Request a quote

Tell us what you need for “ERP System” and a specialist will send a written proposal with scope, timeline and price within 24 hours.

  1. 1Your needs
  2. 2Contact details
Approximate budgetIn your currency, so we suggest the right fit
When do you want to start?(optional)
Prefer to talk directly? Message us on WhatsApp

Your details stay confidential and are used only to follow up on your request. We keep your number or email as soon as you type it so we can help you.

Frequently asked questions

What is the difference between clearance and reporting?

Clearance applies to B2B tax invoices: the invoice is sent to Fatoora and cleared before it is given to the customer. Reporting applies to simplified invoices: they are given to the customer first and sent to the platform within 24 hours.

My invoice was rejected. Do I edit it and send it again?

Do not edit the rejected invoice by hand. Fix the cause in the system, then issue the invoice through the procedure your system supports under the authority’s requirements, keeping the document sequence intact. If you are unsure of the procedure, ask your system provider before doing anything.

Why do rounding errors appear?

Because the system rounds VAT or amounts on each line one way and calculates the total another, leaving a small difference in halalas. It is fixed in the system’s calculation logic, not by editing the invoice.

My device certificate expired. What do I do?

You need to renew the certificate or re-onboard the device through the Fatoora portal and your system. Ask your system provider to do it, and ask for an alert before future certificates expire so invoicing never stops.

Do warnings in the platform response matter?

Yes. An invoice with a warning is accepted, but the warning points to data that should be corrected. Fix it in future invoices before the same rule becomes an error that rejects invoices.

Where can I find the official explanation of error messages?

In the technical documentation and developer portal of the Zakat, Tax and Customs Authority, including the validation rules and format specifications. That is the reference, not blogs or forums.

Guides and prices to help you decide

Ready to start?

Send us your idea on WhatsApp and get a written proposal with scope, timeline and price within 24 hours.

Talk to us on WhatsApp

Last updated: