When I Submitting my xml for clearance I got the below result:
“ComplianceResult”: {
“validationResults”: {
“infoMessages”: [],
“warningMessages”: [],
“errorMessages”: [
{
“type”: “ERROR”,
“code”: “invalid-invoice-hash”,
“category”: “INVOICE_HASHING_ERRORS”,
“message”: “The invoice hash API body does not match the (calculated) Hash of the XML”,
“status”: “ERROR”
},
{
“type”: “ERROR”,
“code”: “XSD_ZATCA_INVALID”,
“category”: “XSD validation”,
“message”: “Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 44; cvc-complex-type.2.4.b: The content of element ‘ds:Reference’ is not complete. One of ‘{\“XML-Signature Syntax and Processing}’ is expected.”,
“status”: “ERROR”
},
{
“type”: “ERROR”,
“code”: “GENERAL”,
“category”: “BUSINESS_RULES”,
“message”: “Unable to execute Business Rules validation ->”,
“status”: “ERROR”
},
{
“type”: “ERROR”,
“code”: “QRCODE_INVALID”,
“category”: “QRCODE_VALIDATION”,
“message”: “Failed to validate QR code”,
“status”: “ERROR”
}
],
“status”: “ERROR”
},
“reportingStatus”: “NOT_REPORTED”,
“clearanceStatus”: null,
“qrSellertStatus”: null,
“qrBuyertStatus”: null
}