ZATCA Phase 2

ZATCA Phase 2 Integration with Deterministic Execution

Implement Saudi e-invoicing workflows with controlled run progression, replay-safe execution, and bounded authority submission behavior.

What Is ZATCA Phase 2?

Phase 2 requires deterministic execution, not only transport integration.

Implementation quality depends on consistent submission logic, outcome handling, and authority-specific control boundaries.

Clearance vs reporting

ZATCA Phase 2 requires different submission behavior depending on invoice category, with strict timing and response handling rules.

API submission requirements

Payload integrity, signing, and transport sequencing must be enforced consistently to avoid intermittent and hard-to-diagnose failures.

Failure handling risk

Authority instability, duplicate deliveries, and retried submissions can create operational drift without deterministic run controls.

Technical Challenges

Common ZATCA execution risks in production systems.

Most reliability incidents occur at the boundary of retries, replay behavior, and authority instability.

Duplicate invoice risk

Uncoordinated retries and replays can produce multiple submissions for a single business event.

Replay webhook behavior

Source platforms redeliver events by design, which requires enforced idempotency rather than best-effort checks.

Authority downtime

Upstream degradation must be isolated so operational systems do not inherit runaway retry storms.

Signing and compliance controls

Certificate lifecycle handling and signing orchestration need deterministic sequencing under load.

Execution Flow

Shopify adapter path to deterministic ZATCA submission.

This page includes one applied flow: Shopify events through the Regulatrix execution core into ZATCA connectors.

Shopify Adapter - KSA Compliance Execution

Shopify Adapter - KSA Compliance ExecutionShopify events are verified, deduplicated, normalized, and executed through controlled compliance stages within the Regulatrix engine.Webhook IngestSignatureVerificationReplay DeduplicationEvent NormalizationCreate or Reuse RunSubmit to AuthorityAcceptedRetry ScheduledRejected

Execution and Reliability Notes

  • Webhook payloads are signature verified before execution.
  • Replay-safe deduplication ensures idempotent processing.
  • Submit to Authority executes within a protected risk boundary.
  • Accepted is treated as the terminal success state.
  • Transient failures schedule controlled re-entry.
  • Rejected responses terminate with an explicit failure state.
Shopify events are verified, deduplicated, normalized, and executed through controlled compliance stages within the Regulatrix engine.

How Regulatrix Solves It

Deterministic controls for compliance execution at scale.

  • - Run creation follows deterministic idempotency checks before any authority interaction occurs.
  • - Authority submissions execute within controlled retry boundaries to contain degradation blast radius.
  • - Replay-safe ingest and state progression controls prevent duplicate compliance work.
  • - Operational evidence is retained per run for traceability and post-incident analysis.

FAQ

Common ZATCA rollout questions

Does this replace existing commerce platforms?

No. Regulatrix integrates with existing commerce systems and focuses on deterministic compliance execution quality.

How does it behave during authority outages?

Circuit-breaker and retry controls contain unstable authority windows while preserving explicit run progression visibility.

How are duplicate webhook deliveries handled?

Replay-safe deduplication resolves duplicate signals before they create duplicate compliance runs.

Can technical teams audit outcomes?

Yes. Run states, retries, and outcome metadata are retained for operational and engineering review.

Request Access

Start your ZATCA rollout with controlled workflow behavior.

Choose your role, then continue to the access form.

Merchant Path

Request access for store-level rollout and technical onboarding.

Agency Path

Request access for multi-store operational rollout and workflow standardization.