Sifr Wahid Developers

Get started

Your first call

Read the key's store with one request, then read the answer: the data, the rate headers and the conventions every other call follows.

Send the call

Shell
export ZO_API_KEY='zo_live_...'
curl -sS https://s.zo.sa/api/public/v1/store \
  -H "Authorization: Bearer $ZO_API_KEY" \
  -H "Accept: application/json" -i

GET /store needs the store.read scope. See Get store in the reference.

The answer

The answer is 200 with the rate headers:

HTTP
HTTP/1.1 200 OK
X-RateLimit-Limit: 360
X-RateLimit-Remaining: 359
X-RateLimit-Reset: 1795421160
Content-Type: application/json

{"data":{"id":3,"name":{"ar":"...","en":"My store"},"slug":"my-store","url":"https://s.zo.sa/my-store","currency":"SAR","language":"ar","status":"live","created_at":"2026-11-23T06:01:53.000000Z"}}
  • Every answer that goes through the counter carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (unix time). See Rate limits and retries.
  • The body is JSON, and one row is under data.

Conventions

  • Every amount is an integer in halalas (100 halalas = 1 SAR).
  • Dates are ISO 8601 in UTC.
  • Translated text is an object {ar, en}; either side may be null. The ar side holds the Arabic text, shown as "..." in the examples.
  • Send Accept-Language: en for English error messages (Arabic by default).

If it fails

AnswerCodeWhat to do
401unauthenticatedNo Authorization header. Add it.
401invalid_tokenWrong, revoked or expired key. Ask the owner for a new key; do not retry.
402feature_lockedThe store is not on Pro (feature: public_api), or another feature is missing (webhooks, abandoned_carts).
403ip_not_allowedYour server is not in the key's address list.
403insufficient_scopeThe key lacks the route's scope; scope names it.
429rate_limitedPast the per-minute limit; wait Retry-After.

Every code, with its fix: Errors.