status:
Changing which version is active never moves a customer: subscribers stay on the version they started until they upgrade, downgrade, or you move them to another version.
Change a plan
Edit your catalog file and runnpx integrateledger-cli diff before you push. Changing any of a plan’s fields creates a new version: its name, price, intervals, credits, overage terms, or its items (allowances, limits, flags and seat prices).
npx integrateledger-cli push --yes.
- Current subscribers keep their version: its price, its grants at each renewal, and its items. The new version’s Stripe Price is used only for new subscriptions.
- To move subscribers onto the new terms, move them to the new version. To move one onto another plan, upgrade or downgrade them.
- Per-customer overrides follow the plan ID, not the version: an overage override for
proapplies to every version of it.
Prepare a draft
Put the next terms underdraft in your catalog file. The active version keeps selling while you test the draft:
ledger.catalog.json
- A draft holds every plan field except
id. A paid draft syncs to Stripe like any version, so promoting it is instant. - In Sandbox, attach the draft by naming it:
"planVersion": "2027-q1". - Publishing different draft terms replaces the draft. A draft a Sandbox customer already uses stays as a legacy version, and the new draft gets the next number.
- A draft’s own usage limits and alerts change in place, as a plan’s do: changing only those keeps the draft’s version, and its Sandbox customers follow them at once. Promoting the draft makes them the plan’s, for every customer on it.
- In a catalog file, leaving
draftout removes it. OnPOST /v1/plans/{id}and in the dashboard, leaving it out keeps the draft; send"draft": nullto remove it.
Promote it
Move the draft’s terms up to the plan, deletedraft, and push: Ledger sees the stored draft’s terms and promotes it instead of making another version. Or promote it by number or label:
npx integrateledger-cli versions promote pro 2027-q1. The promoted version becomes active and keeps its number; the version that was active becomes legacy. Promoting the active version changes nothing ("changed": false).
Roll back
Promote the older version again. New customers get its terms; customers who started the newer one keep it.Labels
versionLabel names a version, such as 2026-q4, so you can attach, promote and migrate by name. Changing only a label doesn’t make a version, and leaving versionLabel out keeps the label the version has.
A label stays with its version, so when new terms make a new version, give it a new label. The active version and the draft may swap labels. Attach, promote and the versions list take a label wherever they take a number.
Grandfathering
To start a customer on an older price, attach a legacy version by number or label, in Sandbox or Live:{ "planId": "pro", "planVersion": 1 }. They pay that version’s Stripe Price and get its credits.
Move subscribers to another version
A migration moves one version’s subscribers to another version of the plan: at each subscriber’s renewal, or now. Use it to bring existing customers onto a new price, or onto the same price with more credits.Preview
Preview the move first. Nothing moves until you run it:fromVersionandtoVersiontake a number or a label.customerscounts who moves, andbyChangesplits them by price:priceUp,priceDownorsame.customerIdslimits the move to the customers you name, up to 1,000.
Apply
Run the preview with anIdempotency-Key. Ledger moves the subscribers one at a time in the background:
status goes from draft to running to done, and progress counts each move as queued, scheduled (waiting for its renewal) or applied. The same key again returns the migration unchanged, so a retry is always safe.
At renewal or now
- At renewal (the default): the subscriber keeps the version they paid for until their period ends. Ledger swaps the Stripe price now, so the renewal bills the new version, and the renewal grants its credits and allowances.
- Now: the new version starts at once, with no proration and no charge. The subscriber gets its allowance less what they already used this period, in credits and each metered item, keeps the credits they rolled over, and its price bills from the next renewal.
- Free versions move the same way, without Stripe: at their next renewal, or now.
currentPlan.version says which version they are on.
Skips
Ledger moves every subscriber it can move safely. The rest are skipped with a reason and keep their version, so you can run a new migration for them once the reason clears:From the CLI
live in Live, or --yes. See ledger versions migrate.
The API routes: preview, run and get. Previewing and running need the Billing permission at Write; getting needs Catalog at Read.
See every version
GET /v1/plans returns each plan’s active version, its versionLabel and its draft. GET /v1/plans/{id}/versions lists every version, oldest first, with its status, label, terms and how many subscriptions are on it:
npx integrateledger-cli versions list pro.
What changes in place
Plans are versioned. Features and credit packs change in place, for everyone, from the next request:Archive a plan
Removing a plan from the file archives it, with its draft. It stops selling to new customers, and customers already on it keep it, with its Stripe Price and their Stripe subscriptions. Adding the ID back restores it.Rules
- A draft attaches in Sandbox only; Live answers
409 draft_sandbox_onlyuntil you promote it. - A
versionLabeluses letters, numbers,.,_and-, has at least one character that isn’t a digit, and is unique among the plan’s versions. A label reused for new terms answers400 invalid_request. - Run a migration with one
Idempotency-Key; a different key on a running migration answers409 idempotency_key_mismatch. - A feature’s
typeis fixed (feature_type_locked). - A credit pack’s price or credits change once its open Checkouts finish (
409 purchase_pending). - Remove a feature from current plan versions before you archive it (
feature_in_use).
Other ways. Plans can also be changed in the dashboard under Plans, or with the plan endpoints.
npx integrateledger-cli pull brings those edits back into your file.