Dear ZATCA Team,
I am using the ZATCA SDK (zatca-einvoicing-sdk-Java-238-R3.3.9) and the SigningServiceImpl service to generate the signed XML document. I am trying to validate the same generated document on the ZATCA Sandbox, but I am encountering the following errors when validating a simplified invoice:
Errors:
- Category: SIGNATURE_ERROR
Code: invoiceSignedDataDigestValue
Message: Incorrect invoice hashing. - Category: SIGNATURE_ERROR
Code: signatureValue
Message: Incorrect signature value. - Category: QR_CODE_ERROR
Code: hashedXml
Message: The hashedXml does not match with the QR code’s hashedXml, or the hashedXml is missing.
Additionally, when I change the cbc:InvoiceTypeCode value to 0100000, the signed XML generates the following warning:
Warning:
- Category: BR_KSA_WARNING
Code: BR-KSA-15
Message: The tax invoice (invoice type code (BT-30) = 388) and invoice code (KSA-2) must contain ‘01’ as the first two digits on the date of supply (KSA-5).
My question is: Why am I receiving these errors when using the SDK to generate the signed document? If I change the invoice type code to a standard invoice (0100000), it gets validated on the ZATCA site without issues.
Thank you for your assistance.