Skip to main content
Why now? Production is a separate environment with its own organization, data and tokens. Nothing you built in the sandbox carries over, and you can’t take payments until your account passes the account review.
In this step you’ll set up the production organization and switch your application to it.

Create the production organization

Sandbox and production are two separate environments, each with its own accounts. Sign up at polar.sh/start and create your production organization.

Recreate your catalog

Your production organization starts with an empty catalog. Set it up again, and expect every product, meter and benefit to get a new ID.

With Pricing as Code Beta

A billing config doesn’t record which organization it belongs to, so the file you built in sandbox works for production as is. Switch to the production organization, turn Pricing as Code on and publish:
Your code refers to the catalog by external ID, such as pro and ai_tokens, and those are the same in both organizations, so it needs no changes. From then on, ship every pricing change from the same file to sandbox first, then to production once you’ve tested it. Pass --org to polar config draft and polar config publish to pick the organization, or publish from your deploy pipeline with Run it in CI. Discounts and Checkout Links aren’t part of a billing config. Recreate them under Catalog → Discounts and Catalog → Checkout Links.

Without Pricing as Code

Recreate the catalog in the production organization the way you created it in step 2, then set POLAR_PRODUCT_ID and POLAR_METER_ID in your production environment to the new IDs.
  • Switch to the production organization
  • Recreate meters under Catalog → Meters and benefits under Catalog → Benefits
  • Recreate products under Catalog, then Checkout Links and discounts under Catalog → Checkout Links and Catalog → Discounts

Create a production access token

Sandbox tokens don’t work in production. Create a new access token in the production organization and store it in your production secrets, not in code.
  • Open Settings → Access Tokens
  • Click Create token
  • Enter a Name, choose an Expiration and select the Scopes your app uses
  • Copy the token
Not available from the MCP server.

Point your client at production

Drop environment: "sandbox", or set it to "production", and use https://api.polar.sh:
Keep the sandbox for development. An environment variable that selects sandbox or production per deployment works well.

Add a webhook endpoint

polar webhook listen only forwards to your machine. In production, Polar delivers webhooks to a public URL. Add an endpoint for your handler, subscribe it to the events you handle, such as customer.state_changed, and set its secret as POLAR_WEBHOOK_SECRET in production.
  • Open Settings → Webhooks
  • Click Add Endpoint
  • Enter the URL, such as https://example.com/api/webhooks
  • Set Format to Raw and API Version to 2026-10
  • Select customer.state_changed and any other events you handle
  • Click Create
  • Open the endpoint and click Copy Secret
See Webhook endpoints for the options and Delivery for retries.

Submit your account for review

Your organization can’t accept payments until it passes the account review. Open Finance → Account in the production dashboard and complete the checklist:
  • At least one product that isn’t archived
  • A checkout setup: a Checkout Link that delivers something, or an access token (a webhook endpoint is recommended)
  • Identity verification of the organization owner
  • A payout account
  • A product description, a public website and a verified support email
Then click Submit for review. See the review checklist for each item and common fixes, and Account reviews for what happens next.
Dashboard only. The account review isn’t available from the API, CLI or MCP server.

Verify it works

  • Finance → Account shows your account as submitted or approved.
  • After approval, a real purchase through your production checkout creates an order under Sales → Orders, and your handler receives customer.state_changed from the production endpoint. Refund the purchase from the order if it was a test.

Learn more

Next: Customer Portal

Let customers change plans, update payment methods and download invoices.