# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/mixam-united-kingdom/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/mixam-united-kingdom/get-all-products-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mixam-united-kingdom/get-instant-quote \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mixam-united-kingdom/get-product-config \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mixam-united-kingdom/get-product-ids \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.