Phase 2 format

Saudi e-invoice XML: where to get it and how to check it

An e-invoice XML is a structured data file generated by an invoicing solution for Phase 2 integration with Fatoora. Look for XML export in the issuing solution or ask the supplier for the original file. Renaming a PDF to XML does not produce a valid invoice. Check the file against ZATCA’s standard and tools, and distinguish validation from actual clearance or reporting results.

Fawtar at fawtar.app is an independent Saudi product. It is not ZATCA’s Fatoora platform, not Fatoora.app, not Oman’s Fawtara programme, and not Jordanian Fawtara products. This page is a reading aid. Last verified 2026-08-29. It is not tax advice.

What is sent?

ItemPhase 1Phase 2
Document shapeAn electronic invoice with the required fields; no single file format is mandated.XML per ZATCA’s standard; PDF/A-3 is not submitted to Fatoora.
With whom?The buyer reads and keeps it. ZATCA is not yet linked.Fatoora: clearance for standard documents, reporting for simplified.
QR codeMandatory on simplified invoices.Part of an integrated document, not a substitute for XML.

How do you get the invoice XML?

These practical steps help locate the original file; export availability and button names differ by invoicing solution. Preserve the issued file and do not manually alter it to force a validation pass.

  • If you issued it: open the invoice in your software and look for XML export or invoice attachments. If unavailable, ask support how to retrieve the original document and its submission result.
  • If you are the buyer: ask the supplier for the XML matching the invoice number and date. Receiving only a PDF does not establish whether the document was submitted to ZATCA.
  • If you received PDF/A-3: it may contain an attached XML; inspect attachments using a compatible reader. Not every invoice PDF uses this format, and converting its appearance does not create missing integration data.

XML checks before contacting your provider

Section 4 of the official XML standard separates syntax from content checks: UBL 2.1 structure, required fields, codes, calculations and Saudi rules. Opening the file successfully in a browser does not check all those rules.

  • Match the invoice number, date, supplier and total to your readable copy so you do not test the wrong document.
  • Ask the developer to run the official SDK following its version’s manual and retain errors and warnings. Official download and specification links are below.
  • Give support the error code, message, document type and tool version. For example, an XSD structure error differs from a tax-calculation rule error; fix the cause in the issuing system.
  • Do not post invoice data or signing keys in a public forum. Use the agreed secure support channel when the file is needed.

Does passing validation mean ZATCA acceptance?

No. ZATCA’s SDK page says passing verification does not mean ZATCA has approved the invoice. A sandbox test is not a production submission either. Ask the provider for that invoice’s clearance or reporting result, rather than only a file-validation screenshot. Documents submitted to Fatoora use XML; PDF/A-3 is a readable copy that can contain XML.

Practical example: the supplier sent only a PDF

Send a specific request: ‘Please provide the original XML for invoice (…) dated (…), plus its clearance or reporting result if it is a Phase 2 invoice.’ Ask the issuer rather than a generic converter to reconstruct the invoice from an image. This is a follow-up example, not a determination that any particular invoice is valid.

What Fawtar does here

Fawtar includes a Business-plan Phase 2 engine: device onboarding with a Fatoora OTP, invoice signing, simplified-invoice reporting and standard-invoice clearance. Live submission requires production gateway configuration, active production credentials and Phase 2 activation for the organization. Standard B2B clearance also requires the organization's B2B activation. Sandbox acceptance does not prove production acceptance. Verify each organization's actual acceptance through the official production gateway response; Fawtar is not described as a ZATCA-approved or listed solution provider.

Sources

Short questions

Can I convert a PDF into Phase 2 XML?

Renaming the file or extracting text does not create the integration document and its security features. Request the original XML from the issuing system; it may be embedded in PDF/A-3 if the issuer created it that way.

Is a PDF with a QR code Phase 2?

No. A QR code on a PDF alone does not prove integration. Phase 2 requires XML and clearance or reporting according to document type.

Is Fawtar listed or approved?

Fawtar includes a Business-plan Phase 2 engine: device onboarding with a Fatoora OTP, invoice signing, simplified-invoice reporting and standard-invoice clearance. Live submission requires production gateway configuration, active production credentials and Phase 2 activation for the organization. Standard B2B clearance also requires the organization's B2B activation. Sandbox acceptance does not prove production acceptance. Verify each organization's actual acceptance through the official production gateway response; Fawtar is not described as a ZATCA-approved or listed solution provider.