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
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" -iGET /store needs the store.read scope. See Get store in the reference.
The answer
The answer is 200 with the rate headers:
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-RemainingandX-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 benull. Thearside holds the Arabic text, shown as"..."in the examples. - Send
Accept-Language: enfor English error messages (Arabic by default).
If it fails
| Answer | Code | What to do |
|---|---|---|
| 401 | unauthenticated | No Authorization header. Add it. |
| 401 | invalid_token | Wrong, revoked or expired key. Ask the owner for a new key; do not retry. |
| 402 | feature_locked | The store is not on Pro (feature: public_api), or another feature is missing (webhooks, abandoned_carts). |
| 403 | ip_not_allowed | Your server is not in the key's address list. |
| 403 | insufficient_scope | The key lacks the route's scope; scope names it. |
| 429 | rate_limited | Past the per-minute limit; wait Retry-After. |
Every code, with its fix: Errors.