Pricing, versioned

Every change is a version. Customers stay on the one they bought.

A row of black folders fanned out, labelled Version 9 to Version 12, each with the change it made

Declare your pricing, and let agents change it

Meters, benefits, products and prices are declared in one config file next to your code. You describe the catalog you want, and Polar works out what has to change.

>Raise Pro to $39 and include priority support
  1. Read polar.config.ts
  2. Edit polar.config.ts+4-2
  3. Run polar config validate1 product changed, 1 benefit added
Pro goes to $39 and gains priority support. Customers on v2 keep paying $29. Publish it as v3?
The file is the catalog
It states what you sell, not the steps to get there.
Skills included
Agent skills teach your coding agent to write, validate and publish it.
Printed sheets of a polar.config.ts file and the output of polar config publish, lying on a dark surface

Validate, draft, publish

Three commands take a change from the file to your customers. You read the difference before anything goes live.

  1. $polar config validate
    ~products.pro
    price $29.00 → $39.00
    benefits + priority_support
    +benefits.priority_support
    $
    Nothing changed
    ValidateCompares the file with what is live and lists every change. It changes nothing.
  2. $polar config draft
    Products, benefits, meters and settings are saved to the draft catalog.
    Run polar config publish to make it live.
    $
    v3 saved as a draft
    DraftSaves the changes to a draft. Nothing a customer sees changes yet.
  3. $polar config publish
    v3 is live for Acme. Existing customers stay on their current versions.
    $
    v3 is live
    PublishMakes the draft the current version. New checkouts sell it from then on.

Every change, field by field

A few edited lines become a version anyone can read. Old values sit beside the new ones.

polar.config.ts+4-2
12 benefits: ({ flag, custom }) => ({
13 api_access: flag('API access'),
14+ priority_support: custom('Priority support')
15+ .note('Replies within four hours'),
16 }),
17 products: ({ product, fixed }) => ({
18 pro: product('Pro')
19- .prices(fixed().amount(usd(29)))
20+ .prices(fixed().amount(usd(39)))
21 .recurring('monthly')
22- .grants(['api_access']),
23+ .grants(['api_access', 'priority_support']),
24 }),
Version 3Current
1 changed, 1 added

Products

Pro

Changed

Price

$29.00

→

$39.00

Benefits

Priority support

Benefits

Priority support

Added

Type

Custom

Note

Replies within four hours

Customers stay on what they bought

Publishing never moves a subscriber. Each version keeps serving the customers who bought from it, at the price they agreed to.

V1$19RENEWS AT $19V2$29RENEWS AT $29V3$39SELLING NOWNEW CHECKOUTRENEWAL

Make your next pricing change a version

Config files are in early beta. Start in sandbox.