Free: 50 messages a month and 1 project. Pro: 1,000 messages and 10 projects for $20 a month.A free plan lets every new customer start using your product the moment they sign up: no card, no Checkout, no Stripe objects. Ledger enforces the allowance on every request, resets it each month, and names the customer’s plan when they reach the limit, so your upgrade offer lands at the right moment. A free plan is a plan with
priceCents: 0 and nothing billed later: no overage price and no seat price. Attaching it starts it at once, without Checkout, and Ledger renews it every month from the moment it started, at the same time of day: a plan attached on the 14th resets on the 14th.
The catalog
monthlyCredits: 50 with a credits feature, as in Credits.
Start it on signup
Attach it when you create the customer:{ "subscriptionId": 1, "status": "active" }, and the allowance is available straight away. In Live, free plans work as soon as you have a Live key, before you go to production. Checkout and attach covers attach in full.
What check and track return
Acheck on messages for a Free customer who has sent 12 this month:
Response
check answers allowed: false with reason: "limit_reached" and plan: { "id": "free", "name": "Free", "status": "active" }, so the upgrade offer can name the plan. A track past the allowance is refused with 409 limit_reached and charges nothing. Metered allowances and Limits have the full responses.
Move to a paid plan
Attach the paid plan and send the customer to Checkout, as in Checkout and attach. They keep the free plan and its allowance while Checkout is open. When Stripe confirms the payment, the free plan ends, its unspent credits and allowances expire, and the paid allowance begins. Credit pack credits stay. If they leave Checkout unpaid, they stay on Free. When a paid plan ends, attach the free plan again to give the customer their allowance back. Until a plan is attached, metered, held and boolean features answerreason: "no_plan", and credits features spend pack and adjustment credits (Customers without a plan).
Rules
- Stripe-free. A free plan creates no Stripe product, price, subscription or invoice.
- Free plans renew monthly. Leave
billingIntervalout:"year"on a $0 plan is refused. A one-off (lifetime) plan needs a price. - A $0 plan that bills later is a paid plan. One with an overage price is pay as you go, and one with a seat price is per-seat. Both bill through Stripe and collect a card.
- Each period starts fresh. Unused messages end with the period, and the next period, starting on the same day and time of the next month, begins with a fresh 50. Held counts such as projects carry across periods.
Related
- Metered allowances: per-feature allowances on any plan.
- Pay as you go: a $0 plan that bills every use.
- Upgrades and downgrades: moving between paid plans.