> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trackstarhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Trackstar is a unified REST API for WMS, cart, and carrier systems. Base URL: https://production.trackstarhq.com. There is no SDK; call the API with plain HTTP.
> Send x-trackstar-api-key on every request. Endpoints scoped to one connection also need x-trackstar-access-token. Read both from environment variables and never print them.
> Reads return data Trackstar has already synced from the connected system. Writes (POST, PUT, PATCH, DELETE) are forwarded to the connected system immediately.
> A new connection has no data until its initial sync finishes. Wait for the connection.historical-sync-completed webhook, or poll GET /connections/{connection_id} and check historical_sync_completed.
> List endpoints page with page_token and next_token (limit is capped at 1000). Repeat every filter on every page. Filters use field[operator]=value, for example created_date[gte]=2026-01-01T00:00:00Z.
> Write bodies must not contain null or empty strings; omit the field instead. Call GET /integrations/{integration_type}/{integration_name}/write-info first to learn the exact fields an integration accepts.
> To test without real credentials, POST /sandbox/generate-sandbox/{wms|cart|carrier} with the API key returns a sandbox access token. Start at https://docs.trackstarhq.com/how-to-guides/build-with-ai.md and install the skills with: npx skills add https://docs.trackstarhq.com

# Cart API

> One API for products, orders, and locations across every connected ecommerce platform

The Cart API gives you one set of endpoints for every ecommerce platform your customers connect. Products, orders, and locations come back in the same shape whichever platform the store runs on, and you can push shipments, refunds, and inventory levels back to it.

## Make a request

Every endpoint lives under `https://production.trackstarhq.com/cart/` and takes two headers: your API key, and the access token for the customer's connection. See [Getting Started](https://docs.trackstarhq.com/how-to-guides/getting-started.md) for how to get both.

```bash theme={null}
curl "https://production.trackstarhq.com/cart/orders?limit=10" \
  -H "x-trackstar-api-key: YOUR_API_KEY" \
  -H "x-trackstar-access-token: YOUR_ACCESS_TOKEN"
```

List endpoints return up to 1000 items per page with a `next_token` for the next page, and accept filters such as `updated_date[gte]`. [About the API](https://docs.trackstarhq.com/how-to-guides/about-the-api.md) covers pagination, filtering, errors, and rate limits.

Not every platform supports every endpoint. A connection's `available_actions` lists what it supports, and an endpoint its platform doesn't support returns `501`.

## Resources

> [card] [Products](https://docs.trackstarhq.com/api-reference/cart-api/products/info.md)
>
> Products and their variants, and inventory updates back to the store.

> [card] [Orders](https://docs.trackstarhq.com/api-reference/cart-api/orders/info.md)
>
> Store orders and their line items, plus shipments and refunds back to the store.

> [card] [Warehouses](https://docs.trackstarhq.com/api-reference/cart-api/warehouses/info.md)
>
> The platform's locations where inventory is stored.

## Keep your data current

Trackstar syncs each connection on a schedule, so reads come from Trackstar and don't wait on the platform. To hear about changes as they land instead of polling, subscribe to [webhooks](https://docs.trackstarhq.com/how-to-guides/webhooks/webhooks.md). [Syncing Data](https://docs.trackstarhq.com/how-to-guides/syncing-data.md) lists how often each resource syncs.

To try the endpoints before a customer connects, use the [Cart sandbox](https://docs.trackstarhq.com/how-to-guides/sandbox.md).

## Use cases

> [card] [Cart Order Fulfillment](https://docs.trackstarhq.com/use-cases/cart-order-fulfillment.md)
>
> Sync products, pull orders, and push back shipment and inventory updates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.