Starter for the editor, and Campaigns Pro for email, on one invoice.Sell each product line with its own ladder of plans. A plan’s
group names its product line: a customer holds one base plan in each group, so they can be on Starter for your editor and on Campaigns Pro at the same time, and move up each ladder on its own. Every paid plan the customer holds rides on one Stripe bill, so they get one invoice.
The catalog
Plans without agroup are in the default group. Give each other product line a group of its own:
GET /v1/plans lists each plan with its group. Starter and Campaigns Starter can be held together; Starter and Pro are two rungs of one ladder.
Attach a second product line
Attach the first plan as usual. To add a paid plan in another group, attach it with anIdempotency-Key, as for an add-on: it joins the customer’s Stripe bill of the same interval, prorated for the rest of the period.
Response
status reads as for an add-on: applied once the prorated invoice is paid, pending_payment with a paymentUrl when the card needs the customer, processing while Stripe settles, and closed when it was never paid.
How it bills
- One invoice. A paid plan in another group is an item on the customer’s existing Stripe subscription of its interval. From the next renewal, one invoice carries every product line.
- Prorated now. Attaching charges the plan’s price for the unused share of the period. Its credits and allowances are prorated the same way, rounded down, then granted in full at each renewal.
- Free plans stay free. A free plan in another group runs in Ledger and renews on its own period. Paying for a plan in one group ends free plans in that group only, so a customer on the free editor plan keeps it while they buy Campaigns Pro.
- First paid plan. When the customer holds only free plans, a paid plan in any group goes through Checkout or the saved card, as a first paid plan does.
How it counts in check and track
check, track and reservations combine every plan the customer holds, in every group, with their add-ons:
- Allowances add up. Included units of the same feature across plans add together.
- Unlimited wins. An unlimited item on any plan makes the feature unlimited.
- Booleans. A feature is on when any plan includes it.
- Overage. A metered feature’s overage is priced by the newest plan the customer holds that prices it, in the order the plans were attached. Units already recorded keep the rate they were recorded at. Credit overage is priced by the current plan.
currentPlan in GET /v1/customers is the default group’s plan, and its bill sets the billing period, balance alerts and entity allowances.
Upgrade within a group
Each product line moves on its own. Upgrade tocampaigns_pro and Ledger replaces the customer’s plan in the campaigns group and leaves Starter as it is. A plan riding on another product line’s bill moves to the new Stripe Price in one prorated change, with the period kept, and the answer has the itemChangeId and status of an attach. Upgrades and downgrades covers both directions.
Rules
- One base plan per group. Attaching a plan into a group the customer already holds returns
409 subscription_exists: upgrade or downgrade within the group instead. - Upgrades and downgrades stay in a group. A target in a group the customer holds nothing in returns
400 plan_not_in_group: attach it instead. - One bill interval. Paid product lines share the bill of one interval. A paid plan at another interval than the customer’s paid bill returns
409 plan_interval_differs. - Downgrades of a second product line. A plan riding on another product line’s bill moves up by upgrade (
409 downgrade_unavailable_for_item). - An
Idempotency-Keygoes with a paid plan joining an existing bill (400 idempotency_key_required). - Add-ons have no group (
add_on_has_no_group): an add-on joins the bill of its interval beside every product line.
Related
- Plans per workspace or user: a plan on each entity, on the same invoice.
- Recurring add-ons: extras beside a base plan.
- Plans and items: every plan field.