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
1
Create a Sandbox API Key
Go to
collectpure.com/dashboard/api-keys
and create a new API key. Select the Sandbox environment.
2
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.
3
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.4
Test the Full Flow
Fetch test listings or offers, create v2 quotes, review pricing and
optionals, and execute orders — all in a safe testing environment with no
real money involved.
Sandbox Endpoints
The sandbox environment exposes additional endpoints to help you discover test data. These routes are registered only on the sandbox API deployment — they do not exist on the production base URL. Both sandbox discovery endpoints require stytch_member access. Responses use a{ data: { ... } } envelope (no success field). Each response includes a total count for pagination.
GET /sandbox/listings/get/v1 — Get test listings
Returns active listings available for testing. Use the listingId from the response to create buy quotes.
Response fields:
The response also includes
total — the total number of matching listings across all pages.
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.
Response fields:
The response also includes
total — the total number of matching offers across all pages.
Buy Example (v2)
shipping when vault shipping is selected and eligible.