Skip to main content
Technical Preflight · Not a Tax Authority

Pinpoint ZATCA & JoFotara invoice failures before clearance rejects them.

Turn opaque rule codes into exact XML XPaths, Decimal VAT verification, bilingual engineering explanations, and copyable XML patches—locally, in CI/CD, or via Apify Actors.

Documented Rules
84
4 under review
Standards
KSA · JO
VAT Arithmetic
Decimal
Invoice Intelligence · UBL 2.1
BR-KSA-40 · VATBR-KSA-65 · PlotIDBR-KSA-50 · Line VATBR-CO-15 · Payable
BR-KSA-65 · under review · PlotIdentification='88'
Architectural SVG

Failure Anatomy · BR-KSA-65 · Under Review

From cryptic rule code to a corrected XML patch in seconds

ERPs routinely map a 2-digit suite number into Buyer cbc:PlotIdentification. GIC flags it as BR-KSA-65 (4 digits when present). This rule ID's official status is under review: it is absent from the clean ZATCA v1.2 rule list, and SDK verification is pending.

BR-KSA-65 · FLAGGED · UNDER REVIEWcbc:PlotIdentification = "88"
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PostalAddress>
      <cbc:BuildingNumber>4109</cbc:BuildingNumber>
      <cbc:PlotIdentification>88</cbc:PlotIdentification> <!-- FLAGGED: BR-KSA-65 (under review) -->
      <cbc:PostalZone>23326</cbc:PostalZone>
    </cac:PostalAddress>
  </cac:Party>
</cac:AccountingCustomerParty>
BR-KSA-65 · RESOLVEDRead BR-KSA-65 reference →
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PostalAddress>
      <cbc:BuildingNumber>4109</cbc:BuildingNumber>
      <cbc:PlotIdentification>8841</cbc:PlotIdentification> <!-- 4 DIGITS · PASS -->
      <cbc:PostalZone>23326</cbc:PostalZone>
    </cac:PostalAddress>
  </cac:Party>
</cac:AccountingCustomerParty>

Deterministic Workflow

Four deterministic stages from untrusted payload to actionable diff

  1. 01

    XXE & Resource Guard

    Rejects DOCTYPE/ENTITY declarations, oversized payloads (>1 MiB), and deep XML bombs before parsing.

  2. 02

    Rule Evaluation

    Runs traceable BR-KSA, EN 16931, QR TLV, and ISTD JoFotara checks using strict Decimal arithmetic.

  3. 03

    Explicit Finding Separation

    Separates parse errors, schema errors, business rule failures, warnings, and authority-only checks.

  4. 04

    Structured Exports & Automation

    Export JSON, CSV, or Markdown reports—or integrate directly into pytest, FastAPI, n8n, and Apify Actors.

API, Python & Apify Ready

packages/gic_core · Python 3.12python
from gic_core.validation import validate_zatca_xml

result = validate_zatca_xml(invoice_xml)
for finding in result.findings:
    print(f"[{finding.rule_id}] {finding.xpath} -> {finding.suggestion.en}")

FastAPI Local API

127.0.0.1:8000 · OpenAPI v1

3 Apify Actors

Batch-safe · PPE-ready (Off)

CI/CD Pipelines

GitHub Actions & pytest

Honest Standards Coverage

Explicit about what is verified—and what remains authority-only

Every rule in our registry carries an official specification link and exact implementation status—never inflating coverage or fabricating cryptographic CA clearance.

Saudi ZATCA XML

54

implemented & tested rules

+1 partial · 2 authority-only

BR-KSA & EN 16931; XAdES CA separated

ZATCA QR TLV

10

implemented & tested rules

1 authority-only

Tags 1–9 + XML cross-consistency

Jordan JoFotara

16

implemented & tested rules

011–023 validator + offline XML builder

ERP & POS Integrators

Catch 4-digit address numbers, 5-digit postal zones, and Decimal VAT drift before submitting to ZATCA/ISTD.

QA & CI/CD Pipelines

Gate ERP release pipelines with deterministic XML regression suites in GitHub Actions.

Compliance Consultants

Audit customer XMLs and QR strings locally with zero data retention and bilingual reports.

Transparent Pricing Model

$0 Local Mode · Pay-Per-Event Cloud Pricing Ready (Currently Disabled)

Inspect Pricing Details
invoice-validated

$0.005

Per ZATCA or JoFotara XML invoice

qr-checked

$0.002

Per ZATCA QR TLV payload check

invoice-built

$0.004

Per JoFotara UBL XML generated

Note: Proposed engineering default rates only. Live Apify monetization remains disabled (PAYMENTS_ENABLED=false) until authorized.

FAQ

Frequently Asked Questions

Clear answers on regulatory scope, zero-retention privacy, and local vs. cloud execution.

No. GulfInvoice Check is an engineering preflight validation tool. It catches UBL 2.1 structure, Decimal VAT arithmetic, QR TLV framing, and implemented BR-KSA / JoFotara rule issues before you hit authority sandboxes. Formal clearance and Sub-CA cryptographic verification remain authority-only.
No. On this website the quick check runs in your browser and the invoice is not uploaded; local history keeps only status, error count and invoice ID (never raw XML). If you run an Apify Actor, input and results are stored in your own Apify account under its retention policy. GulfInvoice Check never submits documents to live ZATCA Fatoora or Jordan ISTD JoFotara endpoints.
Local execution ($0 fixed cost) works out of the box with no paid API keys. Future cloud Pay-Per-Event monetization for Apify Actors is architected behind disabled-by-default flags (PAYMENTS_ENABLED=false).
GIC flags a Buyer Address Additional Number (KSA-19 / cbc:PlotIdentification) that is not exactly 4 digits, e.g. a 2-digit suite or 'N/A'. The rule ID BR-KSA-65 is absent from the clean ZATCA XML Implementation Standard v1.2 rule list and appears struck through in the official v1.2 tracked-changes Data Dictionary, so GIC marks the finding Under Review and does not present it as a verified official rejection until the ZATCA SDK is checked.

Validate your first synthetic invoice right now

No account required, zero payment cards, immediate bilingual diagnostics.

Open Workspace