# Steps for Clearance of Invoice

**URL:** <https://zatca1.discourse.group/t/steps-for-clearance-of-invoice/5648>\
**Category:** Clearance and Reporting\
**Created:** [February 5, 2025, 12:12pm UTC](https://zatca1.discourse.group/t/steps-for-clearance-of-invoice/5648 "2025-02-05T12:12:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohrabus](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sohrabus](https://zatca1.discourse.group/u/sohrabus)\
**Post date:** [February 5, 2025, 12:12pm UTC](https://zatca1.discourse.group/t/steps-for-clearance-of-invoice/5648/1 "2025-02-05T12:12:02Z")

</div>

_Reporting Steps of Simplified Invoice followed_

I have created 1 simplifiedinvoice.xml file  
then signed simplifiedinvoice.xml and then  
created json file and  
got the invoiceHash,uuid,invoice from .json file and  
**Reported using sandbox endpoint successfully**.

You are kindly requested to please **advise me Steps for Clearance**

---

<div class="post-metadata">

**Author:** ![saalotaibi](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@saalotaibi](https://zatca1.discourse.group/u/saalotaibi)\
**Post date:** [February 5, 2025, 3:33pm UTC](https://zatca1.discourse.group/t/steps-for-clearance-of-invoice/5648/2 "2025-02-05T15:33:13Z")

</div>

Dear @sohrabus

Thank you for reaching out & welcome to the community.

Please find below the full Onboarding Steps:

1. Prepare your configuration file with the required details.
2. Generate the CSR file using the below commands:  
• Simulation environment, you must include -sim in the CSR generation command: fatoora -csr -sim -csrConfig –[Name and extension of the config file]

• For production, use: fatoora -csr -csrConfig –[Name and extension of the config file]

1. A CSR file will be generated.
2. Generate the OTP from the Fatoora portal or simulation portal.
3. Use the CSR in the body of the request and submit it to one of the following API endpoints:  
• Simulation: [https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance](https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance)  
• Production: [https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance](https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance)
4. The response will include:  
• BinarySecurityToken and Secret (to be used for authentication).  
• Request ID (needed for generating PCSID API).
5. Start the Compliance Check.
6. Ensure you submit the correct invoice types based on the configuration.

Generating the PCSID

1. Use the Request ID from the CCSID response and include it in the request body.
2. Ensure you have sent at least one standard invoice, debit note, and credit note to avoid the “Missing Compliance Steps” error.
3. Submit the request using:  
• Simulation: [https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids](https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids)  
• Production: [https://gw-fatoora.zatca.gov.sa/e-invoicing/core/production/csids](https://gw-fatoora.zatca.gov.sa/e-invoicing/core/production/csids)

If you continue to face issues, please verify that you have followed all steps correctly. Let us know if further assistance is needed.

You can reach us out via below email:  
sp\_support@zatca.gov.sa

Thanks
