Ensuring Accurate Timestamp Alignment for ZATCA E-Invoicing Compliance
Message
Error in production: {"requestID":-2,"tokenType":null,"dispositionMessage":"NOT_COMPLIANT","binarySecurityToken":null,"errors":["unable to submit and sign the csr in zatca side, caused : Denied by Policy Module 0x80094800, The request was for a certificate template that is not supported by the Active Directory Certificate Services policy: PREZATCA-Code-Signing.\r\n"]}
Solution:
- Ensure that the system time is accurate and synchronized.
- According to the regulations, B2C invoices must be submitted within 24 hours, while B2B invoices must be submitted in real-time.
- Both the QR code and XML should reflect the invoice issue datetime in the same timezone.
- It is recommended to use UTC timezone for reporting, as it is universal and easily convertible to any local timezone. Using local timezones without a clear indication (such as 'Z' for UTC) may lead to inconsistencies unless processed within the same timezone.
- To comply with UTC standards, append the suffix 'Z' to both the QR code's issue_datetime and the IssueTime field in the XML to ensure alignment.