Compliance for Saudi Arabia

The Kingdom of Saudi Arabia (KSA) mandates that all invoices must be processed through the Fatoora platform, which is governed by the Zakat, Tax and Customs Authority (ZATCA), KSA's public institution responsible for tax collection and administration.

E-invoicing requirements

All B2B, B2C, and B2G invoices must be processed through the Fatoora platform.

KSA compliance summary

Learn more about e-invoicing terms and concepts.

AspectDescriptionRequirement
B2BInvoices exchanged between businesses.Mandatory. Issue standard invoices for B2B transactions.
B2CInvoices issued by businesses to consumers.Mandatory. Issue simplified invoices for B2C transactions.
B2GInvoices issued by businesses to public administrations for public procurement.Mandatory. Issue standard invoices for B2G transactions.
Electronic signatureSignature or seal rules for authenticity and integrity of e‑invoices.Mandatory. Invoices must be signed with a Cryptographic Stamp ID (CSID) using XAdES. For simplified B2C scenarios, apply ZATCA’s signature requirements as specified in the KSA CIUS.
Legal archivingMinimum retention period for e‑invoices.Six years minimum. Longer retention may apply based on sectoral or contractual requirements.
ModelThe e-invoicing flow model used by the country.Reporting applies to B2C invoices and must be issued within 24 hours. Real-time reporting applies to B2B and B2G.
PlatformThe government-managed platform for e-invoicing.Managed by ZATCA through the Fatoora platform.
Supported formatThe e-invoicing format legally required by the country.UBL 2.1 XML per the KSA CIUS PDF/A‑3 with embedded XML is mandatory for presentation and archiving.
Automatic updatesWhether invoice status updates synchronise automatically in Monitor.Yes

Invoice format

KSA's e-invoice format is based on UBL 2.1 and follows the country-specific CIUS, known as the KSA CIUS. This means all the rules from UBL 2.1 apply, along with the additional rules defined in the KSA CIUS. They also support the optional use of PDF/A-3 with embedded XML. For more information, see ZATCA’s Detailed Guidelines for E-invoicing and XML Implementation Standard.

Invoice types

For B2B and B2G invoices, standard invoices must be issued. For B2C invoices, simplified invoices must be issued.

The Invoice Type Code element must contain one of the following codes from the UNTDID 1001 code list.

DocumentCodeDescription
Tax invoice388An invoice for goods or services from a supplier to a buyer.
Credit note381Used to correct amounts or settle a balance between a supplier and a buyer. Must reference the original invoice ID.
Debit note383A document issued by a supplier to apply additional charges or increase the total value of a previously issued e-invoice.
Prepayment invoice386An invoice claiming advance payment for goods or services.

In KSA invoices, The cbc:InvoiceTypeCode name attribute must be a 7‑character flag string in using the pattern NNPNESB, where:

  • NN (positions 1 and 2): Invoice subtype
    • 01 = Tax invoice (standard B2B or B2G invoices)
    • 02 = Simplified tax invoice (B2C invoices)
  • P (position 3): Third-party invoice transaction (0 = false, 1 = true)
  • N (position 4): Nominal invoice transaction (0 = false, 1 = true)
  • E (position 5): Exports invoice transaction (0 = false, 1 = true)
  • S (position 6): Summary invoice transaction (0 = false, 1 = true)
  • B (position 7): Self-billed invoice transaction (0 = false, 1 = true)
šŸ“–

Example

These examples show the same code value of 388 for a standard invoice, and the name attribute’s 7 characters convey the extra transaction flags ZATCA expects.

  • Standard tax invoice:
    <cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
  • Simplified tax invoice:
    <cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
  • Export tax invoice:
    <cbc:InvoiceTypeCode name="0100100">388</cbc:InvoiceTypeCode>
  • Self-billed tax invoice:
    <cbc:InvoiceTypeCode name="0100001">388</cbc:InvoiceTypeCode>

Automated e-invoicing flow

ecosio enables you to automate the transmission of compliant e-invoices for both AP and AR e-invoices in KSA.

Accounts receivable flow

The following diagram and steps illustrate the AR process for e-invoices in KSA.

Flow of an accounts receivable electronic document from a supplier to a buyer through Fatoora

You send the invoice data from your ERP or business software to ecosio in a structured format, such as IDoc.
2. ecosio maps the invoice into the UBL 2.1 format expected by ZATCA, signs it using your CSID, and sends it to your Fatoora portal for clearance (B2B and B2G) or reporting (B2C).
3. ZATCA validates the invoice, applies the cryptographic stamp and QR code where applicable, and returns a response with the clearance status, UUID, and timestamp.
4. ZATCA returns the cleared invoice to ecosio with a ZATCA cryptographic stamp and the ZATCA-generated QR code.
5. ecosio converts the cleared invoice into the buyer’s ERP or business software’s format, and makes it available for them to obtain. If a PDF is generated, the QR code is rendered from the cleared XML.

Accounts payable flow

The following diagram and steps illustrate the AP process for e-invoices in KSA.

Flow of an accounts payable electronic document from a supplier to a buyer through Fatoora.
  1. The supplier sends the invoice to their Fatoora portal.
  2. ZATCA processes and clears the invoice (B2B and B2G) and applies the cryptographic stamp, or validates the reported invoice (B2C), and makes it available for the supplier to obtain.
  3. The supplier sends the validated invoice to the buyer.

Legal resources

Here is a list of official documents that define the legal and technical framework for e-invoicing in KSA:


Did this page help you?