Certificate Permissions Issue
.png)
Message
Error: The request you are sending to Zatca is in incorrect format. Status code: 400
{"validationResults":{"infoMessages":
[{"type":"INFO", "code":"XSD_ZATCA_VALID", "category":"XSD
validation", "message":"Complied with UBL 2.1 standards in line with ZATCA
specifications","status": "PASS"'}],"warningMessages":[],"errorMessages":
[{"type":"ERROR", "code":"certificate-
permissions", "category":"CERTIFICATE_ERRORS", "message":"User only allowed
to use the vat number that exists in the authentication
certificate","status":"ERROR"}],"status":"ERROR"},"clearanceStatus":"NOT_CLEA
RED", "clearedInvoice":null}
Error in clearance API: Error: The request you are sending to Zatca is in incorrect format. Status code: 400
{"validationResults":{"infoMessages":
[{"type":"INFO", "code":"XSD_ZATCA_VALID", "category":"XSD
validation", "message":"Complied with UBL 2.1 standards in line with ZATCA
specifications", "status":"PASS"}],"warningMessages":[],"errorMessages":
[{"type":"ERROR","code":"certificate-
permissions", "category":"CERTIFICATE_ERRORS","message":"User only allowed
to use the vat number that exists in the authentication
certificate", "status":"ERROR"}],"status":"ERROR"},"clearanceStatus":"NOT_CLEA
RED", "clearedInvoice": null}
Solution:
The clearance API request failed because the system detected a mismatch between the certificate used to sign the invoice and the VAT number provided. Each certificate is specifically linked to a VAT-registered entity, and only that entity is authorized to authenticate and submit invoices using the certificate.
To resolve this issue, ensure that the VAT number in the configuration file precisely matches the VAT number associated with the authentication certificate. Any discrepancy will result in validation errors and prevent successful submission of invoice