During testing within the developer portal, I encountered the following error response when processing a Compliance Invoice.
Error: “The invoice hash API body does not match the (calculated) Hash of the XML”
I’m using php and I manually signed the invoice.
Questions:
- Could you please provide the specific XML tags required to generate the invoice hash?
- Additionally, I would like to confirm if this same hash is used for QR code generation.
Dear @r.hareeshwar
Thank you for reaching out & welcome to the community.
Kindly note that developer portal it’s only for clarifying the onboarding processes and you cannot integrate successfully using developer portal, to ensure successfully integration you must do it through Simulation, Production environment, you can navigate to fatoora portal/fatoora simulation portal >> APIs documentation where you can find the right APIs to be used to ensure a successfully integration with ZATCA.
Additionally, kindly install the latest version of SDK 3.4.0 to ensure not missing any of the new business rules, and validations.
1- XML tag required for the Hash?
It should be the first digest-value Tag in the XML.
2- If the Hash is used for the QR code?
Since you are doing the signing process manually for the simplified invoices, please find the signing process manual, Kindly check and confirm if you are following the exact steps as mentioned.
SigningProcessUpdated.pdf
Thank you.