# Vistaprint — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Search and browse Vistaprint's catalog of 5,800+ products across business cards, promotional items, clothing, signage, and packaging, with instant access to product names, quantities, pricing, and detailed specifications. Filter by category or search for specific items to compare options and get complete product information for your ordering decisions.

**Category:** E-commerce | **Website:** [vistaprint.com/](https://vistaprint.com/) | **Docs:** [parse.bot/marketplace/7d7f713b-d25d-4540-92a0-99aea7ab6b6d/vistaprint-com-api](https://parse.bot/marketplace/7d7f713b-d25d-4540-92a0-99aea7ab6b6d/vistaprint-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/vistaprint/`
**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 categories

Get all product categories with product counts. Returns a 3-level category hierarchy (top-level, subcategories level 1, subcategories level 2) with the number of products in each category. Use the returned category_id values as input to get_products_by_category.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/vistaprint/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get product details

Get detailed product information including all available options/variants, available quantities, and a complete pricing matrix by quantity. Requires a product_id from search_products or get_products_by_category. Optionally accepts a product_version; if omitted, the version is auto-detected from the catalog.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product ID (e.g., 'PRD-0BKUQJYW', 'PRD-IYXT1T3V'). Get from search_products or get_products_by_category results. |
| `product_version` | string | No | Product version number. Auto-detected from catalog if not provided. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/vistaprint/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>","product_version":"<string>"}'
```

### Get products by category

Get products within a specific category. Returns product names, quantities (MOQ, default, recommended), pricing, ratings, and stock status. Supports pagination via page and limit parameters. Category IDs are discoverable from get_categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category ID to browse. Use get_categories to discover valid IDs. |
| `category_level` | integer | No | Category hierarchy level (0=top, 1=sub, 2=sub-sub). |
| `limit` | integer | No | Products per page (max 100). |
| `page` | integer | No | Page number (0-indexed). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/vistaprint/get-products-by-category \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","category_level":"<integer>","limit":"<integer>","page":"<integer>"}'
```

### Search products

Search products by keyword. Returns matching products with names, quantities, pricing, and category breakdown of results. Supports pagination via page and limit parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Products per page (max 100). |
| `page` | integer | No | Page number (0-indexed). |
| `query` | string | Yes | Search keyword (e.g., 'mugs', 'business cards', 't-shirts'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/vistaprint/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>"}'
```

## Next steps

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