REFERENCE / PAGINATION

Pagination and sync.

Lists are cursor-paginated. Cursors are stable while data changes underneath, so you never skip or repeat a record.

Cursors

Pass limit (default 50, maximum 100). Each response has a page object. While has_more is true, send next_cursor as the next request's cursor with the same filters. Cursors are opaque: do not build or edit them. An invalid cursor returns 400. There is no offset pagination.

{
  "data": [ … ],
  "page": { "has_more": true, "next_cursor": "eyJ2IjoxLCJjcmVhdGVkX2F0Ijoi…" }
}
let cursor;
do {
  const url = new URL("/api/v1/public/stores", process.env.SIMPLE_API_BASE_URL);
  url.searchParams.set("limit", "100");
  if (cursor) url.searchParams.set("cursor", cursor);
  const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SIMPLE_API_KEY}` } });
  const body = await res.json();
  for (const store of body.data) handle(store);
  cursor = body.page.next_cursor;
} while (cursor);

Report windows

Reports take from (inclusive) and to (exclusive) as RFC 3339 UTC timestamps. The default is the last 7 days and the maximum is 90 days; windows in the future are rejected. Totals in summary cover the whole window, not just the current page, so page through rows freely without re-adding totals.

Catalog delta sync

To keep a storefront in step without re-reading everything, store the time of your last sync and pass it as updated_since. The response contains every product changed since then, including a change to any of its variants or prices.

GET /api/v1/public/catalog/products?store_id=$STORE_ID&updated_since=2026-10-08T09:00:00Z

Products that were deleted, deactivated or lost their last priced variant come back as tombstones: availability_status: "unpublished" with empty details. Remove them from your storefront. Without updated_since, the list contains only products that are currently sellable.

Use the newest updated_at you received, not your own clock, as the next updated_since; it is inclusive, so you may see the boundary product twice.

Polling or webhooks

Poll for bulk backfills and periodic reconciliation. For near-real-time changes to orders, stock and register sessions, subscribe to webhooks instead; they do not count against your rate limit.