Skip to main content
Acme on Enterprise: $2,500 a month, 200,000 credits, 100,000 messages and then 1 cent each, no audit logs.
Custom plans turn a negotiated deal into billing in one call. Attach a plan with customize, and Ledger makes that customer’s own version of it, with their price, credits, items or overage, and starts it. Check, track, reservations, renewals and invoices treat it as any version of the plan, and the customer sees the plan’s name on Checkout and every invoice.

Attach with custom terms

The reply is an ordinary attach: a Checkout URL, or active when Ledger charged the saved card. Everything else is the plan’s: its name, interval, the items you don’t name, its group and its controls.

How it behaves

  • Billed and granted their terms, every period, under the plan’s name: Checkout and invoices show “Enterprise”.
  • One version per deal. The same customize for the same customer reuses their custom version.
  • Stripe stays tidy. A customize that keeps the plan’s price reuses the plan’s Stripe Price, so a credits-only deal creates nothing in Stripe. A new price gets a Stripe Price of its own under the plan’s Product.
  • Visible on the customer. GET /v1/customers shows currentPlan.custom: true and basePlan, the catalog version it was made from.
  • Private. It stays out of the catalog, GET /v1/plans and the plan’s versions, and migrations of the plan leave it alone.

Plans only for custom deals

Give a plan customOnly: true for an Enterprise plan that only sales sells: attaching it needs customize, and a plain attach answers 422 plan_requires_customize before anything reaches Stripe. It applies to every version of the plan, in place.
ledger.catalog.json

Change a customer’s terms

Renegotiate in place with POST /v1/customers/subscriptions/{id}/plan: the new customize is patched over the subscription’s current terms.
Response
  • timing: "at_renewal": nothing changes now, and the next period bills and grants the new terms (status: "scheduled").
  • timing: "now": the new terms start at once, with no proration and no charge (status: "applied"). The period’s allowance is the new one less what it already used, and the renewal bills the new price.
Take the subscription’s id from List customer subscriptions.

Rules

  • Plan rules apply. The custom terms must pass the same rules as a plan in the catalog: 400 invalid_customize, with each problem under customize. in issues.
  • Take a feature away with removeItems, not with included: 0.
  • One change at a time. A subscription with another plan change open answers 409 pending_change; one that’s trialing, waiting on a payment or billed another way answers 409 subscription_not_movable.
  • customOnly is policy. It applies to every version in place, with no new version.