When I am clearing a invoice using simulation API, the invoice gets cleared, but the response do not have invoiceHash in it.
The response is:
{
“clearanceStatus”: “CLEARED”,
“clearedInvoice”: “PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPEludm9pY2UgeG1sbnM9InVybjpvYXNpczpuYW1lczpzcGVjaWZpY2F0aW9uOnVibDpzY2hlbWE6eHNkOkludm9pY2UtMiIgeG1sbnM6Y2FjPSJ1cm46b2FzaXM6bmFtZXM6c3BlY2lmaWNhdGlvbjp1Ymw6c2NoZW1hOnhzZDpDb21tb25BZ2dyZWdhdGVDb21wb25lbnRzLTIiIHhtbG5zOmNiYz0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uQmFzaWNDb21wb25lbnRzLTIiIHhtbG5zOmV4dD0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uRXh0ZW5zaW9uQ29tcG9uZW50cy0y…”,
“validationResults”: {
“warningMessages”: ,
“errorMessages”: ,
“infoMessages”: [
{
“code”: “XSD_ZATCA_VALID”,
“type”: “INFO”,
“category”: “XSD validation”,
“message”: “Complied with UBL 2.1 standards in line with ZATCA specifications”,
“status”: “PASS”
}
],
“status”: “PASS”
}
}
@itujar_it ,
InvoiceHash should still be the same as InvoiceHash in the payload you sent to server.
Or you can try opening it from cleared Invoice Content from the response you received from the server.
Hi, You have not shared full “clearedInvoice”: as if you will decode it you will have full signed XML and hash will be same you sent as if there was any difference in hash invoice was going to be rejected and not cleared… thanks