> 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>
