Sandbox API
Base URL:
https://sandbox.api.collectpure.comAll sandbox requests use the same endpoints and schemas as production — just point to the sandbox base URL.Sandbox API Keys
Generate a sandbox API key from your API Keys dashboard.Select Sandbox environment when creating the key.
Getting Started
Create a Sandbox API Key
Go to
collectpure.com/dashboard/api-keys
and create a new API key. Select the Sandbox environment.
Sandbox Data is Created For You
When you create a sandbox key, Pure automatically provisions test data for
your organization — including products, listings, offers, and payment
methods. You can start making API calls immediately.
Use the Sandbox Base URL
Point all your requests to
https://sandbox.api.collectpure.com instead of
the production URL. Use your sandbox API key in the x-api-key header.Sandbox Endpoints
The sandbox environment exposes additional endpoints to help you discover test data. These endpoints are only available in sandbox and do not exist in production.GET /sandbox/listings/get/v1 — Get test listings
Returns active listings available for testing. Use the listingId from the response to create buy quotes.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Max listings to return (1–250) |
offset | number | 0 | Number of listings to skip (pagination) |
| Field | Type | Description |
|---|---|---|
listingId | string | The listing ID — pass this to the buy quote endpoint |
productId | string | The product ID |
variantId | string | The variant ID |
productTitle | string | Product name |
sku | string | Product SKU |
material | string | Material (Gold, Silver, etc.) |
quantity | number | Available quantity |
price | number | Price in cents |
priceDollars | number | Price in dollars |
spotPremium | number | Premium over spot (%) |
spotPremiumDollar | number | Premium over spot ($) |
expiresAt | string | ISO 8601 listing expiration |
GET /sandbox/offers/get/v1 — Get test offers
Returns active buy offers available for testing. Use the offerId from the response to create sell quotes.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Max offers to return (1–250) |
offset | number | 0 | Number of offers to skip (pagination) |
| Field | Type | Description |
|---|---|---|
offerId | string | The offer ID — pass this to the sell quote endpoint |
productId | string | The product ID |
variantId | string | The variant ID |
productTitle | string | Product name |
sku | string | Product SKU |
material | string | Material (Gold, Silver, etc.) |
quantity | number | Available quantity |
price | number | Price in cents |
priceDollars | number | Price in dollars |
spotPremium | number | Premium over spot (%) |
spotPremiumDollar | number | Premium over spot ($) |
expiresAt | string | ISO 8601 offer expiration |