Skip to Content
StarsellDocs
Developers

Store API

REST access to one store - base URL, JSON conventions, money and ids, a first request with curl, and where each endpoint is documented.

The store API gives your own code the same store the admin shows: orders, products, collections, customers, checkouts, the events that happened, and the webhooks that send them out. Use it from a script, an ERP or warehouse sync, a reporting job, or an automation tool such as n8n, Make or Zapier.

Every call is made with a store key and reaches exactly one store. The admin's own routes (the ones the admin pages call with a signed-in session) are not a public API and change without notice.

Base URL

https://<admin host>/api/v1/stores/<storeId>
  • <admin host> is the address you sign in to the admin at. The API is served from the same host, under /api/v1.
  • <storeId> is the store's id, the UUID in admin URLs (/a/<storeId>/orders). Settings > API and webhooks shows the whole address under Address for this store, with a Copy button.
  • The OpenAPI 3.1 document is at https://<admin host>/api/v1/openapi.json. It needs no key, so you can import it into Postman, Insomnia or an AI tool directly.

Every path in these docs is relative to the base URL: GET /orders means GET https://<admin host>/api/v1/stores/<storeId>/orders.

Call the API from your server

The API sends no CORS headers, so a browser on another site can't call it, and a key in frontend code is a key anyone can copy. Call the store API from your backend, a serverless function or your automation tool.

Endpoints

MethodPathWhat it does
GET(the base URL itself)The store the key reaches. A good first call to check a connection.
GET/ordersList orders, filtered by status, channel, email, dates or a search term.
GET/orders/{orderId}Get an order by id or by number (/orders/1042).
PATCH/orders/{orderId}Move an order on: ship with tracking, deliver, return, cancel, mark paid, refund, add a note.
GET/productsList products, by status, title, handle, SKU or update time.
GET/products/{productId}Get a product by id or handle.
PATCH/products/{productId}Change a product's status, prices or stock.
GET/collectionsList collections with their product ids.
GET/customersList customers: everyone who ordered, by email.
GET/checkoutsList checkouts, including abandoned ones with their recovery link.
GET/checkouts/{checkoutId}Get a checkout.
GET/eventsList events oldest first. See Events.
GET, POST/webhooksList and create webhooks. See Webhooks.
GET, PATCH, DELETE/webhooks/{webhookId}Get, change or turn off, delete.
POST/webhooks/{webhookId}/testSend a test delivery.
POST/webhooks/{webhookId}/secretMake a new signing secret.
GET/webhooks/{webhookId}/deliveriesThe delivery log, newest first.
POST/webhooks/{webhookId}/deliveries/{deliveryId}/redeliverSend a delivery again.

Which key and which member permission each call needs is in Authentication.

Requests and responses

  • Send bodies as JSON with Content-Type: application/json. Answers are JSON.
  • POST and PATCH take an Idempotency-Key header. A repeat with the same key within 24 hours gets the first answer back instead of running again, so a retry after a timeout can't ship twice or add a note twice. See Retrying safely.
  • Leave off trailing slashes: /orders/ answers with a 308 redirect to /orders, which curl and many HTTP clients don't follow by default.
  • Field names are snake_case, in requests and responses.
  • A single object comes wrapped in data: { "data": { ... } }.
  • A list comes as { "data": [ ... ], "pagination": { ... } }. See Pagination and limits.
  • An error comes as { "error": { "code": "...", "message": "..." } } with a matching status. See Errors.
  • Timestamps are ISO 8601 in UTC with milliseconds: 2026-11-27T10:14:03.512Z. Date filters such as created_after take ISO 8601 too.
  • Links are absolute: url (the storefront page), admin_url (the admin page), status_url (the customer's own order page), image_url.
  • Text that differs by language comes twice: title in the store's language, and titles with every language the merchant wrote, keyed by code ({ "en": "Linen throw", "he": "שמיכת פשתן" }).
  • Costs, supplier prices and margins are not in any store API answer, webhook or event. (The MCP tools do show them.)
  • Answers gain fields over time. Ignore fields you don't recognise.

Money

Amounts are integers in minor units, in fields that end in _minor, next to a currency (ISO 4217). 10900 with "currency": "ILS" is ₪109.00.

  • Minor units are always hundredths, even for currencies without cents such as ISK or HUF. Divide by 100 to show an amount.
  • An order's amounts are in the order's currency: the market the buyer shopped in, which can differ from the store's.
  • Product and version prices are in the store's currency (currency on the product, and on the store).
  • A customer's spent_minor is converted to the store's currency.
  • When you write a price (price_minor, compare_at_minor on PATCH /products/{productId}), send minor units of the store's currency.

Ids

ObjectIdAlso found by
OrderUUIDIts number: /orders/1042. The label field is the number as the store shows it, with its prefix and suffix (#1042, SY-1042).
ProductUUIDIts handle: /products/linen-throw.
Version (variant)UUID-
Collection, checkout, webhookUUID-
EventAn increasing integer, sent as a string ("4182")-
DeliveryAn integer-

Ids never change. A handle can: merchants edit a product's address in the admin. Store the id.

A first request

Make a key

Open Settings > API and webhooks and make a Read only key under API and MCP keys. Copy it: it is shown once. See Authentication.

Check the connection

BASE="https://<admin host>/api/v1/stores/<storeId>"
KEY="vtk_..."

curl "$BASE" -H "Authorization: Bearer $KEY"
{
  "data": {
    "id": "3f6c2a8e-91d4-4b7a-a5e2-0c8d7b1f4e93",
    "name": "Lumen Home",
    "slug": "lumen-home",
    "currency": "ILS",
    "language": "he",
    "languages": ["he", "en"],
    "status": "live",
    "url": "https://lumenhome.co.il",
    "admin_url": "https://<admin host>/a/3f6c2a8e-91d4-4b7a-a5e2-0c8d7b1f4e93",
    "key": { "name": "Reporting", "scope": "read" }
  }
}

key tells you which key you sent and what it can do (read or write). status is live or draft.

Read a list

curl "$BASE/collections?limit=1" -H "Authorization: Bearer $KEY"
{
  "data": [
    {
      "id": "9a41f0c2-6d3b-4e8a-b7f1-2c5e9d0a8b36",
      "handle": "living-room",
      "title": "סלון",
      "titles": { "he": "סלון", "en": "Living room" },
      "kind": "manual",
      "status": "active",
      "image_url": "https://<admin host>/api/files/1d7e4b2a-6c9f-4a3e-8b5d-0f2c9e7a1b64",
      "url": "https://lumenhome.co.il/collections/living-room",
      "product_count": 2,
      "product_ids": ["c2b7e9a4-1f3d-4c8e-9a6b-5d0f2e7c1a84", "7e3d1a9c-4b2f-4e6a-8c1d-9f0b5a2e6c37"],
      "created_at": "2026-09-14T08:02:11.904Z",
      "updated_at": "2026-11-20T16:45:39.120Z"
    }
  ],
  "pagination": { "page": 1, "limit": 1, "total": 6, "has_more": true }
}

Change something

Writes need a key that can edit. This marks order 1042 shipped with its tracking number:

curl -X PATCH "$BASE/orders/1042" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"fulfillment_status":"shipped","tracking":"RR123456789IL"}'

The answer is the order as it is now. The change shows in the order's timeline and in the store's activity log as made through the key, by name. Several changes in one call are saved together or not at all.

The API reference has a playground on every endpoint: paste your key and send real requests from the docs.

Versioning

The version is in the path: /api/v1. Fields are added to answers without a new version. Removing or renaming a field would be a new version.

Reference

Guides

On this page