https://sandbox-api.polar.sh, and its own accounts, organizations, products, customers and access tokens. Nothing in it moves real money.
Why a separate environment instead of a test mode? As the Merchant of Record, Polar tracks every money movement. Keeping test data in a separate environment means it can never mix with live data. It also lets you create as many organizations as you need to test different setups.
Get started
Open sandbox.polar.sh, or select Go to Sandbox in the organization switcher of the dashboard. Create a user account and an organization there, separate from your production ones. Then follow the quickstart.Test payments
The sandbox runs the full customer flow, including checkout. Pay with Stripe’s test card numbers. For a successful payment, use this card with any future expiration date and any CVC:API and SDK
Send requests tohttps://sandbox-api.polar.sh instead of https://api.polar.sh, with an access token created in the sandbox. Production tokens don’t work in the sandbox, and sandbox tokens don’t work in production.
The SDKs take an environment option:
CLI
Sign in to the sandbox and choose a sandbox organization. Commands then talk to the sandbox:Terminal
POLAR_ENVIRONMENT=sandbox. See CLI authentication.
MCP server
Connect your agent to the sandbox server,https://mcp.polar.sh/mcp/polar-sandbox, next to the production one. Prompts that say “in my Polar sandbox” use it. See MCP server.
Limitations
These apply only to the sandbox:- Customer-facing emails, such as order confirmations and renewal reminders, are only delivered to members of your organization. Manage them in Settings → Members. Sub-addressing aliases like
you+test@example.comwork.

