# Mixam — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Discover Mixam's full range of printing products and instantly get real-time pricing quotes tailored to your order volume. Compare costs across different quantities to find the best rates for your print job needs.

**Category:** E-commerce | **Website:** [mixam.com/](https://mixam.com/) | **Docs:** [parse.bot/marketplace/f14f6433-c7ff-4197-a064-e59b67e8ce3e/mixam-com-api](https://parse.bot/marketplace/f14f6433-c7ff-4197-a064-e59b67e8ce3e/mixam-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-mixam-com-api-f14f6433/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_products

Returns all available print product types and their IDs by scanning known product ID ranges. Includes both primary products (Booklets, Flyers, Posters, etc.) and sub-product variations (Magazines, Catalogs, Zines, etc.). No input required. The returned product IDs are used as input to all other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-com-api-f14f6433/get_all_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_detail

Returns full metadata and configuration options for a specific product ID, including substrate types, binding options, standard sizes, copy limits, lamination options, and colour options. Use product_id and sub_product_id from get_all_products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | integer | Yes | Primary product ID (e.g. 1 for Booklets, 2 for Flyers, 4 for Posters). Obtain from get_all_products. |
| `sub_product_id` | integer | No | Secondary product ID for variations (e.g. 100007 for Magazines). Defaults to 0 for the primary product. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-com-api-f14f6433/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<integer>","sub_product_id":"<integer>"}'
```

### get_product_quote

Retrieves a real-time price quote for a product configuration using default specifications. Returns pricing offers from multiple print centers with varying delivery times and prices. The best-price and best-time offers are flagged in the offer table.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `copies` | integer | No | Number of copies to quote. |
| `product_id` | integer | Yes | Primary product ID (e.g. 1 for Booklets). Obtain from get_all_products. |
| `sub_product_id` | integer | No | Secondary product ID for variations. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-com-api-f14f6433/get_product_quote \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"copies":"<integer>","product_id":"<integer>","sub_product_id":"<integer>"}'
```

### get_volume_pricing_tiers

Retrieves pricing for multiple quantity tiers to show volume discounts. Each tier contains a full quote response including offer table, total price, and item description. Useful for comparing per-unit costs at different quantities.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | integer | Yes | Primary product ID (e.g. 1 for Booklets). Obtain from get_all_products. |
| `sub_product_id` | integer | No | Secondary product ID for variations. |
| `tiers` | string | No | JSON array of integer quantities to quote, e.g. "[50, 100, 250, 500]". Defaults to [25, 50, 100] if omitted. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-com-api-f14f6433/get_volume_pricing_tiers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<integer>","sub_product_id":"<integer>","tiers":"<string>"}'
```
