> For the complete documentation index, see [llms.txt](https://masters-india-1.gitbook.io/offline-utility-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://masters-india-1.gitbook.io/offline-utility-documentation/installation/zatca-onboarding.md).

# ZATCA Onboarding

You will then have to complete the onboarding process which involves

* OTP generation from fatoora portal
* CSR Generation
* Compliance CSID Generation
* Invoice Validation
* Production CSID Validation

All the required certificates will be stored within the utility itself and will not be copied anywhere as per ZATCA mandate.

**OTP Screen**

<figure><img src="https://lh6.googleusercontent.com/n6z2tsiVRNGngs4GoEwRiRinSMliw1ygjkbjNrWmF4-ZmPU_cUtfW1Yn52R6xhwS7fTxBVCa6qZrHpALOUh80Bmp7bbn-zh_HdbLoBhZqJAOQEJKvmJXz_U8o8H_kPEgggLDKhaJuqS8VfnwzE25pPY" alt=""><figcaption></figcaption></figure>

**CSR Generation Screen**

<figure><img src="https://lh3.googleusercontent.com/SPeffWfeaIT2k3o6EGcvIVdlA7-m6VdZ0Tucqu162o_Wd-4sESJqy-2u72kSTW5w_dIdA2ZepOvKQjv5UK-X8N2uayrdu8YigPIPGcdr4TrlTSPZdai9ax7pclHZH5BBvMeagHRzNXzCHUANjzwvfoM" alt=""><figcaption></figcaption></figure>

<br>

**Invoice Validation Screen**

You will need to upload the associated documents which can be in UBL2.1 XML compliant or JSON schema document. If you face any failure during the validation process then the entire onboarding process fails and you will be directed to the OTP screen.

<figure><img src="https://lh5.googleusercontent.com/5LW6OzbswUSGMgUB0rqdl3v1_DPOFTi98MobSTHdMj0-7tvTEGIS05g-ck_nKU0OyjP7Z-e95YZh4m4W4FYmDQYLw8B9hLLncTUG5s_sX-3vMeiWIbwF7g3WgbNxDJihgLKSFgxj6YE6XPV0CY6O1F0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/kYkubnxwXceeCvjFM3yJEgYbP2Lr7votTCXEo4PaJmrLtcR6SU_S1jhBSJfuy80dSHuZIivsEAjR-2Oq0d59Qm0ceKeLpx-WO9yK42RBR0PRKcHqQSlGKdeCh5sT4HaqRSiYazM1nz3ErMA3mOMKOHU" alt=""><figcaption></figcaption></figure>

**Upon successful onboarding, you will be seeing this screen.**&#x20;

<figure><img src="https://lh3.googleusercontent.com/_Z5aaIoCIR0KGNZ89AACv4xb2WwNJaj6yWukoBnKCmOiI3GylWrtla-IUrGGqpXuFbopU1mwBnciOaHZv9m92tQqwfl3ybHbcxm5NP_Wd_RTiG3sXhUDtSlDbEzXrWx5qw7S3pv6GB5evpzMs-JtxM4" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://masters-india-1.gitbook.io/offline-utility-documentation/installation/zatca-onboarding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
