API

Read your stores and orders from your own tools. Available on Growth and Scale. Last updated 9 October 2026.

A read-only REST API for your stores, attributed orders and campaign reports, so you can pull SalesTracked data into your own dashboards. It is available on the Growth and Scale plans for approved accounts. Orders and visits arrive within seconds.

Authentication

An owner or admin creates keys in Settings → API. A key is shown once; send it in the Authorization header. Revoking a key stops it at once.

Share keys

To connect one store to a partner tool, such as Milba Dashboard, an owner or admin creates a share key in Store → Settings → Share data with partners and pastes it in the tool. Share keys start with st_share_ and work on any plan while the account's subscription is active, with no approval needed. When the subscription ends they answer 403 until it is active again.

A share key reads only its own store: GET /stores returns that one store, and any other store id answers 404. It can make 60 requests per minute. Revoking it in the store's settings stops it at once.

Rate limits

Each key can make 60 requests per minute on Growth and 240 on Scale; all keys of an account together, twice that. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix time). Over the limit the API answers 429 with Retry-After in seconds.

GETGET /stores

Your stores: id, name, shop domain, currency, time zone and when the last pixel event and Shopify webhook arrived.

GETGET /stores/{id}/orders

Orders with the campaign SalesTracked credited, oldest first by the time we received them. No customer details are returned. Parameters:

limit1 to 100, default 50.
sinceISO 8601 date-time; only orders received after it.
updated_sinceISO 8601 date-time; orders received or changed after it, oldest change first. An order changes when SalesTracked credits it again, for example when the browser pixel reports the purchase seconds after Shopify's webhook, which can change its campaign, ad set, ad and method. It also changes on a cancellation or refund.
cursorThe next_cursor of the previous response. Keep polling with it to get only new orders; a cursor that started from updated_since keeps returning changed orders too.

To keep a copy in sync, poll with updated_since and then next_cursor, and store the latest version of each order by shopify_order_id. updated_at is when the order last changed.

{
  "data": [{
    "id": "cm…", "shopify_order_id": "5938…", "order_number": "#1042",
    "total": 59.9, "currency": "EUR", "item_count": 2, "refunded_amount": 0,
    "cancelled_at": null, "placed_at": "2026-10-03T09:12:44.000Z",
    "received_at": "2026-10-03T09:12:46.120Z",
    "updated_at": "2026-10-03T09:12:58.430Z",
    "attribution": {
      "channel": "meta", "method": "visitor_last_click",
      "utm_source": "facebook", "utm_medium": "paid", "utm_campaign": "autumn",
      "utm_content": null, "utm_term": null,
      "campaign_id": "1202…", "adset_id": "1202…", "ad_id": "1202…"
    }
  }],
  "has_more": false,
  "next_cursor": "MjAyNi0xMC0wM1Qw…"
}

GETGET /stores/{id}/report

The Reports page as JSON. Parameters:

dimensioncampaign (default), adset, ad, utm_campaign, utm_source, utm_medium, utm_content, utm_term or channel.
from, toDays as YYYY-MM-DD in the store's time zone; default the last 7 days, at most 92 days.
currencyConvert amounts at daily ECB rates; default the store's currency.

Each row has sessions, visitors, adds to cart, checkouts and purchases (count and value).

Errors

Errors are JSON { "error": "…" }: 400 bad parameter, 401 missing or invalid key, 403 the account has no API access, or a share key's subscription is inactive, 404 store not found, 429 rate limited.