Skip to main content
Pure provides a sandbox environment for testing the Execution API — both buying and selling — without using real money.

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 API keys cannot be used against the production API, and production keys cannot be used in sandbox. Make sure you’re using the correct key for the environment.

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)

Omit shipping when vault shipping is selected and eligible.

Sell Example (v2)

Use GET /sandbox/listings/get/v1 to discover test listings for buy flows, and GET /sandbox/offers/get/v1 to discover test offers for sell flows. Pick any listingId or offerId from the response to use in your quote requests. See Checkout Optionals for add-on details.