How to integrate with ZATCA (phase 2)
Connect your company to ZATCA step by step: get the one-time password from the Fatoora portal, choose the environment, check the company details, fill in the onboarding, and press Save and integrate. Then read the integration, its expiry, the devices, and how to delete it.
Before you start
Integrating takes a few minutes when four things are ready.
- The company details
- Complete, in ZATCA's formats, in the company's Settings: the name, the tax registration number, the commercial registration number, and the address.
- A one-time password
- Sign in to ZATCA's Fatoora portal with the company's account, choose to onboard a new solution unit or device, and ask for one code. The code is valid for one hour.
- The environment
- Simulation is ZATCA's testing environment and Core is the real one. Each has its own portal and its own code, and each is integrated on its own.
- The permissions
- The owner can do it all. An employee needs Update e-invoicing and Integrate.
Step 1: Choose Phase 2 and the environment
Open ZATCA, switch on Enable e-invoicing, and press Phase 2. The Environment card appears under it.

- 1Phase 2Press it. The rest of the page appears.
- 2SimulationA testing environment. ZATCA checks the invoices, but they have no legal effect.
- 3Not integrated yetThe state of the environment before you integrate it.
- 4CoreThe real environment. Invoices are reported to ZATCA and count.
Step 2: Check the company details
The Company card shows what ZATCA will receive, exactly as it is saved in the company.

- 1The noteThe details cannot be edited here. Change them in the company's Settings.
- 2Tax registration number15 digits that start and end with 3. The commercial registration number is 10 digits.
- 3Building number4 digits, and the postal code is 5. A detail that is empty shows Missing in red, with a link that opens the company settings.
Step 3: Fill in the onboarding and integrate
Scroll to the Onboarding card. Have the one-time password ready, because its hour is running.

- 1Company branch nameThe name of this branch as ZATCA will know it, such as Riyadh branch.
- 2Business categoryWhat the business does, such as Food and beverages.
- 3One-time passwordThe code from the Fatoora portal. Digits only.
- 4DevicesEmpty for now. Each Windows or Android device is integrated from the app on that device.
- 5Save and integrateThe button takes this name once the three fields are filled. It saves the settings and connects to ZATCA: it creates the company's keys, asks ZATCA for its certificates, and passes ZATCA's test invoices. Keep the page open until it answers.
The integration
When ZATCA accepts, the Onboarding card is replaced by the Integration card, and the environment says Integrated on with the date.

- 1A noticeShown only while ZATCA has not answered invoices signed with this integration. Resend them from the Unsent invoices tab.
- 2Integrated onWhen the integration was made.
- 3Expires onThe day the certificate ZATCA issued ends. The page starts to warn 30 days before it.
- 4Certificate request IDZATCA's number for this integration. Above it are the details that were sent: the branch, the category, the name, the tax number, the email, the address, and the device name.
- 5Delete integrationRemoves the integration, to integrate again with a new one-time password.
What changes after integrating
Nothing changes for the cashier. The work happens behind the sale.
- A simplified tax invoice
- The usual sale to a person. It is signed and reported to ZATCA at the sale. If ZATCA does not answer, the sale is kept and the invoice waits in Unsent invoices.
- A tax invoice
- A sale to a company customer, chosen as a standard e-invoice in the sale window. ZATCA must clear it first, so it is printed after ZATCA accepts it.
- A return
- It goes to ZATCA as a credit note of the same kind as its sale.
- The receipt
- The receipt design gains the E-invoice type section, the line that names the document.
Devices integrate on their own
Each Windows or Android device connects to ZATCA by itself, with its own one-time password, from the ZATCA page of the app. It then signs and sends its own invoices with its own counter. The website lists the devices here, to read only.

- 1Terminal 1 · DesktopThe device by its number, and its kind: Desktop for Windows, Mobile for Android.
- 2Expires onThe end of that device's own certificate. It turns orange in its last 30 days and red after it.
- 3Last invoice counterThe counter of the last document the device signed.
- 4Unanswered by ZATCAShown only while invoices from that device still wait for ZATCA's answer.
Before an integration expires
The certificate behind an integration has an end date, and the page prepares you for it.
- From 30 days before
- The environment shows the days left before expiry, and the Integration card shows an orange notice with the same number.
- What to do
- Resend the unanswered invoices from the Unsent invoices tab, delete the integration, and integrate again with a new one-time password.
- After it expired
- Invoices cannot be sent to ZATCA until you delete it and integrate again, or disable e-invoicing.
Delete an integration
Press Delete integration. A window asks you to confirm.

- 1The environmentWhich integration will be deleted.
- 2The warningWhile the company is on phase 2 in this environment, invoices cannot be created on the website until you integrate again or disable e-invoicing.
- 3Unanswered invoicesDeleting is refused while ZATCA has not answered invoices signed with this integration. Resend them first.
- 4DeleteConfirms the deletion.
Messages you may see
Each message names what to fix.
- Some company details are missing
- Fill them in the company settings before integrating.
- The one-time password is not valid
- The code must be digits only.
- A message from ZATCA
- When ZATCA refuses the request, for example because the code's hour has passed, its answer is shown as it came. Generate a new code and try again.
- This environment is already integrated
- Delete the integration first. If the page lost its connection during a long wait, reload it before trying again, because the integration may already be there.
- Could not reach ZATCA
- ZATCA's service did not answer. Try again in a moment.
Questions about integrating with ZATCA
Where do I get the one-time password (OTP) for ZATCA?
From ZATCA's Fatoora portal. Sign in with the company's account, choose to onboard a new solution unit or device, and generate a code. It is valid for one hour.
Should I start with Simulation or Core?
Simulation lets you try phase 2 with no legal effect. When ZATCA requires phase 2 from your business, integrate Core and choose it, and real invoices are reported from then on.
Do I integrate once for all my companies?
No. Each company integrates on its own. Inside a company, the website has one integration and every Windows or Android device has its own.
What happens to accepted invoices when I delete the integration?
Nothing. Invoices ZATCA already accepted stay accepted. Only new invoices need a new integration.