> For the complete documentation index, see [llms.txt](https://masters-india-1.gitbook.io/e-invoicing-global/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/e-invoicing-global/features/zatca-onboarding/compliance-checks-invoice-validation.md).

# Compliance Checks/Invoice Validation

Using the CSID from the previous stage you will have to pass compliance checks where you will need to upload valid tax documents (invoice, credit note, and debit note) to the ZATCA portal. The portal checks the validity of the documents.&#x20;

You will need to upload documents which are either a valid UBL2.1 schema structure or pass a JSON file with a schema defined by MI. The schema of the invoice can be found [here](https://dev-ksa-bk-pagero.mastersindia-einv.com/docs). <br>

If you are uploading a UBL2.1 compliant document then please be aware that the following xpaths would be added by MI during the validation/e-invoice generation process.

For B2C Documents

* UBLExtensions
* ProfileID
* UUID
* IssueDate
* IssueTime
* PIH
* ICV
* QR
* Signature

For B2B Documents

* ProfileID
* UUID
* IssueDate
* IssueTime
* PIH
* ICV<br>

If you receive any errors during the Invoice Validation phase then the following needs to be done

* Fix the errors as you will not be able to complete the onboarding process otherwise
* You will be redirected back to the OTP page and you will need to redo the entire onboarding process&#x20;

<figure><img src="https://lh5.googleusercontent.com/LUDCPnCYnLMASx6n9t-yQR5lY1g3lxrQKhmS0lXVXIiMYUBwMMT1rW32f7vLDpuqjVXLDKRJQrJ4YPJx-JFze1xaitzTXZkATtqwdKe2vRju1rr0AvXZigS5k-5QqNLPqhYl0wbl6g0l7XZy2f8GUgI" alt=""><figcaption></figcaption></figure>

<br>
