Invoice Hashing

What is the algorithm used in hashing the invoice, Because I need to implement it in my project

@Mahmoud66

  1. Open the invoice XML file.
  2. Remove UBLExtension, QR and Signature tags.
  3. Remove the XML version.
  4. Canonicalize the Invoice using the C14N11 standard
  5. Hash the new invoice body using SHA-256 (output). e.g.:a11b6fe587a50f7daffe3a7fb42dcccf32b43ee9b37d9f252d04243e54c11a3f
  6. Encode the hashed invoice using base64 (output)
    Using HEX-to Base64 Encoder
    e.g.:oRtv5YelD32v/jp/tC3MzzK0PumzfZ8lLQQkPlTBGj8=
1 Like

Dear @Mahmoud66

Thanks for reaching out, Welcome to our community.

Please find the attached (SigningProcessUpdated.pptx) for the
signing process manually, it will help you with your implementation.
SigningProcessUpdated.pdf (927.7 KB)

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

SP mail: sp_support@zatca.gov.sa

Thanks,
Ibrahem Daoud.

@bahaeddine hi brother i need help regarding these steps in php i already implement all these steps but have doubts its giving errors reply on it so we will start chat.

@farhan06 contact me

1 Like

Brother sended connection

I have Some inquirements about these steps