I received a warning in the Simulation Compliance Invoice API.
Followed steps.
Compliance CSID - Got a successful response (200).
Invoice API - Got a response code 202 when checked with the simplified invoice.
url-https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance/invoices
Response-202 {
“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”
}
],
“errorMessages”: ,
“status”: “WARNING”
},
“reportingStatus”: “REPORTED”,
“clearanceStatus”: null,
“qrSellertStatus”: null,
“qrBuyertStatus”: null
}
For the standard invoice, it’s showing 200 and cleared.
Here, for authorization, I used the binary token and secret encoded from the CSR response.
On Odoo I received successfully submitted to zatca(both simplified and standard invoices).
Production CSID - Successful response.
Used the encoded binary token and secret from the PSCID for authorization. (Reporting,Clearance)
6. Reporting API - The response was successful (200).
7. Clearance API - Response successful (200).
My concern is that when the standard invoice is used to check the Invoice API, there is no warning, but when the simplified invoice is used, it shows a warning. How can I resolve this warning?
Thanks for reaching out, Welcome to our community.
For the CERTIFICATE_ERRORS Warning, can I kindly ask you to check and confirm if you are signing your simplified invoices with the right PCSID not the CCSID for the same VAT in the XML.
This warning occurs on the Compliance Invoice API when using a simplified invoice, while using a standard invoice results in a successful response(200).
For authorization, I used the CSID token for the Compliance Invoice API.
However, when I use the PCSID, it shows an authorization error.
For the Reporting and Clearance API, the PCSID is used for authorization and it works for these APIs.
@idaoud ,
I received the warning showing code: certificate-issuer-name. I decoded the binary token from the Compliance Invoice API authorization and checked the CSR decoder. It shows the Common Name (CN) as “eInvoicing…”.
However, my simplified invoice shows the Common Name (CN) as “PEZEINVOICESCA2-CA”.
Additionally, I decoded the binary token from the PCSID and checked the CSR decoder. Here, the correct issuer name Common Name (CN) is “PEZEINVOICESCA2-CA”, which is why the Reporting and Clearance APIs are returning successful results.
I obtained the binary token from the Compliance CSID API, which was used for the Compliance Invoice check. My Odoo instance shows “Successfully submitted to ZATCA.” Based on my understanding, if this message appears in Odoo, it means all APIs should have received a successful response, correct?
To confirm the result, I checked the API, but I need help sorting this out. Please advise on how to proceed.
Signing is not required for the standard invoices, so it’s normal to not receive any warnings/errors regarding the signature validations for the standard tax invoice.
For the shared warning, please make sure to sign the invoices by the PCSID certificate for both the clearance & reporting APIs, and the compliance CSID certificate should only be used for the compliance invoice API, if you are mixing the certificates up, then it might be the reason for this warning.