X509Certificate used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number

we are currently working on the simulation, and we were able to clear simplified invoices for compliancy (without any warnings or errors) and then proceeded to generate a CSID to used for testing.

For the signing procedure we are using the SDK to sign:
var invoiceSigner = new EInvoiceSigner();
var xmlSigned = invoiceSigner.SignDocument(xmlDocInvoice, certificateContent, privateKeyContent);

when we report the using the CSID we got for testing we get the following warning:
“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.”.

we are using the sdk release 3.3.2

you need to replace the ccsid with the pcsid before signing the invoice for reporting

Dear royaouad,

please make sure that you are using the production CSID and not the compliance CSID for signing invoices.

In the onboarding process, 2 CSIDs (X509 certificates) will be returned.

First one: after requesting the compliance CSID API, (which is the first step to do in onboarding process), we use this certifecate to sign invoices for the compliance checks step (compliance Invoice API), so we only use this certificate to sign invoices for the testing purposes in the compliance checks phase, as invoices in compliane checks are not being sent to ZATCA.

Second one: after requesting the production CSID API, we use this certificate to sign real invoices that are being sent to ZATCA by reporting API for simplified invoices or clearance API for standard invoices, however signing standard invoices is optional & not mandatory.

so what suggested is to make sure that you are using the PCSID X5509 certificate to sign your invoices,and check again.

thank you,