Developers

Connect your own systems to your shop

Read and change products, stock, orders and customers over a REST API, and get told about new orders and low stock as they happen.

Getting started

Your first request in three steps

  1. 01

    Create a key

    In your dashboard, open Settings → API keys, name the key and choose what it may reach. The key starts with ssk_ and is shown once, so copy it then.

  2. 02

    Find your store’s address

    Every route starts with /api/v1/tenants/{tenantId}/. The example request on the API keys page already has your store’s tenantId in it.

  3. 03

    Send the key with each request

    Put it in the X-Api-Key header, or send Authorization: Bearer ssk_…. A key only works for its own store.

# List the first 20 products
curl https://api.shopiz.in/api/v1/tenants/{tenantId}/products?page=1&perPage=20 \
  -H "X-Api-Key: ssk_…"

# Lists come back as data plus paging details
{ "data": [ … ], "meta": { "page": 1, "perPage": 20, "total": 134, "pages": 7 } }
Scopes

Each key reaches only the areas you pick

Give an area full access (for example orders) or read-only access (orders:read). Read-only keys can make GET requests only. The reference shows the scope each route needs.

AreaWhat it covers
productsProducts, variants, images and product types
categoriesCategories
inventoryStock levels, adjustments and in-store (POS) sales
ordersOrders, returns and the return policy
customersCustomers and customer invoices
discountsDiscount codes
reviewsProduct reviews and review settings
pagesContent pages
navigationMenus

Keys can’t reach staff accounts, roles, API keys, webhooks, payment or delivery providers, domains, the store design or your subscription. Those stay in the dashboard.

Requests and errors

What to expect back

  • JSON in, JSON out

    Send JSON bodies. Fields or query parameters the route doesn’t know are refused with 400, so a typo never passes silently.

  • Paging

    Lists take page and perPage (20 by default, at most 100) and return meta with page, perPage, total and pages.

  • Errors

    Errors carry statusCode and message. 401: missing, wrong, expired or revoked key. 403: the key lacks that scope. 429: rate limit reached.

Each key can make 300 requests a minute. Past that you get 429 with a Retry-After header saying how many seconds to wait.

Webhooks

Hear about changes instead of asking

Add an https address under Settings → Webhooks and pick the events you want. We POST each event to it as JSON.

EventSent when
order.createdA new order is placed
order.paidAn order’s payment is confirmed
order.status_changedAn order moves to another stage
order.cancelledAn order is cancelled
order.refundedAn order is refunded
return.requestedA customer asks to return items
return.updatedA return is approved, rejected, received, refunded or closed
product.createdA product is added
product.updatedA product is changed
product.deletedA product is removed
inventory.low_stockStock falls to the low-stock level
customer.createdA customer is added by staff or signs up on the shop

“Send test” on the webhooks page sends a ping event so you can check your endpoint.

# Every delivery looks like this
{
  "id": "evt_…",
  "type": "order.paid",
  "created": "2026-12-03T10:15:00.000Z",
  "store": { "id": "…", "slug": "your-shop" },
  "data": { … }
}
Signatures

Check that a delivery came from us

  • The headers

    StoreSphere-Event names the event. StoreSphere-Event-Id stays the same on retries, so use it to skip duplicates. StoreSphere-Signature holds t=<unix time>,v1=<signature>.

  • The check

    The signature is an HMAC-SHA256 of "<t>.<raw body>" with your endpoint’s secret (it starts with whsec_). Recompute it over the raw body, compare, and reject times more than 5 minutes old.

// Node.js: pass the raw request body, before any JSON parsing
const { createHmac, timingSafeEqual } = require('node:crypto');

function verify(header, rawBody, secret) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.trim().split('=', 2)));
  const t = Number(parts.t);
  if (!parts.v1 || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return expected.length === parts.v1.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
Questions

Delivery, retries and keys

What counts as delivered?

Any 2xx answer within 10 seconds. Redirects are not followed, so give the final address.

What happens when my endpoint is down?

We try again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours. After 20 failed deliveries in a row the endpoint is switched off; turn it back on from the webhooks page.

Can I see what was sent?

The webhooks page keeps a delivery log for 30 days, with the response we got. You can send any delivery again from there.

My secret leaked. What now?

Rotate it on the webhooks page; deliveries are signed with the new secret from then on. For an API key, revoke it under Settings → API keys and create a new one.

Can a webhook point at a local address?

No. Addresses must use https, and private or local network addresses are refused. To test on your own machine, use a tunnelling tool that gives you a public https address.

Where is the full list of routes?

In the Store API reference, grouped by area, with every field and the scope each route needs.