ENGINEERING TOPIC HUB

E-commerce Engineering

This hub focuses on the engineering contracts behind commerce integrations: authenticated events, idempotent processing, inventory ownership, payment reconciliation and recoverable order workflows.

QUESTIONS THIS HUB ANSWERS
01

How should webhook delivery and replay be handled?

02

Which system owns inventory, price and order state?

03

How do checkout, payments and refunds reconcile safely?

DECISION FRAMEWORK

Define the boundary, then choose the technology.

Persist before processing

Verify the signature, store the event durably, acknowledge quickly and process asynchronously.

Name the source of truth

Choose explicit ownership for every field and reconcile drift instead of guessing.

Design for uncertain outcomes

Payment and shipping calls may succeed even when their response is lost.

CURATED GUIDES

Continue with practical guides.

All articles →
Saudi commerce · Webhook operations

Salla webhook rotation: change endpoints without losing events

A production cutover plan for moving Salla webhooks between endpoints while preserving events, security, rollback and per-store subscription state.

Read the guide
E-commerce engineering · Shopify

Shopify bundles: design the cart transform contract

A production guide to fixed and customized Shopify bundles: composition, pricing, inventory, Cart Transform operations, failure policy and reconciliation.

Read the guide
E-commerce engineering · Shopify

Reliable Shopify webhooks: durable inbox and reconciliation

A production design for authenticating, deduplicating, ordering and recovering Shopify webhook-driven order and inventory synchronization.

Read the guide
E-commerce engineering · Salla

Reliable Salla delivery promises: cutoffs, calendars and zones

A production design for turning Salla delivery-promise settings into versioned, testable checkout commitments without confusing them with carrier tracking.

Read the guide
Saudi commerce · OAuth security

Salla OAuth refresh tokens: rotate once, recover safely

A production design for Salla OAuth token refresh that prevents concurrent reuse, stores each rotation atomically and handles uncertain network outcomes safely.

Read the guide
Saudi technology · Post-quantum security

Build a cryptographic inventory for Saudi post-quantum readiness

SAMA requires Saudi financial institutions to identify and classify cryptographic assets by Q4 2026. This is an engineering plan for doing it well.

Read the guide
Saudi commerce · Product analytics

Zid storefront analytics: build an event contract you can trust

Turn Zid storefront events into dependable product analytics with one versioned schema, idempotent delivery, identity stitching and order reconciliation.

Read the guide
Saudi commerce · Catalog architecture

Salla product variants: migrate the schema, not rows

Changing a Salla option can reshape every sellable variant. Use stable identity, shadow validation and reconciliation before writing prices or stock.

Read the guide
Saudi commerce · AI integration

Zid AI Agent Skill and MCP: a verified integration workflow

Zid provides an AI Agent Skill and an MCP server for its developer documentation. Here is how to turn them into a safe, testable integration workflow.

Read the guide
Saudi commerce · Checkout policy

Treat Salla customer groups as checkout policy

A practical architecture for using Salla customer groups to control payment, shipping and offer eligibility without turning segmentation into fragile manual configuration.

Read the guide
Saudi commerce · API capacity

Salla API limits: fair queues before more workers

Design per-store API budgets and fair queues for Salla integrations, with controlled retries, uncertain-write recovery and visible synchronization progress.

Read the guide
Saudi commerce · Returns architecture

Zid reverse orders: separate return approval from refund execution

A practical architecture for Zid returns that separates approval, physical inspection, inventory decisions and refund execution while preventing duplicate financial actions.

Read the guide