Public API for Pro stores

Connect your store to your systems with the Sifr Wahid API

Stores on the Pro plan create API keys to connect Odoo, an ERP, an accounting system or their own code: products and stock from your system to the store, and orders from the store to your system.

One key per system

One API for your whole store

Products, categories, brands, stock, orders, customers, coupons, shipments, reviews and webhooks, with the scopes you choose for each key and an optional list of the IP addresses allowed to use it.

The full contract is one OpenAPI 3.1 file, and every operation in it passed our live test.

Read the API guide →
61API operations
360calls a minute per key
41webhook events
JSONREST API

How the API works

From a new key to a running sync in four steps.

  1. Step 1

    Create a key with the scopes you need

    The store owner creates it in the dashboard at /settings/api-keys, picks none, read or read and write for each resource, and can limit it to your servers' IP addresses. A code to the owner's mobile confirms it, and the key is shown once.

    • zo_live_…shown once
    • products.read_writeread and write
    • inventory.read_writeread and write
    • orders.read_writeread and write
    • webhooks.read_writeread and write
    • store.readread
  2. Step 2

    Send your call with the key

    The key goes in the Authorization header only. Answers are JSON, amounts are integers in halalas, dates are in UTC, and each key has 360 calls a minute.

    curl -sS https://s.zo.sa/api/public/v1/store \
      -H "Authorization: Bearer $ZO_API_KEY"
    200 OK · X-RateLimit-Limit: 360
  3. Step 3

    Receive signed webhook events

    Subscribe to order.created and 40 other events, verify the version 2 signature (HMAC-SHA256 of the timestamp and the raw body) and answer 2xx within 15 seconds.

    POST https://erp.example.com/zo/hooks
    X-Zo-Event: order.created
    X-Zo-Delivery: …
    X-Zo-Timestamp: …
    X-Zo-Signature: …
  4. Step 4

    Sync products, stock and orders

    The SKU links your system to the store. Stock moves by delta with an Idempotency-Key per movement, and orders arrive by webhook, with an hourly updated_since poll to close any gap.

    POST /inventory/adjustments
    Idempotency-Key: odoo-move-48213
    
    {"items":[
      {"sku":"…","mode":"increment","quantity":5}
    ]}

Start here

Everything you need to build and run an integration with a Pro store.

Support

A question about an integration or a problem with a key? Write to us, and never send the key itself.

Ready to connect?

API keys are for stores on the Pro plan. Compare plans