Steps for Clearance of Invoice

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

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
    • Production: 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
    • Production: 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