# Onboarding for E-Invoicing

## Step 1: Click on e-Invoicing

On the homepage of Clear Finance Cloud click on 'e-Invoicing' to start onboarding for ZATCA E-Invoicing with ClearTax

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FwQ7U2uz8LK8plCMY5Iul%2FChose%20E-Invoicing.png?alt=media&#x26;token=a4a3d4f4-12db-4af9-8ed5-55b9be5e5a22" alt=""><figcaption><p>Choose e-Invoicing to start with e-Invoicing</p></figcaption></figure>

## Step 2: Welcome page

Once you have clicked on e-Invoicing further account setup will continue. You will land on the ‘Welcome’ page which begins your onboarding with ZATCA e-Invoicing and provides more details about it. Click on ‘Continue’ to proceed further.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FF2K5UlG1rKzgCAvsmv4s%2FWelcome.png?alt=media&#x26;token=08951dbc-26ce-47f8-abfa-1fc17aa3be56" alt=""><figcaption><p>Welcome screen with details on ZATCA e-Invoicing</p></figcaption></figure>

## Step 3-1: Select Phase of e-Invoicing

This is the step to choose the phase of e-Invoicing your VAT is eligible for. All the details of both phases are available with details on the page to help you in choosing the correct phase for your E-Invoicing. In phase 1 the E-Invoices are not submitted to ZATCA but a VAT return is filed once a month while for phase 2 invoices the QR code has to be generated using the guidelines specified by ZATCA and all invoices have to be submitted to ZATCA depending on the type of invoice i.e. B2B or B2C. Please choose the phase carefully. Phase 1 can be changed to phase 2 later on as well but moving from phase 2 to back to phase 1 would not be possible.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FtVL31DbfUTolDJ2U0HE0%2FSelect%20Phase.png?alt=media&#x26;token=ce8d3959-fb3a-441e-a58e-b4d9bec7b6cf" alt=""><figcaption><p>Choosing the phase appropriate to your business</p></figcaption></figure>

## Step 3-2: Option 1 > Phase 1:

The first option is to go ahead with account creation in Phase 1. Click on ‘Continue with phase 1’ to proceed to the next step. Enter all the details in the form to register your business and complete account creation in phase 1. This will create your workspace in phase 1 which can be switched to phase 2 at any time.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FGuTXfUGzrDYGKfrpZZQI%2FCreate%20Business%20Profile.png?alt=media&#x26;token=c8217cd8-f599-4a43-975e-d0fd3160696b" alt=""><figcaption><p>Adding business details to onboard for phase 1</p></figcaption></figure>

Add all the details as per your VAT registration certificate to complete onboarding.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2Fg7jEgQsQSlv39tVgy7EY%2FCreate%20Business%20Profile-2.png?alt=media&#x26;token=ba9dba1f-94f7-4dfb-8340-151e1d13408b" alt=""><figcaption><p>Adding business details with place of business details</p></figcaption></figure>

Click on ‘Finish’ to complete the creation of your business profile and to start with E-Invoice generation.

## Step 4: Option 2 > Select Phase 2:

Click on ‘Continue with phase 2’ and then click on ‘Proceed’ to start profile creation with phase 2 of E-Invoicing.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2F2bPmf2l8XXbgpoZFuz7g%2FSelect%20Phase%20-%202.png?alt=media&#x26;token=b983a3a7-184e-4f6e-92ad-6adf038165bb" alt=""><figcaption><p>Choosing the phase 2 onboarding option</p></figcaption></figure>

## Step 5: Option 2 > Create Business profile:

Enter all the details of your business to create your profile for E-Invoicing with ClearTax. Enter details of your VAT, org name, pin code, etc. which would be used with your device registration with ZATCA. After completely filling all the required fields correctly click on ‘Continue’ to proceed further.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2F9Kn0JahnU1xoEGdYlupD%2FBusiness%20Profile%20-%203.png?alt=media&#x26;token=86e21527-c9aa-477d-985f-99be8a7af8aa" alt=""><figcaption><p>Adding business details as per VAT certificate</p></figcaption></figure>

## Step 6: Add device details:

Registering devices is required to start with your E-Invoicing.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FuPcfFi457tN5FtrQ5R2d%2FDevice%20Profile.png?alt=media&#x26;token=4177a22f-5b8b-4084-b4a5-b222930c677f" alt=""><figcaption><p>Adding device information for devices to be registered with ZATCA</p></figcaption></figure>

## Step 7: Enter OTP

Fetch the OTPs from Fatoora portal of ZATCA and enter them in the device registration screen.

The link to the Fatoora portal is - <https://fatoora.zatca.gov.sa/>

Use your VAT number and OTP to login. Select simultation or production environment as applicable and generate the required number of OTPs. Enter the OTPs on ClearTax screen.

## Step 8: Registration of device with ZATCA

All information required to register devices with ZATCA are transmitted to ZATCA with the OTP.

Certificate generate request for devices is submitted with the device info filled in Step 6.

Compliance xmls are generated based on the VAT and branch information entered. These xmls are sent to ZATCA using the temporary CSID (cryptographic stamp identifier). These are validated by ZATCA. OTPs are authenticated and if all info is as per requirement then devices are registered successfully and PCSID is returned by ZATCA. PCSID is the production cryptographic stamp identifier which is used to sign or authenticate each invoice by ZATCA.

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FpyUEObh0Sbe6xVUU8K0Q%2FVerification%20with%20ZATCA.png?alt=media&#x26;token=6f97b42c-ce56-4f41-b0a3-b46c774e19f6" alt=""><figcaption><p>PCSID generation and device registration with ZATCA</p></figcaption></figure>

After registration of one device, you are ready to start with generation of e-Invoices.
