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

# v1 Cart & Checkout

> Nunjucks / SellAuth-compatible cart and checkout.

# v1 Cart & Checkout

SellAuth-compatible theme endpoints under `/api/v1/`.

## Get cart

```bash theme={null}
GET /api/v1/cart?storeId=…&cart=…
```

Normalizes/hydrates cart JSON for Nunjucks themes.

## Checkout

```bash theme={null}
POST /api/v1/checkout
```

Body (typical):

```json theme={null}
{
  "shopId": "store-id-or-subdomain",
  "cart": [],
  "email": null
}
```

Response:

```json theme={null}
{
  "url": "https://YOUR_APP_ORIGIN/checkout/…",
  "orderId": "…"
}
```

CSRF exempt for theme use. No route-level rate limit in the current handlers — protect at the edge if exposed broadly.

See Nunjucks Theme API.
