Back

Exporting E-Invoices in XML Format

You can download the e-invoice XML file from the invoice page in UAE accounts (the PINT-AE file) and Saudi accounts (the signed file sent to ZATCA). To export the data of a group of invoices as XML without e-invoicing, use the invoice list export.

UAE accounts: Download the PINT-AE file

Before you start

  • Activate the UAE Electronic Invoice app from Manage Apps.
  • Complete the seller’s PINT-AE details in UAE E-Invoice Settings.
  • The client type must be Business, and the invoice must not be a Draft, must have at least one item, and its total must be greater than zero.

Steps

  1. From Sales, click Manage Invoices and open the invoice, or open the note from Credit Notes.
  2. Click Download PINT-AE XML; the file downloads named after the invoice number followed by _PINT-AE.xml.

The button appears only on invoices and credit notes, not on refund receipts or debit notes. A credit note needs a Credit Note Reason.

Saudi accounts: Export the signed XML file

Before you start

  • Activate the e-invoice app, then link the account from Electronic Invoice Settings in the sales settings on the Fatoora platform environment (production); linking on the simulation environment does not show the buttons.
  • The user needs the Sync Electronic Invoice permission, and to download the file, the Edit & Delete All Estimates permission as well.
  • The invoice is sent to ZATCA with the Send To ZATCA button and must be accepted (status Valid), including accepted with warnings.

Steps

  1. Open the accepted invoice from Manage Invoices.
  2. Click Export XML to download the signed file, or Download PDF/A-3 to download a PDF copy with the XML file embedded.

Both buttons appear on invoices (simplified and tax), advance payment invoices, credit notes and refund receipts, and do not appear on debit notes.

Export invoice data as XML

From Manage Invoices, select the invoices and choose Export from Actions, then choose XML from File Type. This is a data file, not an approved e-invoice, and it needs no app or linking.

Why doesn’t the XML button appear?

Cause Solution
The invoice is a Draft. Issue the invoice first.
(UAE) The client type on the invoice is not Business. Change the client type to Business, then create the invoice; if the client type changes after saving, an error message appears on download.
(UAE) The PINT-AE details are incomplete. Complete the fields named in the error message in the UAE E-Invoice Settings.
(Saudi Arabia) The invoice was not sent to ZATCA, or was rejected. Click Send To ZATCA and fix the errors until it is accepted.
(Saudi Arabia) The account is linked on the simulation environment only. Enable the link on the Fatoora platform.
(Saudi Arabia) The button appears, but a message says you are not allowed to download the file. Add the Edit & Delete All Estimates permission to the user’s role.
The document is a debit note, or (in the UAE) a refund receipt. No XML file is available for this document.

FAQs

How do I enable XML invoices in Saudi Arabia?

There is no separate setting called XML invoice. The XML file is generated automatically for every invoice sent to ZATCA: activate the E-Invoice app, link the account on the Fatoora platform environment (production) from the e-invoice settings, then send the invoice with the Send To ZATCA button. Once it is accepted, the Export XML button appears on the invoice page.

Why doesn’t the Export XML button appear on my invoice?

The button appears only for a non-draft invoice that was sent to ZATCA and accepted, in an account linked on the production environment, and for a user with the Sync Electronic Invoice permission. See the Why doesn’t the XML button appear? table above.

Can I export XML for invoices that were not sent to ZATCA?

The signed file can be downloaded only after the invoice is accepted. To export invoice data as XML without e-invoicing, use the invoice list export.

What is the difference between Export XML and Download PDF/A-3?

The first downloads the signed XML file sent to ZATCA, and the second downloads a PDF copy with the XML file embedded.

Does Daftra support Phase 2 of e-invoicing?

Yes, the link with the Fatoora platform sends invoices to ZATCA and generates the signed XML file for every accepted invoice.