> ## 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.

# Response Format

> Success and error JSON shapes returned by Join Markt HTTP APIs.

# Response Format

Join Markt returns JSON. Shapes differ by surface.

## Embed checkout success

```json theme={null}
{
  "orderId": "clxxxxxxxxxxxxxxxxxxxx",
  "url": "https://YOUR_APP_ORIGIN/checkout/clxxx?embed=1&theme=auto"
}
```

## Embed checkout error

```json theme={null}
{
  "error": "Human-readable message"
}
```

## Checkout start

```json theme={null}
{
  "orderId": "clxxxxxxxx",
  "order": {
    "orderId": "clxxxxxxxx",
    "status": "processing"
  }
}
```

## Catalog

Storefront payload includes store, stats, products, groups, feedback, categories.

Products endpoint returns an array of public products.

## Orders create

```json theme={null}
{
  "order": {},
  "checkoutToken": "token"
}
```

## Track

```json theme={null}
{
  "success": true
}
```

## Status codes

200 success. 400 validation. 401 or 403 auth. 404 missing. 429 rate limit. 500 unexpected.

## CORS

Embed checkout allows any origin. Theme APIs are same-origin.
