Skip to main content
A discount lowers the price of a one-time purchase or a subscription. It’s either a percentage or a fixed amount, can carry a code customers type at checkout, and can run once, for a number of months or forever. The code examples use API version 2026-10 and the sandbox.

Types

A fixed-amount discount only applies in the currencies it has an amount for.

Duration

For subscriptions, duration sets how many billing cycles the discount covers. One-time purchases are discounted once either way.

Create a discount

  • Open Catalog → Discounts
  • Click New Discount
  • Enter a Name and, optionally, a Code
  • Choose Percentage discount and enter 20
  • Set the duration to For several months and Number of months to 3
  • Set Maximum redemptions per customer to 1
  • Click Create Discount

Fields

The product restriction is checked when the discount is redeemed, at checkout or when it’s applied to a subscription. Once on a subscription, the discount stays through plan changes, including to products outside the restriction, so a change never raises the price unexpectedly. Once covers the first billing cycle after it’s applied, so its value follows that cycle’s length: after a switch from monthly to yearly, it covers a yearly charge.

Per-customer limits

A per-customer limit caps how many times one buyer can redeem a code, while the code stays open to everyone else. Share it publicly, set the limit to 1, and each buyer gets one redemption. Polar matches a customer on any one of three signals:
  • The customer ID or external customer ID on the checkout or subscription.
  • The email address, ignoring plus-aliases: jane+polar@example.com matches jane@example.com.
  • The payment card, so a new email on the same card still counts. Free products and 100% forever discounts never ask for a card, so those match on ID and email only.
Fully refunding an order frees the customer’s slot, so they can use the code again. A partial refund doesn’t. Refunds Polar issues to prevent chargebacks don’t free the slot either.

Apply a discount

  • Checkout Link. Preset a discount on a Checkout Link and it’s applied when customers land on checkout, no code needed.
  • Query parameter. Add ?discount_code=LAUNCH to a Checkout Link URL to prefill the code. The customer still sees it in the form.
  • Checkout Session. Pass discount_id when you create a Checkout Session.
  • Subscription. Set discount_id on an existing subscription. It applies from the next billing cycle. Set it to null to remove the discount. See Manage subscriptions.
To apply a discount to a subscription in the dashboard:
  • Open Sales → Subscriptions and select the subscription
  • Click Update Subscription
  • On the Plan tab, pick the Discount, or remove the current one
  • Click Update Subscription
From the CLI: polar subscriptions update <subscription_id> --discount-id <discount_id>. On subscriptions with metered prices, a fixed-amount discount isn’t applied to separate meter cycle orders. A percentage discount is.

Edit a discount

You can rename a discount and change its code, restrictions and limits at any time. Once it has been redeemed (redemptions_count above 0), its value and length are locked: basis_points, amounts (or amount and currency) and duration_in_months can’t change. The dashboard also locks the duration after creation. To offer different terms, create a new discount.

From the CLI or your agent

Learn more