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
| Method | Path | What it does |
|---|---|---|
GET | (the base URL itself) | The store the key reaches. A good first call to check a connection. |
GET | /orders | List 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 | /products | List 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 | /collections | List collections with their product ids. |
GET | /customers | List customers: everyone who ordered, by email. |
GET | /checkouts | List checkouts, including abandoned ones with their recovery link. |
GET | /checkouts/{checkoutId} | Get a checkout. |
GET | /events | List events oldest first. See Events. |
GET, POST | /webhooks | List and create webhooks. See Webhooks. |
GET, PATCH, DELETE | /webhooks/{webhookId} | Get, change or turn off, delete. |
POST | /webhooks/{webhookId}/test | Send a test delivery. |
POST | /webhooks/{webhookId}/secret | Make a new signing secret. |
GET | /webhooks/{webhookId}/deliveries | The delivery log, newest first. |
POST | /webhooks/{webhookId}/deliveries/{deliveryId}/redeliver | Send 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. POSTandPATCHtake anIdempotency-Keyheader. 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 a308redirect 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 ascreated_aftertake 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:
titlein the store's language, andtitleswith 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 (
currencyon the product, and on the store). - A customer's
spent_minoris converted to the store's currency. - When you write a price (
price_minor,compare_at_minoronPATCH /products/{productId}), send minor units of the store's currency.
Ids
| Object | Id | Also found by |
|---|---|---|
| Order | UUID | Its number: /orders/1042. The label field is the number as the store shows it, with its prefix and suffix (#1042, SY-1042). |
| Product | UUID | Its handle: /products/linen-throw. |
| Version (variant) | UUID | - |
| Collection, checkout, webhook | UUID | - |
| Event | An increasing integer, sent as a string ("4182") | - |
| Delivery | An 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
Store
The store a key reaches: name, currency, languages, the key's own scope.
Orders
List, read and move orders on: ship, deliver, cancel, refund, notes.
Products
Products with their versions, prices and stock. Change status, prices and stock.
Collections
Manual and smart collections with the product ids in them.
Customers
Everyone who ordered, with order count, spend and marketing consent.
Checkouts
Started, abandoned, recovered and converted checkouts, with recovery links.
Events
Everything that happened in the store, in order, for polling.
Webhooks
Create and manage webhooks, test them, read and redeliver deliveries.
Guides
Authentication
Store keys, read and edit scopes, permissions, revoking.
Errors
The error shape and every code the API returns.
Pagination and limits
Pages and cursors, and 240 calls a minute per key.
Webhooks
Event types, payloads, signatures, retries and the delivery log.
Events
Poll /events with after, and when to poll instead of using webhooks.
MCP server
Connect Claude and other AI clients to the store with the same keys.
Activity log
Who changed what and when, across the organization or in one store - what is recorded, who sees which lines, the filters, the CSV export, and how long lines are kept.
Authentication
Store keys (vtk_...) - making one, Read only and Can edit, the member permissions a key carries, revoking, and keeping keys secret.