when using the EInvoiceValidator class from zatca einvioce sdk to validate my invoices it always fails on the step “Validate EInvoice Signature” with an error message “[Error] CODE: signatureValue, MESSAGE: Wrong signature value.” and this only happens with Simplified invoices although I generate the digital signature value as documented in “E-invoicing Detailed
Technical Guidelines Version 2”
Dear @MostafaFlexe
Thanks for reaching out, Welcome to our community.
To provide comprehensive support as usual, can I kindly ask you to elaborate with the below:
1- Did you successfully integrated with ZATCA?
2- What is the environment?
3- What is the SDK version that you are using?
4- What are the steps that you are followed
Thanks,
Ibrahem Daoud.
It appears that you are using the developer environment and trying to sign an invoice. The seller data does not match the data you provided in the CSR.
Hi Mostafa, I’m getting the same result on B2C invoices.
Can you please share the documentation link that you are using?
Regards,
Hi Affan,
Below is the documentation link I’m using.
https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/E-invoicing-Detailed-Technical-Guideline.pdf
Yes, I successfully integrated with ZATCA on both NonProduction and Simulation Environment.
This issue occurs on both environments NonProduction and Simulation.
The SDK version is 3.4.1.0.
The Steps are as follows
1- Canonicalizing the xml using the C14 Standard without the (UBLExtension, QR, Signature )
Tags.
2- Hashing the new invoice body using SHA-256.
3- Signing the generated invoice hash with ECDSA using the private key.
and this is the digital signature I used in my invoice.
Dear @MostafaFlexe
Thanks for your elaborate, Can I kindly ask you to mention the steps you followed after generating the CSR?
Thanks,
Ibrahem Daoud,