> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/e-invoicing-ksa-api/learn-e-invoicing-ksa-api-basics/how-to-register-a-device-for-a-vat.md).

# How to register a device for a VAT?

### Step 1: Generate OTP from ERAD portal

To register a device for a VAT, first requirement is to generate the OTP from the ERAD portal. Before generating the OTP select the environment for which you want to register the device (Simulation /Production ).

<https://docs.cleartax.in/cleartax-docs/e-invoicing-ksa-api/learn-e-invoicing-ksa-api-basics/how-to-generate-otp-on-erad-portal>

Save the OTP for further processing.

### Step 2: Log in to your ClearTax E-Invoicing account to register your device.&#x20;

Sandbox Account Link - <https://app-sandbox.cleartax.com/middle-east/ksa/einvoicing> &#x20;

Production Account Link - <https://app.cleartax.com/middle-east/ksa/einvoicing/>&#x20;

<figure><img src="/files/Qe2FmiEWXmPlF9HprszT" alt=""><figcaption></figcaption></figure>

### Step 3: On the bottom left corner click on “Settings”.<br>

<figure><img src="/files/RVNnb9iZuhq6AAPeUjwL" alt=""><figcaption></figcaption></figure>

### Step 4: On the side bar menu click on “Switch to phase II” and enable phase 2 if it is not enabled.

<figure><img src="/files/LbdrA9oYRQSfvj2V5zEv" alt=""><figcaption></figcaption></figure>

### Step 5: On the side bar click on Devices, then select “ONLINE DEVICES” and then click on “Add new devices”.

<figure><img src="/files/op8kKrmaJCStcfDWJiAu" alt=""><figcaption></figcaption></figure>

### Step 6: Add details&#x20;

Add a Common Name/Device Name which should be unique , Industry , EGS serial number and Location. Select Invoice Type as per your requirement (Standard / Simplified / Both)&#x20;

Example for EGS Number - 1-TEST|2-CT|3-101

<figure><img src="/files/0unc3i3SfyMsCJ8iJjkp" alt=""><figcaption></figcaption></figure>

After filling all the details click on “Save and Continue”.

### Step 7: Enter the OTP saved from ERAD Portal in step 1.

OTP needs to be filled within one hour of generation. After one hour OTP will expire.

<figure><img src="/files/ViqfhXF9XTpQpHwHfD9J" alt=""><figcaption></figcaption></figure>

### Step 8: Click on “Save and Continue”.

In front of the registered devices we can see the status of devices whether it is active or it has failed.

<figure><img src="/files/nuyqYevaALOFh33H8NNV" alt=""><figcaption></figcaption></figure>


---

# 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://docs.cleartax.in/cleartax-docs/e-invoicing-ksa-api/learn-e-invoicing-ksa-api-basics/how-to-register-a-device-for-a-vat.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.
