A CSID is the cryptographic certificate each invoicing unit needs before it can talk to ZATCA in Phase 2. ZATCA CSID onboarding is how you get that certificate: you generate a one-time password in the Fatoora portal, your software sends a signing request, it passes compliance checks, and ZATCA's certificate authority issues a production CSID. This guide explains what the two certificates do, how OTPs and renewals work, and what to do if a unit is lost, sold or added to a VAT group.
The short answer
- A CSID is a cryptographic certificate. ZATCA's Detailed Technical Guideline describes it as a public-key certificate that uniquely identifies an e-invoice generation solution (EGS) unit belonging to a taxpayer.
- It has two jobs. The unit uses it to cryptographically stamp simplified (B2C) invoices and to authenticate itself when it calls ZATCA's reporting and clearance APIs.
- You get two certificates, in order. First a compliance CSID, used only for the onboarding checks, then a production CSID issued by ZATCA's certificate authority for live invoicing.
- Onboarding starts with a one-hour OTP. You generate it in the Fatoora portal, enter it in your software (or let the device read it automatically), and the rest is mostly API work between your solution and ZATCA.
- Renew before it expires. Renewal follows the same steps as first-time onboarding, except ZATCA revokes the old CSID and issues a new one. An expired or revoked certificate cannot clear or report invoices.
What Is a CSID?
CSID stands for Cryptographic Stamp Identifier. It is the digital identity of one invoicing unit: a till, server, laptop or phone app tied to your VAT registration. ZATCA's guideline says a CSID is technically a cryptographic certificate, also called a public-key certificate or an identity certificate: an electronic document that proves ownership of a public key.
The unit keeps a matching private key, which must stay secret. When it stamps a simplified invoice, it signs with that key. When it talks to Fatoora's APIs, the production CSID is how ZATCA recognises the unit. ZATCA's Security Features Implementation Standards add that the certificate links the unit to a trusted party (ZATCA) that can confirm the taxpayer's identity, and that taxpayers must protect the signing key pair.
Without a valid production CSID, a unit cannot complete Phase 2 integration. ZATCA's business FAQ is blunt: invoices signed with invalid certificates are rejected, and the taxpayer must finish onboarding to receive a valid CSID.
Compliance CSID vs Production CSID
ZATCA CSID onboarding issues two certificates, and they are not interchangeable.
| Certificate | Who issues it | What it is for |
|---|---|---|
| Compliance CSID | The e-invoicing platform itself, not ZATCA's certificate authority | Calling the compliance APIs and running the onboarding checks. It is a self-signed certificate that lets the unit continue onboarding. |
| Production CSID | ZATCA's certificate authority | Calling the live reporting and clearance APIs. It authenticates and authorises the EGS after go-live. |
You cannot skip the first certificate. The unit sends a certificate signing request (CSR) with the OTP and receives the compliance CSID. Only after the compliance checks pass does it request the production CSID. From then on the unit talks to ZATCA directly through the APIs; you do not log in to the portal to send each invoice. A secret value is also issued with the certificate during onboarding. Store it securely and do not share it.
How ZATCA CSID Onboarding Works
The flow sits in section 3 of the Detailed Technical Guideline and in the Fatoora Portal User Manual. For the wider SME checklist, including how to count your units, see our Phase 2 requirements guide.
Who can log in to Fatoora
Open fatoora.zatca.gov.sa and sign in with your ERAD credentials: your TIN or the email registered with ZATCA, and your password. These are not the same as Developer Portal credentials. The portal is for taxpayers whose VAT status is Active or Reactive. Newly registered VAT taxpayers must wait two business days before they can onboard an EGS. If a registration later becomes Deregistered or Suspended, the taxpayer can still open the portal for 90 days to view previously onboarded units, but cannot generate an OTP. After those 90 days, access stops.
Generate a one-hour OTP
Choose "Onboard new solution unit/device" and enter how many OTP codes you need, up to 100 in one request. Each code is valid for one hour, is six numeric digits, and can be copied or downloaded as a file. There is no API for OTPs; they come from the portal only. For several units, generate the codes on a separate computer and type each one into the matching unit within the hour. For a single unit, you can open the Fatoora portal from the device itself so it reads the OTP from the HTTPS header automatically. Generate the codes only when the software is ready. If a code expires, does not match an active OTP for your VAT number, or is not exactly six digits, the CSR is rejected.
Send the CSR and receive the compliance CSID
The software then generates a public/private key pair and sends a CSR to Fatoora. The CSR includes a common name or asset number, the solution serial number, your 15-digit VAT number (starting and ending with 3), the organisation unit name, the taxpayer name, the country code, the invoice-type map, the location and the industry. All of those fields are mandatory.
The invoice-type map uses four digits mapped to "TSXY": 1000 means standard (B2B) documents only, 0100 means simplified (B2C) only, and 1100 means both. X and Y are reserved and should be 0. A production CSID obtained for the wrong map cannot be used for the missing document type.
Pass the checks and receive the production CSID
The unit submits sample documents for every invoice type it declared: a tax invoice, debit note and credit note for each type (standard, simplified, or both). Every check must pass. If any test fails or is left incomplete, the unit has to start again with a new OTP and a new CSR. Test first in ZATCA's Developer Portal sandbox or the Fatoora simulation portal, which is independent of production.
When the checks pass, the unit requests its production CSID. ZATCA's certificate authority issues it and Fatoora sends it back to the same unit. The portal list should then show the unit as active, with an onboarding date and a certificate expiry date. You can keep submitting documents only while the CSID has not expired, has not been revoked, and was obtained for the correct invoice-type map.
Where the CSID Should Live
Not every till needs its own certificate. ZATCA describes the common setups:
- A central server, on-premise or in the cloud. A CSID is required on the server for both signing and API authentication. There should be one CSID per taxpayer and also one CSID per unique sequence of generated documents.
- Smart POS devices that issue and send their own invoices. Each device that signs and sends documents needs its own CSID.
- Simple tills with a server that stamps the invoice before the customer sees it. The tills themselves do not need a CSID. The server that stamps simplified invoices and applies the QR code does, and the server that sends documents to ZATCA needs a CSID for authentication.
Standard (B2B) invoices still have to be cleared before the buyer receives a valid document, even in a till-and-server setup. Confirm your own device count with your provider.
How Long a CSID Lasts and How to Renew It
A production CSID does not last forever. The Security Features Implementation Standards describe the certificate's end date as the generation time plus up to 60 months (five years). Do not treat that as a date you have to remember: the Fatoora list shows the certificate expiry date for each unit, and that is the date that matters for you.
The same standards say the taxpayer portal should send a reminder before each certificate expires. The technical guideline also says ZATCA emails the taxpayer when an EGS unit's status changes. Status appears as active, expired or revoked, with the onboarding date, expiry date and, if relevant, the revocation date.
From your point of view, renewal looks like first-time onboarding. Click "Renewing Existing Cryptographic Stamp Identifier (CSID)", generate a new OTP (again, up to 100 codes, each valid for one hour), enter it in the unit, and the software repeats the CSR and compliance checks. Technically the request type is different: ZATCA's certificate authority revokes the existing CSID and then issues a new one. If you wait until after expiry, the unit can no longer clear or report documents with that certificate.
When to Revoke a CSID
Revocation retires a certificate so nobody can keep using it. ZATCA lists these reasons for doing it yourself: you believe the private key or the unit has been compromised; the unit is discontinued, transferred or sold; the information in the CSID is wrong; the unit is lost, stolen or damaged; a unit was onboarded without authorisation; or there is a major upgrade of the EGS unit.
In the portal, open "View list of solutions and devices", select the active units you want to retire, and click Revoke. You will be asked to confirm. Once confirmed, those CSIDs are revoked and the units are no longer active. The action cannot be undone, though you can onboard the same physical device again as a new unit if you still need it.
ZATCA can also revoke certificates automatically. If a taxpayer's VAT status changes from Active or Reactive to Deregistered or Suspended, the associated CSIDs are revoked. The same happens when a VAT group is created, when members join, when the whole group is disbanded, or when the group representative changes.
VAT Groups and CSIDs
VAT groups follow the same onboarding, renewal and revocation steps, with two differences. Only the group representative can log in to Fatoora, generate OTPs and revoke CSIDs. And the CSR must identify both the group and the member: the organisation identifier is the 15-digit group VAT number, and the organisation unit name is the 10-digit TIN of the member whose unit is being onboarded.
Each member should be onboarded as a separate device (a unique CSID) and can have more than one device. Members can view the device list only for the first 90 days after they join the group. If you used to invoice under your own VAT number and then join a group, your individual registration is suspended and every CSID tied to that number is revoked. To keep using the same EGS, the representative onboards it under the group VAT number and gives you the OTP so you can obtain a new CSID associated with the group.
If your Phase 2 wave is still ahead, work backwards from your ZATCA notice. Wave 25 must integrate by 1 February 2027.
How Raad ERP Helps
Raad ERP is a cloud ERP for trading, van sales, retail and manufacturing businesses in the GCC. For Saudi Arabia it covers ZATCA Phase 1 and 2: a QR code on every invoice and receipt, and Phase 2 invoices sent to ZATCA automatically in the background. Invoices can be raised in Arabic and English, in the office, the shop or the van.
Supermarkets and grocery stores can add Raad POS, which prints ZATCA receipts with the QR code and feeds every sale into Raad ERP. When you move over, our team imports your products, customers and opening balances and trains your staff, which is a good moment to line up the units you will onboard.
You can use a provider that is not on ZATCA's directory as long as the solution meets the requirements; see ZATCA-approved e-invoicing software. Phase 2 also sits on top of Phase 1: each unit must now hold a valid production CSID as well.
Frequently Asked Questions
What is a CSID in ZATCA e-invoicing?
What is the difference between a compliance CSID and a production CSID?
How does ZATCA CSID onboarding work?
How long is a Fatoora OTP valid?
How long does a CSID last?
What happens if my CSID expires or is revoked?
Can I get a Fatoora OTP through an API?
Who can revoke a CSID in a VAT group?
Need Help With ZATCA CSID Onboarding? WhatsApp Us
Tell us how many tills, servers and branches you invoice from, and we will walk you through what CSID onboarding looks like for your setup.
WhatsApp "ZATCA" to +971 56 102 1565 and we'll reply quickly.
Selling in the UAE too? It is a different system, with no CSID. Read UAE E-Invoicing 2027 Made Simple.
This article is general information only and is not legal, tax or professional advice. Regulations, including ZATCA, UAE Ministry of Finance and FTA requirements, change often, and this content may be incomplete, out of date or contain errors. Before you act on it, check with the official authority (ZATCA in Saudi Arabia, or the Ministry of Finance or Federal Tax Authority in the UAE) or a qualified tax adviser. Raad ERP makes no warranties about the accuracy or completeness of this content and accepts no liability for any loss arising from reliance on it. Links to third-party websites are provided for convenience and are not endorsements.
