Technical Guides

ZATCA XML Invoice Format: Complete Technical Specifications

Feb 28, 2026 110 views
ZATCA XML Invoice Format: Complete Technical Specifications

ZATCA XML Invoice Format: Complete Technical Specifications

The Kingdom of Saudi Arabia's Zakat, Tax and Customs Authority (ZATCA) is revolutionizing tax compliance with its e-invoicing mandate, known as Fatoora. Understanding the ZATCA XML invoice format is crucial for businesses operating in Saudi Arabia. This comprehensive guide provides the technical specifications needed to ensure compliance, focusing on the key elements, structure, and evolving deadlines, including those for the upcoming 2026 wave.

What is the ZATCA E-Invoicing Initiative (Fatoora)?

Fatoora aims to digitize invoice generation and management to improve tax compliance, reduce the shadow economy, and enhance business efficiency. It involves generating, sending, and storing invoices electronically, adhering to specific formats and security requirements defined by ZATCA.

Why is Understanding the ZATCA XML Invoice Format Important?

Failure to comply with the ZATCA XML invoice format can lead to penalties, including fines and disruptions to your business operations. Understanding the technical specifications ensures accurate data transmission, seamless integration with ZATCA's systems, and avoidance of compliance issues. With the 2026 wave approaching, now is the time to ensure your systems are up to standard.

ZATCA XML Invoice Format Deep Dive

The ZATCA XML invoice format adheres to the GS1 eInvoice standard based on UN/CEFACT XML syntax. This standard governs the structure, data elements, and required fields for both simplified and standard invoices.

Key Components of the ZATCA XML Invoice Format

The ZATCA XML invoice includes several essential components:

  • Invoice Header: Contains general information about the invoice, such as invoice number, date, and type.
  • Seller Information: Details about the supplier, including their VAT registration number, address, and name.
  • Buyer Information: Details about the customer, including their VAT registration number (if applicable), address, and name.
  • Invoice Line Items: A detailed breakdown of each product or service sold, including quantity, unit price, description, and discounts.
  • Tax Information: Calculation of VAT and other applicable taxes.
  • Payment Terms: Details about payment methods and due dates.
  • Digital Signature: A cryptographic signature to ensure the authenticity and integrity of the invoice. This is particularly important for the second phase of Fatoora.
  • QR Code: A machine-readable code containing essential invoice information for verification purposes.

Detailed Breakdown of XML Tags and Attributes

The XML invoice utilizes specific tags and attributes to represent the data elements. Here's a glimpse into some of the important ones:

  • <Invoice>: The root element containing all invoice data.
  • <ID>: The invoice number.
  • <IssueDate>: The date the invoice was issued.
  • <AccountingSupplierParty>: Contains information about the seller. Within this element, tags like <PartyLegalEntity> hold the seller's name (<RegistrationName>) and VAT number (<CompanyID>).
  • <AccountingCustomerParty>: Contains information about the buyer. Similar to the seller, this includes name, address, and VAT number (if applicable).
  • <InvoiceLine>: Represents a single line item on the invoice.
  • <InvoicedQuantity>: The quantity of the item.
  • <LineExtensionAmount>: The total amount for the line item before tax.
  • <TaxTotal>: Contains the total tax amount for the invoice.
  • <TaxSubtotal>: Provides a breakdown of tax amounts based on different tax rates.

For a complete list of XML tags and attributes, refer to the official ZATCA documentation.

Understanding Simplified vs. Standard ZATCA XML Invoices

ZATCA distinguishes between two main types of e-invoices:

  • Simplified Invoices (B2C): Used for transactions between businesses and consumers. They require less detailed information compared to standard invoices.
  • Standard Invoices (B2B): Used for transactions between businesses. They require more comprehensive information, including the buyer's VAT registration number.

The XML structure differs slightly between these two types. Make sure you generate the correct type of invoice based on the transaction.

ZATCA E-Invoicing Phases and Deadlines

ZATCA's e-invoicing implementation is being rolled out in phases.

Wave 1 (Already Implemented)

This phase, which has already been implemented, focused on invoice generation and storage in compliance with ZATCA regulations.

Wave 2 (Integration Phase – Ongoing)

This phase involves connecting businesses' e-invoicing systems with ZATCA's platform. This requires implementing robust security measures and transmitting invoices in real-time or near real-time. Specific deadlines for Wave 2 vary based on business size and industry.

2026 Wave: What to Expect

ZATCA is expected to announce further waves of e-invoicing integration, with deadlines stretching into 2026. While specific details are still emerging, businesses should anticipate even stricter data validation rules, enhanced security protocols, and potentially expanded reporting requirements. Preparing early for the 2026 wave is crucial for maintaining compliance and avoiding disruptions.

Tools and Solutions for ZATCA XML Invoice Compliance

Complying with the ZATCA XML invoice format can be complex, especially for businesses without dedicated IT resources. Utilizing specialized e-invoicing solutions can streamline the process and ensure compliance.

Choosing the Right E-Invoicing Solution

When selecting an e-invoicing solution, consider the following factors:

  • ZATCA Compliance: Ensure the solution is fully compliant with the latest ZATCA regulations and supports the required XML format.
  • Integration Capabilities: The solution should seamlessly integrate with your existing accounting and ERP systems.
  • Security Features: Robust security measures are essential to protect sensitive data.
  • Scalability: The solution should be able to scale as your business grows.
  • Ease of Use: The solution should be user-friendly and easy to implement.

FatooraPlus: Your Partner for ZATCA Compliance

FatooraPlus is a recommended solution for businesses seeking to comply with ZATCA's e-invoicing regulations. It offers a comprehensive suite of features, including:

  • Automatic generation of ZATCA-compliant XML invoices.
  • Seamless integration with popular accounting software.
  • Secure data storage and transmission.
  • Real-time validation of invoice data.
  • User-friendly interface.

Conclusion

Navigating the ZATCA XML invoice format requires a thorough understanding of the technical specifications and evolving regulations. By staying informed and leveraging the right tools and solutions, businesses can ensure compliance, streamline their operations, and benefit from the advantages of e-invoicing. With the deadlines for the 2026 wave approaching, now is the time to prioritize ZATCA compliance.

Don't wait! Start your journey towards seamless ZATCA compliance today.

Get a free trial of FatooraPlus now at fatooraplus.com!

Share this article