Skip to main content
Unit-based pricing lets a customer buy a quantity of something and pay for it up front: devices, licenses, gigabytes, servers. You name the unit and set the rate. The buyer picks how many at checkout. Use it for per-device licensing, prepaid capacity, or any quantity that isn’t a person and isn’t measured after the fact. For people, use seat-based pricing. For usage you record, use metered pricing. See Choosing a quantity-based model. The code examples use API version 2026-10 and the sandbox.

How it works

The buyer chooses a quantity at checkout and pays for it immediately. The price comes from your tiers and the quantity. On a subscription, the quantity carries across billing periods and can be changed later. Polar prorates the difference. On a one-time purchase, the quantity is fixed at the moment of sale.

Create a unit-based product

1

Create a product

Open Catalog and click New Product. Set the name, description and images as usual.
2

Choose the price type

Under Pricing, pick One-time purchase or Recurring subscription (with its Every interval), then choose Units as the price type.
3

Name the unit

Under Label, set the singular and plural nouns, such as device and devices. They appear at checkout, in the Customer Portal and on invoices. Left empty, Polar uses “unit” and “units”.
4

Choose a tiering model

Under Tiering model, pick how the quantity is priced:A tier has an upper bound and a rate. The bound is inclusive, and each tier starts where the previous one ended. Leave the last bound empty for an open-ended top range.With tiers of up to 10 units at $10 and beyond at $8, 14 units cost:
  • Volume: 14 × $8 = $112. Every unit gets the lower rate.
  • Graduated: 10 × $10 + 4 × $8 = $132. Each range keeps its own rate.
5

Set a minimum and maximum

The fields use your unit noun, like Minimum devices and Maximum devices. The minimum is the smallest quantity a customer can buy and defaults to 1. The maximum caps the quantity. Leave it empty for no limit.
6

Add benefits

Attach the benefits the customer receives on purchase.
In the API, a unit-based price has amount_type: "unit_based", tiers with a type of volume or graduated, and an optional minimum_units. Rates are whole cents. unit_label holds the nouns per locale:
The CLI takes the same prices JSON: polar products create --name "Device license" --recurring-interval month --prices '[…]'.

Combining with other prices

Add a fixed price next to the unit-based one for a base fee plus a per-unit rate. Metered prices can sit on top of both, so a subscription can charge a flat monthly amount, a rate per device and usage on a meter. See Combining prices.

Benefits

The customer receives each benefit once, whatever the quantity. Buying 40 devices grants one license key, not 40. For one grant per person, use seat-based pricing.

Change the quantity

On a subscription, update units. The dashboard’s Update Subscription dialog has no units option, so use the API, CLI or your agent:
Customers can change it themselves in the Customer Portal once you turn on Settings → Customer Portal → Enable subscription unit changes. It’s off by default. To sell a quantity at checkout, pass units (or min_units and max_units) when you create a Checkout Session. To charge a saved card for a quantity of a one-time unit-based product, create a draft order with units. See Off-session charges.

Proration

When the quantity changes mid-period, Polar applies your proration behavior:
  • More units charges for the added units over the rest of the period.
  • Fewer units credits the removed units for the unused part of the period.
The full amount applies from the next billing period.

Limitations

  • The quantity is a whole number. For fractional quantities, use metered pricing.
  • Tier rates are whole cents.
  • A product has at most one unit-based price per currency.
  • Unit-based can’t be combined with seat-based or pay-what-you-want prices.
  • A one-time purchase can’t change quantity after the sale. The customer buys again.

From the CLI or your agent

Learn more