In this guide

Start with the message from the validator

A Saudi e-invoice can print correctly while the XML holds a different number. Take a test invoice and run the current ZATCA SDK following the instructions included with the download. Keep its version and exact output. If the validator reports several messages, record the rule ID, severity as actually reported, and the affected invoice reference. Work from a test copy. Keep credentials, identifiers that are unnecessary for the question, and unapproved customer data out of the assistant.

Find the rule before changing anything

Open ZATCA’s XML implementation standard and data dictionary. For instance, BR-CO-10 compares the document’s sum of invoice line net amounts with the sum of its individual line net amounts. In a fictional file, one net line is SAR 200 and the other is 150, while the recorded line-total field is 300. The expected line sum is 350. Investigate the source mapping or any line that the generating system excluded. Invoices can have separate document-level charges or allowances. Compare the fields named by the rule before adjusting the invoice total.

Ask AI for a diagnosis you can check

Read this test validation message. Using the supplied ZATCA rule excerpt, name each relevant field and the source values I should compare. Show the arithmetic. Separate confirmed mismatches from possible mapping causes. Flag any field whose source is missing.

Check the suggested fields against the official standard and your invoicing system. Keep the original file and output for the system owner. Verify that the explanation identifies a transaction-data issue, a mapping defect or a difference in validator version before asking anyone to change the system.

Regenerate and run the official check again

Have the authorized system owner fix the source data or mapping, regenerate a test file using the invoicing system, and run the same official check again. Store the before and after evidence and review any new messages. Hand editing a signed production XML can invalidate its integrity. A successful SDK check is a local verification result. In production, keep the actual ZATCA clearance or reporting response where applicable.

Sources

Sources checked ·