Reporting api gives this error

"validationResults":{"infoMessages":[{"type":"INFO","code":"XSD_ZATCA_VALID","category":"XSD validation","message":"Complied with UBL 2.1 standards in line with ZATCA specifications","status":"PASS"}],"warningMessages":[{"type":"WARNING","code":"certificate-issuer-name","category":"CERTIFICATE_ERRORS","message":"X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.","status":"WARNING"},{"type":"WARNING","code":"invalid-signing-certificate","category":"CERTIFICATE_ERRORS","message":"X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.","status":"WARNING"}],"errorMessages":[{"type":"ERROR","code":"certificate-permissions","category":"CERTIFICATE_ERRORS","message":"User only allowed to use the vat number that exists in the authentication certificate","status":"ERROR"}],"status":"ERROR"},"reportingStatus":"NOT_REPORTED"

Dear @amaher

My steps are

  1. Created csr,
  2. Created csid with otp
  3. created Pcsid with step 2 request id
  4. Signed invoice with step 2 binary token
  5. Validated with /compliance/invoices api, returns Pass and reported
  6. When do /invoices/reporting/single using step 3 token as auth, got this error

Please help

Dear @Shameem

Thanks for reaching out, Welcome to our community.

To provide a comprehensive support as usual, are you facing the (invalid-signing-certificate) on SIM or Production?

Thanks,
Ibrahem Daoud

@idaoud Thanks for reply,

I am Currently testing with
/developer-portal

As starting of integration,

Also i have a doubt that,

  1. Did i want to complete all six types of invoice complains for using simulation and production apis,

  2. Also for signing which certificate i want to use, csid or pcsid

Dear @Shameem

Kindly find the below response:
1- The developer-portal is just to clarify the integration steps, and you can’t successfully integrate with ZATCA using it since the developer-portal has it’s own certificate, Simulation environment is a replica for the Production, our recommendation is to start with simulation environment, to ensure that all steps are followed perfectly to avoid any mistake when starting in Production.
2- Currently there is a known issue in SIM environment especially with the Reporting API and our team already start working on it, and will inform you once it resolved, Thanks for your understanding, One thing to mention, The issue is not a blocker and you can generate the PCSID in simulation, You can refer to fatoora simulation portal>> navigate to APIs documentation to see the exact APIs to successfully integrate with ZATCA, and the same documents are In fatoora portal (when start the integration in production).

Regarding to your doubts:
1- Yes, based on your facility you must complete all the compliance check as the following:
a- If the facility generating only standard invoices: you need to send 3 samples (Standard Tax, Standard Credit, Standard Debit).
b- If the facility generating only Simplified invoices: you need to send 3 samples (Simplified Tax, Simplified Credit, Simplified Debit).
c- If the facility generating both standard and Simplified invoices: you need to send 6 samples (Standard Tax, Standard Credit, Standard Debit, Simplified Tax, Simplified Credit, Simplified Debit).
If you did not send all the samples to compliance checks API you will not be able to generate the PCSID with (Missing Compliance Checks) error.

2- After you successfully integrate with ZATCA and receiving your certificate (PCSID), you sign your invoices (actual invoices) using the PCSID.

For any further support, please do not hesitate to reach out to our support team via the below mail.

SP mail: sp_support@zatca.gov.sa.

Thanks,
Ibrahem Daoud.

Thanks for your time and valuable reply

1 Like

Dear @idaoud

Is the fatoora simulation portal requires the exact tin as username , password of taxpayers.

Did i want to login or use only api like
https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance)

Dear @Shameem

If you are a solution provider, Yes you can use the mentioned API.

Additionally, please find the attached (API_sim.png)

Thanks,
Ibrahem Daoud.

1 Like

Dear @idaoud

Thanks lot

1 Like