Classify the response before trying to fix it
Rejection: the document failed validation. ZATCA’s guidance lists response 400 as a failed or rejected action, requiring review of the detailed message, correction and resubmission.
Acceptance with warnings: this is not rejection, but it is not proof that the document has no compliance issues. The guidance says warnings need investigation and correction with the provider, and that temporarily accepted warnings may become rejections later.
Authentication or submission failure: the guidance lists response 401 as unauthorized, requiring a check of the authentication certificate and secret, and response 429 as too many requests with the invoice not received. These differ from rejection of the document’s contents.
These are examples from ZATCA’s guidance, not a measured ranking of the most frequent errors. Diagnosis may depend on the detailed API validation message rather than the response number alone.
Review fields, data and amounts
ZATCA’s guidance identifies missing mandatory fields and incorrectly populated VAT values as rejection examples. It also gives examples involving a missing issue date or invoice type code and failures against document-data rules.
We recommend tracing the field named in the message to its source: the customer record, item record, tax configuration or the software’s file-generation process. If the pattern recurs, review configuration or master data instead of treating every invoice separately without finding the cause.
Ask the accountant to review the meaning of the data and amounts, and the provider to review how the file represents them. Do not change the tax treatment just to silence a message; review the transaction and document with the responsible specialist.
Do not treat every failure the same way
For clearance rejection, ZATCA’s guidance explains that correction is followed by submitting a new document with its own hash and counter value; the rejected document’s hash and counter value must not be changed. The technical guideline also explains resubmission rules for the document sequence and previous-document hash.
Do not improvise by deleting an invoice, manually editing its file or reusing its counter. Ask the provider to apply the appropriate recovery flow for the document type and response under the guidance; connection failure is not document rejection.
Prepare a useful support report
To reduce guesswork, we recommend including:
- The software name and version, and whether the issue is in testing or production.
- The document type, validation message and submission-attempt time.
- Whether the failure affects a particular pattern or all documents.
- The latest attempt’s result and any configuration or data change before the issue appeared.
Use a secure channel when sharing files or logs containing sensitive data. Do not put passwords, secrets or private keys in a public report. Close the issue with a documented result and a review of its cause, not simply a disappearing screen alert.
Choose the next step according to the problem
If the accuracy of your data and accounts is unclear, start with an Accounting system health check for a diagnostic report; fixing problems is outside the check. If you need invoice-readiness assessment, preparation, testing and team training, request Aleem’s E-invoicing readiness (Fatoora), with the remediation scope defined before work begins and no guarantee that every document will be accepted.
Aleem Consultations
Sources
https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/E-invoicing-Detailed-Technical-Guideline.pdf https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/E-Invoicing_Detailed__Guideline.pdf