# Mixam (United Kingdom) — 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.

> Access Mixam's complete print product catalogue, explore available customization and configuration options for each product, and retrieve real-time pricing quotes for any print specification. Supports full product discovery, configuration schema retrieval, and instant quote generation.

**Category:** E-commerce | **Website:** [mixam.co.uk/](https://mixam.co.uk/) | **Docs:** [parse.bot/marketplace/f62ae36f-6c32-4220-9080-9c92aecedb85/mixam-co-uk-api](https://parse.bot/marketplace/f62ae36f-6c32-4220-9080-9c92aecedb85/mixam-co-uk-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-co-uk-api-f62ae36f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_products_list

Retrieve the full catalogue of print products available on Mixam.co.uk. Each product includes its display name, URL slug (used as input for get_product_ids), and full URL. No pagination — returns all products in a single response.

**Estimated cost:** Metered

_No parameters required._

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

### get_instant_quote

Retrieve real-time pricing for a specific product configuration. The spec object follows the Mixam offer API format with top-level keys subProductId, itemSpecification (containing copies, product, components array, bound), and santaType. Use the initialSpecification from get_product_config as the itemSpecification template. Returns best-price and express delivery options with estimated costs and delivery dates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `spec` | object | Yes | JSON object containing the full offer request. Required top-level keys: subProductId (integer), itemSpecification (object with copies, product, components array, bound), santaType (string, defaults to 'QUOTE'). Use the initialSpecification from get_product_config as the itemSpecification value. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-co-uk-api-f62ae36f/get_instant_quote \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"spec":"<object>"}'
```

### get_product_config

Retrieve the full configuration schema for a product, including available sizes, paper types and weights, binding options, lamination options, colour printing options, and the initialSpecification template for building quote requests. Use productId and subProductId from get_product_ids.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Internal product ID from get_product_ids (e.g. '1'). |
| `sub_product_id` | string | Yes | Internal sub-product ID from get_product_ids (e.g. '100009'). |

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

### get_product_ids

Extract the internal productId and subProductId for a given product slug. These identifiers are required inputs for get_product_config and for building quote requests via get_instant_quote. The slug comes from get_all_products_list.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product slug with leading slash, from get_all_products_list (e.g. '/booklets', '/hardcoverbooks', '/flyers'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mixam-co-uk-api-f62ae36f/get_product_ids \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```
