> ## Documentation Index
> Fetch the complete documentation index at: https://docs.integrateledger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lifetime plans

> Sell lifetime deals for one payment, with credits, allowances and features the customer keeps for good.

> **Lifetime deal:** \$499 once. 10,000 credits, 500 images and SSO, for good.

Sell lifetime deals: one payment, and the customer keeps the plan's credits, allowances and features for good.

A lifetime plan, or one-off plan, is paid once. Its `monthlyCredits` and metered items are granted at purchase and never expire. There's no Stripe subscription to manage: one payment covers everything. To sell credits once beside a recurring plan, use a [credit pack](https://docs.integrateledger.com/pricing/credit-packs.md) instead.

## The catalog

```ts ledger.config.ts theme={"system"}
import { defineCatalog, feature, plan } from "integrateledger-cli";

export default defineCatalog({
	features: [
		feature({ id: "generate_image", name: "Generate an image", creditCost: 1 }),
		feature({ id: "images", name: "HD images", type: "metered" }),
		feature({ id: "sso", name: "SSO", type: "boolean" }),
	],
	plans: [
		plan({
			id: "lifetime",
			name: "Lifetime",
			billingInterval: "one_off",
			monthlyCredits: 10000,
			priceCents: 49900,
			items: [{ featureId: "sso" }, { featureId: "images", included: 500 }],
		}),
	],
	creditPacks: [],
});
```

```json ledger.catalog.json theme={"system"}
{
  "schemaVersion": 1,
  "features": [
    { "id": "generate_image", "name": "Generate an image", "creditCost": 1 },
    { "id": "images", "name": "HD images", "type": "metered" },
    { "id": "sso", "name": "SSO", "type": "boolean" }
  ],
  "plans": [
    { "id": "lifetime", "name": "Lifetime", "billingInterval": "one_off",
      "monthlyCredits": 10000, "priceCents": 49900,
      "items": [{ "featureId": "sso" }, { "featureId": "images", "included": 500 }] }
  ],
  "addOns": []
}
```

`resetInterval` is `never`: the default for a one-off plan, and only for it. `monthlyCredits` is granted once, despite its name.

## Selling it

Attach it like any paid plan. With a saved card, Ledger charges it at once on one invoice and the response is `{ "status": "active" }`. Without one, attach returns a Checkout URL: Checkout takes one payment at the plan's own one-time Stripe Price, and the plan is active once it's paid. Either way the customer gets a paid invoice. [Checkout and attach](https://docs.integrateledger.com/billing/checkout-and-attach.md) has the flow.

## What check and track return

The same as on a recurring plan, except nothing resets: a metered feature's `balance.included` is the 500 granted at purchase, `remaining` only goes down, and `resetsAt` is `null`. Boolean and held items apply for as long as the customer holds the plan. When the 500 images are used, `check` answers `reason: "limit_reached"`.

## How it spends

The lifetime credits never expire. [Spend order](https://docs.integrateledger.com/concepts/balances.md#spend-order-for-credits) says where they sit among a customer's other credits.

## Rules

* **A price above 0.** A one-off plan is paid once, so `priceCents: 0` is refused.
* **Paid in full up front.** Overage and seat prices go on recurring plans; a one-off plan refuses them (`one_off_plan_cannot_bill_later`).
* **Bought once.** Buying the same lifetime plan again returns `409 plan_already_attached`. Sell more credits as a [credit pack](https://docs.integrateledger.com/pricing/credit-packs.md).
* **Move to a recurring plan with `replaceLifetime: true`.** A lifetime plan has no subscription to upgrade, downgrade or cancel, and attaching another plan over it without the flag returns `409 lifetime_plan_active`. With it: once the new plan is paid for, the lifetime plan ends with its remaining credits, with no refund.
* **Refunds.** A full refund of the payment ends the plan and its credits, as for a credit pack. See [Renewals and lifecycle](https://docs.integrateledger.com/billing/renewals-and-lifecycle.md).

## Related

* [Credit packs](https://docs.integrateledger.com/pricing/credit-packs.md): a one-time top-up beside a plan.
* [Annual plans](https://docs.integrateledger.com/pricing/annual.md): paid once a year, renewed.
* [Feature flags](https://docs.integrateledger.com/pricing/feature-flags.md): the features a lifetime plan turns on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.