@commet/node 9.8.0 → 9.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/index.d.mts +1021 -30
  2. package/dist/index.d.ts +1021 -30
  3. package/dist/index.js +204 -11
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +204 -11
  6. package/dist/index.mjs.map +1 -1
  7. package/docs/ai-onboarding/mcp-server.md +2 -0
  8. package/docs/api-reference/addons.md +3 -1
  9. package/docs/api-reference/credit-packs.md +3 -1
  10. package/docs/api-reference/customers.md +2 -0
  11. package/docs/api-reference/generated-webhooks.md +2 -2
  12. package/docs/api-reference/index.md +3 -3
  13. package/docs/api-reference/plans.md +488 -6
  14. package/docs/api-reference/subscriptions.md +50 -8
  15. package/docs/documentation/api-versioning.md +8 -2
  16. package/docs/documentation/cli.md +64 -49
  17. package/docs/documentation/create-api-key.md +3 -1
  18. package/docs/documentation/customers/customer-portal.md +10 -2
  19. package/docs/documentation/customers/manage-customers.md +2 -1
  20. package/docs/documentation/finance/payouts.md +11 -0
  21. package/docs/documentation/finance/supported-countries.md +5 -5
  22. package/docs/documentation/invoicing/handle-failed-payments.md +9 -9
  23. package/docs/documentation/payments/accept-one-time-payments.md +1 -1
  24. package/docs/documentation/payments/payment-orchestration.md +2 -0
  25. package/docs/documentation/payments/payment-providers.md +46 -0
  26. package/docs/documentation/payments/transactions-refunds-and-retries.md +1 -1
  27. package/docs/documentation/plans/add-ons.md +15 -4
  28. package/docs/documentation/plans/consumption-models.md +44 -9
  29. package/docs/documentation/plans/create-plans.md +5 -1
  30. package/docs/documentation/plans/credit-packs.md +61 -3
  31. package/docs/documentation/plans/one-time-payments.md +3 -3
  32. package/docs/documentation/plans/plan-groups.md +46 -10
  33. package/docs/documentation/plans/plan-versions.md +265 -0
  34. package/docs/documentation/platform/dashboard-metrics-and-events.md +40 -9
  35. package/docs/documentation/sales/connect-dub-affiliates.md +52 -0
  36. package/docs/documentation/sales/introductory-offers.md +7 -13
  37. package/docs/documentation/sales/offers.md +10 -6
  38. package/docs/documentation/sales/promo-codes.md +47 -17
  39. package/docs/documentation/sales/promotional-offers.md +6 -7
  40. package/docs/documentation/sales/regional-prices.md +38 -8
  41. package/docs/documentation/sales/trial-periods.md +67 -40
  42. package/docs/documentation/subscriptions/manage-subscriptions.md +114 -14
  43. package/docs/documentation/subscriptions/pay-in-advance.md +4 -7
  44. package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +22 -2
  45. package/docs/documentation/testing-sandbox.md +2 -0
  46. package/docs/documentation/usage/track-usage.md +23 -0
  47. package/docs/errors/addon_has_activations.md +2 -2
  48. package/docs/errors/addon_unavailable.md +22 -0
  49. package/docs/errors/credit_pack_unavailable.md +22 -0
  50. package/docs/errors/index.md +9 -2
  51. package/docs/errors/missing_regional_price.md +3 -3
  52. package/docs/errors/plan_balance_limit_reached.md +22 -0
  53. package/docs/errors/plan_experiment_not_found.md +22 -0
  54. package/docs/errors/plan_version_not_found.md +22 -0
  55. package/docs/errors/subscribers_do_not_fit.md +22 -0
  56. package/docs/errors/version_not_newer.md +22 -0
  57. package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +8 -8
  58. package/docs/knowledge-base/how-do-discounts-work.md +7 -5
  59. package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +18 -11
  60. package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +1 -1
  61. package/docs/knowledge-base/how-do-trial-periods-work.md +31 -25
  62. package/docs/knowledge-base/how-does-billing-work.md +26 -27
  63. package/docs/knowledge-base/how-does-quota-based-billing-work.md +12 -22
  64. package/docs/knowledge-base/how-does-seat-based-billing-work.md +12 -22
  65. package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +11 -8
  66. package/docs/knowledge-base/what-happens-when-a-payment-fails.md +11 -9
  67. package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +34 -29
  68. package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +1 -1
  69. package/docs/manifest.json +201 -2
  70. package/docs/platform-documentation.md +2 -0
  71. package/docs/schemas.md +134 -14
  72. package/docs/webhooks/introduction.md +17 -13
  73. package/docs/webhooks.md +66 -6
  74. package/docs/webhooks.openapi.json +1218 -876
  75. package/package.json +1 -1
@@ -7,14 +7,14 @@ A free plan has no price and no checkout. When you assign a customer to a free p
7
7
 
8
8
  ## How Free Plans Differ from Paid Plans
9
9
 
10
- | | Paid plan | Free plan |
11
- | -------------- | ----------------------------------------- | ---------------------------------------------------------- |
12
- | Price | Has a price | $0 |
13
- | Billing | Monthly, quarterly, semiannual, or yearly | No charges — usage resets monthly |
14
- | How they start | Checkout + payment | **Activated immediately** |
15
- | Invoices | Yes | Only for purchases (credits, balance, add-ons) |
16
- | Overage | Configurable per feature | **Never allowed** — usage is blocked at the included limit |
17
- | Usage resets | Every month | Every month |
10
+ | | Paid plan | Free plan |
11
+ | -------------- | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
12
+ | Price | Has a price | $0 |
13
+ | Billing | Monthly, quarterly, semiannual, or yearly | No charges — usage resets monthly |
14
+ | How they start | Checkout + payment, or a [trial without a payment method](/docs/trial-periods#start-a-trial-without-a-payment-method) | **Activated immediately** |
15
+ | Invoices | Yes | Only for purchases (credits, balance, add-ons) |
16
+ | Overage | Configurable per feature | **Never allowed** — usage is blocked at the included limit |
17
+ | Usage resets | Every month | Every month |
18
18
 
19
19
  ## Monthly Usage Resets
20
20
 
@@ -54,15 +54,16 @@ Free plan customers can purchase add-ons, credit packs, and balance top-ups —
54
54
 
55
55
  ## Changing a Free Plan's Included Balance or Credits
56
56
 
57
- If you change the included balance or credits on a free plan, the change applies at **each customer's next monthly reset**. Balances already granted for the current month don't change.
57
+ If you change the included balance or credits on a free plan, Commet publishes a new [plan version](/docs/plan-versions). New customers get the new amount at once. Existing customers keep their version's amount until you move them: a move at their next renewal grants it at that monthly reset, and a move made now adds or removes the difference today.
58
58
 
59
59
  ### Example
60
60
 
61
61
  ```
62
62
  You increase the free plan's included balance from $100 to $150.
63
63
 
64
- A customer whose billing day is the 20th keeps their current balance until the 20th.
65
- On the 20th, their monthly reset grants $150.
64
+ A new customer gets $150 from the start.
65
+ A customer whose billing day is the 20th keeps getting $100 until you move them.
66
+ Moved at their next renewal, their reset on the 20th grants $150.
66
67
  ```
67
68
 
68
69
  ## When Your Customer Upgrades to a Paid Plan
@@ -79,3 +80,9 @@ Credit from free plan: $0 (it's free)
79
80
  They pay: $99 (full month)
80
81
  Invoices, payment method, and billing info appear in their portal.
81
82
  ```
83
+
84
+ When the Pro price has a trial without a payment method and the customer never had Pro, the trial starts at once with no checkout and no charge. Without a card at the end of the trial, the subscription moves to the plan group's default plan, or is canceled when the group has none.
85
+
86
+ ## Use a Free Plan as the Default Plan
87
+
88
+ Mark a free plan as its [plan group's default plan](/docs/plan-groups#default-plan-and-signup-trial) to keep customers on it instead of canceling. A paid plan of the group that ends from the Customer Portal, a revoked payment authorization, exhausted payment retries, or a trial without a card moves to it.
@@ -3,7 +3,7 @@ title: Offers, Promo Codes, and Card Promotions
3
3
  description: Understand where commercial terms live and how each distribution channel selects them.
4
4
  ---
5
5
 
6
- An Offer owns the economic terms: trial, percentage discount, amount off, or temporary fixed price. Introductory Offers, direct Promotional Offers, Promo Codes, and Card Promotions decide how those terms reach a customer.
6
+ An Offer owns the economic terms: percentage discount, amount off, or temporary fixed price. Trials belong to the plan price. Introductory Offers, direct Promotional Offers, Promo Codes, and Card Promotions decide how those terms reach a customer.
7
7
 
8
8
  | Channel | Who selects it | Additional rule |
9
9
  | ---------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
@@ -1,46 +1,52 @@
1
1
  ---
2
2
  title: Trials
3
- description: "A free trial is an Offer phase: checkout saves the payment method without charging it, and the first charge waits until the trial ends."
3
+ description: "How a plan price trial works: checkout saves a card without charging it, or the trial starts at once without one and the first charge waits until it ends."
4
4
  ---
5
5
 
6
- A trial is a `free_trial` phase in an Offer. It delays the first charge; the Offer's application channel determines whether Commet selects it automatically or your integration assigns it directly.
6
+ A trial is a number of free days set on a plan price. Each price chooses whether its trial requires a payment method.
7
7
 
8
8
  ## What the customer experiences
9
9
 
10
- | | Regular checkout | Trial checkout |
11
- | -------------- | --------------------------- | ----------------------------------------- |
12
- | Payment | Charged immediately | Payment method saved, no immediate charge |
13
- | Primary action | Pay | Start free trial |
14
- | After checkout | Subscription becomes active | Subscription becomes `trialing` |
10
+ | | Trial with a payment method | Trial without a payment method |
11
+ | -------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------- |
12
+ | Start | Checkout saves the payment method, no charge | Starts at once, no checkout |
13
+ | Primary action | Start free trial | None until the customer adds a card |
14
+ | `checkoutUrl` | Checkout link | `null` |
15
+ | Trial ends | First charge, subscription becomes `active` | With a card, the same. Without one, moves to the plan group's default plan or is canceled |
15
16
 
16
- The trial starts after payment-method setup succeeds. If the card requires 3D Secure, the customer completes verification before the trial begins.
17
+ The trial with a payment method starts after setup succeeds. If the card requires 3D Secure, the customer completes verification before the trial begins.
17
18
 
18
19
  ## How it works
19
20
 
20
21
  ```
21
- 1. Commet resolves an Offer with a free_trial phase.
22
- 2. Checkout saves the payment method without charging it.
23
- 3. The subscription becomes trialing and records trialEndsAt.
24
- 4. At the end, Commet charges the selected price's current catalog value.
25
- 5. The next accepted Offer phase starts, if one exists.
22
+ 1. Commet reads the trial days of the selected price.
23
+ 2. With a payment method required, checkout saves it without charging.
24
+ Without one, the subscription starts trialing at once.
25
+ 3. The subscription is trialing and records trialEndsAt.
26
+ 4. At the end, Commet charges the selected price of the subscription's plan version.
27
+ Without a card, it moves to the default plan or is canceled, with no invoice.
28
+ 5. A discount from an Offer starts with the first invoice after the trial.
26
29
  ```
27
30
 
28
- > **Warning**
31
+ > **Note**
29
32
  >
30
- > The accepted Offer phases are immutable, but the selected catalog price is not. A price change during the trial changes the first paid charge.
33
+ > The subscription keeps its accepted trial days and its [plan version](/docs/plan-versions). A price change during the trial publishes a new version and doesn't change the first paid charge, unless you move the subscription.
31
34
 
32
- ## Reusable and customer-specific trials
35
+ ## Customer-specific trials
33
36
 
34
- Use a catalog Offer when the trial should have a reusable name and distribution strategy. It can be attached to a base price as introductory or passed directly with `offerId`.
37
+ Use `customTrialDays` to replace the price's trial days for one subscription, or `skipTrial: true` to start without a trial. Both combine with `offerId`.
35
38
 
36
- Use `customTrialDays` for terms exclusive to one subscription. Commet records those accepted terms as a custom Offer Application. Use `skipTrial: true` to bypass automatic introductory selection.
39
+ A customer gets one trial per plan. A customer who already had the plan, in a trial or paying, starts with the regular checkout.
37
40
 
38
41
  ## During the trial
39
42
 
40
- | Behavior | During trial |
41
- | ------------------------------------- | --------------------------------------------------------- |
42
- | Plan features | Available |
43
- | Overage | Blocked at included limits |
44
- | Credit, balance, and add-on purchases | Available after checkout captures the payment method |
45
- | Metered usage reset | Monthly on the billing day for trials longer than a month |
46
- | Included balance and credits | Granted once when the trial starts |
43
+ | Behavior | During trial |
44
+ | ------------------------------------- | ---------------------------------------------------------------------------------------- |
45
+ | Plan features | Available |
46
+ | Overage | Blocked at included limits |
47
+ | Credit, balance, and add-on purchases | Available with a saved payment method |
48
+ | Immediate plan changes | End the trial and charge the new plan; without a payment method, `409 no_payment_method` |
49
+ | Metered usage reset | Monthly on the billing day for trials longer than a month |
50
+ | Included balance and credits | Granted once when the trial starts |
51
+
52
+ See [Trial Periods](/docs/trial-periods) to configure trials.
@@ -7,28 +7,26 @@ Commet measures what a customer can consume and charges according to the plan th
7
7
 
8
8
  Those layers change at different times. Commet separates catalog changes, subscription changes, and billing recovery. Each has an explicit rule; there is no single price-based heuristic for every operation.
9
9
 
10
- | Layer | Source of truth | Typical question |
11
- | ------------ | -------------------------------------------------------- | ----------------------------------------------- |
12
- | Catalog | Plans, prices, features, Offers, and Markets | What can a new customer buy? |
13
- | Subscription | Selected plan, price, accepted Offer, period, and status | What did this customer accept? |
14
- | Consumption | Usage, seats, quota, credits, or balance | What did the customer use? |
15
- | Invoice | Line items, tax, credits, and amount due | What does the customer owe? |
16
- | Transaction | Provider-neutral payment attempt | Did the charge succeed, fail, retry, or refund? |
10
+ | Layer | Source of truth | Typical question |
11
+ | ------------ | ---------------------------------------------------------------------- | ----------------------------------------------- |
12
+ | Catalog | Plans, prices, features, Offers, and Markets | What can a new customer buy? |
13
+ | Subscription | Selected plan, plan version, price, accepted Offer, period, and status | What did this customer accept? |
14
+ | Consumption | Usage, seats, quota, credits, or balance | What did the customer use? |
15
+ | Invoice | Line items, tax, credits, and amount due | What does the customer owe? |
16
+ | Transaction | Provider-neutral payment attempt | Did the charge succeed, fail, retry, or refund? |
17
17
 
18
18
  ## Quick Reference
19
19
 
20
20
  ### When You Make Changes
21
21
 
22
- | What you do | What happens to existing customers |
23
- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
24
- | Change the selected base or variant price | Current paid period stays unchanged; renewal uses that catalog row's current value |
25
- | Lower a per-unit price (usage, seats, quota) | **Applies immediately** — this period is billed at the cheaper price |
26
- | Raise a per-unit price (usage, seats, quota) | New price applies starting next period |
27
- | Increase included units, enable a feature, or make it unlimited | **Updates the current-period snapshot** |
28
- | Reduce included units, disable a feature, or remove it | Existing snapshot remains until renewal |
29
- | Hide or soft-delete a plan | Existing subscriptions keep it; new selection is blocked |
30
- | Archive a price | New selection is blocked; subscriptions already bound to it continue |
31
- | Change a free plan's included balance/credits | Applies at each customer's next monthly reset |
22
+ | What you do | What happens to existing customers |
23
+ | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
24
+ | Change prices, features, included amounts, or credit and balance rules | Publishes a new [plan version](/docs/plan-versions). Existing subscribers keep their version, also at renewal, until you move them |
25
+ | Move subscribers to a newer version | At their next renewal, or now: features and limits change today and the price from the next renewal |
26
+ | Change a Market price | Subscribers who pay it get the new value at their next renewal |
27
+ | Hide or soft-delete a plan | Existing subscriptions keep it; new selection is blocked |
28
+ | Archive a price | New selection is blocked; subscriptions already bound to it continue |
29
+ | Change a free plan's included balance/credits | Publishes a new version. Moved customers get it from their next monthly reset |
32
30
 
33
31
  ### When Your Customer Makes Changes
34
32
 
@@ -43,20 +41,21 @@ Those layers change at different times. Commet separates catalog changes, subscr
43
41
 
44
42
  ### Automatic Events
45
43
 
46
- | What happens | What your customer experiences |
47
- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
48
- | Trial starts | They use the product, no charge. **Overage is blocked** — usage stops at included limits |
49
- | Trial ends | They're charged the current price, overage activates normally |
50
- | Renewal or retryable first-trial charge fails | Subscription becomes `past_due`; usage continues while retries run and purchases are blocked |
51
- | First-trial charge needs a payment method or customer action | Subscription remains `pending_payment` so checkout can complete |
52
- | Canceled subscription | Can be reactivated — fresh invoice at the current price, new billing period starts that day |
44
+ | What happens | What your customer experiences |
45
+ | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
46
+ | Trial starts | They use the product, no charge. **Overage is blocked** — usage stops at included limits |
47
+ | Trial ends | They're charged the price of their plan version, overage activates normally |
48
+ | Trial without a payment method ends without a card | No charge; the subscription moves to the plan group's default plan or is canceled |
49
+ | Renewal or retryable first-trial charge fails | Subscription becomes `past_due`; usage continues while retries run and purchases are blocked |
50
+ | First-trial charge needs a payment method or customer action | Subscription remains `pending_payment` so checkout can complete |
51
+ | Canceled subscription | Can be reactivated — fresh invoice at the price of the latest version of what was bought, new billing period starts that day |
53
52
 
54
53
  ## The Boundaries That Matter
55
54
 
56
55
  - Interval direction determines timing first. When the interval is unchanged, the plan group's order defines upgrade and downgrade direction, not the amount. Paid-to-free changes are always scheduled.
57
- - The subscription stores the selected price ID. Renewal reads that row's current catalog value.
58
- - Current-period feature snapshots protect already-started periods from harmful feature changes while allowing beneficial changes immediately.
59
- - Accepted Offer phases are immutable snapshots; base prices are not.
56
+ - Each subscription is pinned to one plan version. Renewal reads that version's prices, features, and rules, and only a move changes it.
57
+ - Market prices are not versioned. Renewal reads the current value of the Market price a subscription pays.
58
+ - Accepted Offer phases and published plan versions are immutable.
60
59
  - Recovery retries the same outstanding invoice instead of creating a new sale.
61
60
 
62
61
  ## Explore Each Topic
@@ -33,42 +33,32 @@ The charge is the same whether they keep the 10 tasks until the end of the perio
33
33
 
34
34
  These charges land on the next renewal invoice.
35
35
 
36
- ## What happens when you change the included amount
36
+ ## What happens when you change the included amount or the price
37
37
 
38
- ### Adding more included units
39
-
40
- More included units **benefits your customers**, so it applies right away.
38
+ Changing the included amount or the price per extra unit publishes a new [plan version](/docs/plan-versions). New customers get it at once. Existing customers keep the included amount and unit price of their version, in both directions, until you move them.
41
39
 
42
40
  ```
43
41
  You increase Plan Pro from 15 to 30 included tasks.
44
- Your customer has 25 tasks (was paying for 10 extra at $7.50/mo).
42
+ Your customer has 25 tasks (paying for 10 extra at $7.50/mo).
45
43
 
46
- After the change:
47
- → All 25 tasks are now within the 30 included
48
- → Extra charges drop to $0
49
- → Your customer sees the change immediately
44
+ Without a move: still 15 included + 10 extra = $7.50/mo
45
+ After you move them: all 25 tasks within the 30 included, $0 extra
50
46
  ```
51
47
 
52
- ### Reducing included units
53
-
54
- Fewer included units harms your customers, so it applies **at renewal**.
55
-
56
48
  ```
57
49
  You decrease Plan Pro from 30 to 15 included tasks.
58
50
  Your customer has 25 tasks (all included, $0 extra).
59
51
 
60
- This period: Still 25 within the included amount, $0 extra
61
- At renewal: 15 included + 10 extra = $7.50/mo
52
+ Without a move: still 30 included, $0 extra
53
+ After you move them: 15 included + 10 extra = $7.50/mo
62
54
  ```
63
55
 
64
- ## What happens when you change the price
65
-
66
- Quota unit prices use current-period snapshots: a lower price applies immediately, while a higher price starts next period.
56
+ | Change | New customers | Existing customers |
57
+ | ---------------------------------- | ------------------ | --------------------------------------- |
58
+ | Raise or lower the included amount | Get the new amount | Keep their version's amount until moved |
59
+ | Raise or lower the unit price | Pay the new price | Pay their version's price until moved |
67
60
 
68
- | Change | What your customer pays |
69
- | --------------- | -------------------------------------------- |
70
- | Lower the price | New lower price in the current period |
71
- | Raise the price | Old price this period; new price next period |
61
+ A move made now changes the included amount today and the price from the next renewal; a move at renewal changes both then. See [Move subscribers](/docs/plan-versions#move-subscribers).
72
62
 
73
63
  ## Quota and upgrades
74
64
 
@@ -15,42 +15,32 @@ Included: 5 seats (no charge)
15
15
  Extra: 3 seats × $25 = $75/mo
16
16
  ```
17
17
 
18
- ## What Happens When You Change Included Seats
18
+ ## What Happens When You Change Included Seats or Seat Prices
19
19
 
20
- ### Adding more included seats
21
-
22
- More included seats **benefits your customers**, so it applies right away.
20
+ Changing included seats or the extra-seat price publishes a new [plan version](/docs/plan-versions). New customers get it at once. Existing customers keep the included seats and seat price of their version, in both directions, until you move them.
23
21
 
24
22
  ```
25
23
  You increase Plan Pro from 10 to 15 included seats.
26
- Your customer has 12 seats (was paying for 2 extra at $50/mo).
24
+ Your customer has 12 seats (paying for 2 extra at $50/mo).
27
25
 
28
- After the change:
29
- → All 12 seats are now within the 15 included
30
- → Extra seat charges drop to $0
31
- → Your customer sees the change immediately
26
+ Without a move: still 10 included + 2 extra = $50/mo
27
+ After you move them: all 12 seats within the 15 included, $0 extra
32
28
  ```
33
29
 
34
- ### Reducing included seats
35
-
36
- Fewer included seats harms your customers, so it applies **at renewal**.
37
-
38
30
  ```
39
31
  You decrease Plan Pro from 15 to 10 included seats.
40
32
  Your customer has 12 seats (all included, $0 extra).
41
33
 
42
- This period: Still 12 included, $0 extra
43
- At renewal: 10 included + 2 extra = $50/mo
34
+ Without a move: still 15 included, $0 extra
35
+ After you move them: 10 included + 2 extra = $50/mo
44
36
  ```
45
37
 
46
- ## What Happens When You Change Seat Prices
47
-
48
- Seat unit prices use current-period snapshots: a lower price applies immediately, while a higher price starts next period.
38
+ | Change | New customers | Existing customers |
39
+ | ----------------------------- | ------------------ | --------------------------------------- |
40
+ | Raise or lower included seats | Get the new amount | Keep their version's amount until moved |
41
+ | Raise or lower the seat price | Pay the new price | Pay their version's price until moved |
49
42
 
50
- | Change | What your customer pays |
51
- | --------------- | -------------------------------------------- |
52
- | Lower the price | New lower price in the current period |
53
- | Raise the price | Old price this period; new price next period |
43
+ A move made now changes included seats today and the price from the next renewal; a move at renewal changes both then. A customer with more seats than the new version allows can't move until their seats fit; a plan move can lower them at renewal with `seatLimit`. See [Move subscribers](/docs/plan-versions#move-subscribers).
54
44
 
55
45
  ## Seats and Upgrades
56
46
 
@@ -5,6 +5,8 @@ description: What happens when your customer upgrades, downgrades, or switches p
5
5
 
6
6
  Your customers can switch between plans in the same plan group through the [Customer Portal](/docs/customer-portal). The group's `sortOrder` defines upgrade and downgrade direction; Commet does not infer it from price.
7
7
 
8
+ A change to another plan lands on that plan's current [version](/docs/plan-versions). The destination must sell the customer's currency in their country. When the change takes effect, a pending move to a newer version of the current plan is dropped, without a version webhook. While a downgrade is only scheduled, that move stays pending, and it applies at the renewal if the downgrade is revoked.
9
+
8
10
  ## Upgrades
9
11
 
10
12
  When the billing interval stays the same, moving to a plan with a higher `sortOrder` is an **immediate** change. The customer is charged the new plan's full price, credited for the unused days of the old effective base price, and their billing cycle restarts on the day of the change.
@@ -72,7 +74,7 @@ Deleting a plan is a **soft delete**. The plan disappears from your pricing page
72
74
 
73
75
  A canceled subscription can be **reactivated** — from the dashboard, the API, or the Customer Portal.
74
76
 
75
- Reactivation generates a fresh invoice at the plan's current price, charges the saved card, and starts a new billing period on the reactivation date. If the charge is declined, the subscription stays canceled and your customer gets a link to update their card.
77
+ Reactivation returns the subscription on the latest [version](/docs/plan-versions#reactivate-a-canceled-subscription) of what your customer bought: the plan's current version when they bought it with the plan code. It generates a fresh invoice at that version's price, charges the saved card, and starts a new billing period on the reactivation date. If the charge is declined, the subscription stays canceled and your customer gets a link to update their card.
76
78
 
77
79
  If the cancellation is only scheduled for the end of the period, your customer can undo it in the portal before it takes effect.
78
80
 
@@ -82,12 +84,12 @@ If the cancellation is only scheduled for the end of the period, your customer c
82
84
 
83
85
  ## Feature Changes
84
86
 
85
- Feature changes use the current-period subscription snapshot:
87
+ Changing a plan's features publishes a new [plan version](/docs/plan-versions). New customers get it at once; existing customers keep the features and limits of their version until you move them:
86
88
 
87
- | What you do | Existing customers |
88
- | -------------------------------------------------------------------------------------------------- | --------------------------------------- |
89
- | Add a feature, enable it, increase its included amount, make it unlimited, or lower its unit price | **Applied to the current period** |
90
- | Remove a feature, disable it, reduce its included amount, or raise its unit price | Existing snapshot remains until renewal |
89
+ | What you do | New customers | Existing customers |
90
+ | -------------------------------------------------------------------------------------------------- | ------------------- | ------------------------------ |
91
+ | Add a feature, enable it, increase its included amount, make it unlimited, or lower its unit price | Get the new version | Keep their version until moved |
92
+ | Remove a feature, disable it, reduce its included amount, or raise its unit price | Get the new version | Keep their version until moved |
91
93
 
92
94
  ### Example
93
95
 
@@ -95,11 +97,12 @@ Feature changes use the current-period subscription snapshot:
95
97
  You lower Plan Pro from 10,000 API calls to 5,000.
96
98
 
97
99
  New customers get 5,000.
98
- Existing customers keep 10,000 until renewal, then switch to 5,000.
100
+ Existing customers keep 10,000, also at renewal, until you move them.
99
101
  ```
100
102
 
101
103
  ```
102
104
  You raise Plan Pro from 5,000 API calls to 10,000.
103
105
 
104
- All customers — new and existing — get 10,000 right away.
106
+ New customers get 10,000.
107
+ Existing customers moved now get 10,000 today, without resetting their usage.
105
108
  ```
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: Payment Failures
3
- description: Usage and seats keep working while Commet retries a failed charge on days 1, 3, 5 and 7, and the subscription is canceled if every retry fails.
3
+ description: Usage and seats keep working while Commet retries a failed charge on days 1, 3, 5 and 7; if all fail, the subscription ends or moves to the default plan.
4
4
  ---
5
5
 
6
- When a payment fails, your customer's usage and seats keep working while Commet retries the charge — but new purchases are blocked. If all retries fail, their subscription is canceled.
6
+ When a payment fails, your customer's usage and seats keep working while Commet retries the charge — but new purchases are blocked. If all retries fail, their subscription is canceled, or moves to the plan group's [default plan](/docs/plan-groups#default-plan-and-signup-trial).
7
7
 
8
8
  ## What Your Customer Experiences
9
9
 
@@ -14,15 +14,15 @@ Payment fails
14
14
  → Commet retries the charge automatically
15
15
 
16
16
  All retries fail
17
- → Their subscription is canceled
18
- → Access is revoked
17
+ → Their subscription is canceled, or moves to the default plan
18
+ → Paid access is revoked
19
19
  ```
20
20
 
21
- | Stage | Access | What's happening |
22
- | --------------------- | -------------------------------- | ---------------------------------------------------------------------------------- |
23
- | Payment fails | **Usage and seats keep working** | Subscription moves to `past_due`, invoice becomes `outstanding`, retries scheduled |
24
- | During grace period | **Usage and seats keep working** | Automatic retries on day 1, day 3, day 5, and day 7; usage keeps accruing as debt |
25
- | All retries exhausted | Revoked | Subscription canceled, invoice marked `uncollectible` |
21
+ | Stage | Access | What's happening |
22
+ | --------------------- | --------------------------------------- | ---------------------------------------------------------------------------------- |
23
+ | Payment fails | **Usage and seats keep working** | Subscription moves to `past_due`, invoice becomes `outstanding`, retries scheduled |
24
+ | During grace period | **Usage and seats keep working** | Automatic retries on day 1, day 3, day 5, and day 7; usage keeps accruing as debt |
25
+ | All retries exhausted | Revoked, or limited to the default plan | Subscription canceled or moved to the default plan, invoice marked `uncollectible` |
26
26
 
27
27
  > **Warning**
28
28
  >
@@ -31,3 +31,5 @@ All retries fail
31
31
  ## First Charge After a Trial
32
32
 
33
33
  A retryable provider decline on the first paid invoice follows the same `past_due` dunning schedule. If the charge cannot start because the payment method is missing or the customer must take an action, the subscription remains `pending_payment` and checkout is used to complete payment instead of starting dunning.
34
+
35
+ A [trial without a payment method](/docs/trial-periods#start-a-trial-without-a-payment-method) that ends without a card is not charged. It moves to the default plan or is canceled, with no invoice.
@@ -1,67 +1,72 @@
1
1
  ---
2
2
  title: Pricing Changes
3
- description: New customers pay new prices at once; existing customers get decreases now and increases at renewal, and base plan prices always change at renewal.
3
+ description: New customers pay a new price at once; existing subscribers keep the prices of their plan version until you move them, except Market prices.
4
4
  ---
5
5
 
6
- When you change a price, **new customers pay the new price immediately**. For existing customers, the rule is asymmetric: **decreases apply immediately, increases apply at renewal**.
6
+ When you change a price, Commet publishes a new [version](/docs/plan-versions) of the plan. **New customers pay the new price immediately.** **Existing subscribers keep the prices of their version**, also at renewal, whether you raise or lower them, until you move them to the new version.
7
7
 
8
- The exception is a plan's selected base price or variant, which changes at renewal in both directions.
8
+ The rule is the same for every price of the plan: base and variant prices, overage, seats, quota, and the add-ons and credit packs it sells. The exception is a [Market](/docs/regional-prices#create-a-market) price, which is not versioned.
9
9
 
10
10
  ## Base and Variant Prices
11
11
 
12
- The subscription keeps the selected price ID. Changes to that catalog row take effect **at renewal**, whether you raise or lower it — the current period is already paid. If the selected row is a regional variant, its own current market price is used.
12
+ The subscription keeps the selected price ID and reads its amount from the subscription's plan version.
13
13
 
14
- | | New customers | Existing customers |
15
- | ------------------- | ------------- | -------------------------------- |
16
- | You raise the price | Pay new price | Keep current price until renewal |
17
- | You lower the price | Pay new price | Keep current price until renewal |
14
+ | | New customers | Existing subscribers |
15
+ | ------------------- | ------------- | -------------------------------------- |
16
+ | You raise the price | Pay new price | Keep their version's price until moved |
17
+ | You lower the price | Pay new price | Keep their version's price until moved |
18
18
 
19
19
  ### Example
20
20
 
21
21
  ```
22
- You change Plan Pro from $99/mo to $129/mo.
22
+ You change Plan Pro from $99/mo to $129/mo. That publishes version 2.
23
23
 
24
- A new customer signs up today → pays $129/mo.
25
- An existing customer on day 15 of their month → keeps paying $99/mo.
26
- That same customer at renewal → starts paying $129/mo.
24
+ A new customer signs up today → pays $129/mo on version 2.
25
+ An existing customer on version 1 → keeps paying $99/mo, also at renewal.
26
+ You move them at their next renewal → they pay $129/mo from then on.
27
27
  ```
28
28
 
29
29
  > **Note**
30
30
  >
31
31
  > Archiving a price prevents new selection but does not break subscriptions already bound to it. Accepted Offer phases remain snapshotted separately.
32
32
 
33
- ## Usage-Based Pricing (Overage)
33
+ ## Usage, Seat, and Quota Prices
34
34
 
35
- Per-unit price changes are asymmetric: a **decrease applies immediately** to the current period, an **increase applies at renewal**.
35
+ Per-unit prices follow the same rule, in both directions: existing subscribers keep their version's overage, seat, and quota prices until you move them.
36
36
 
37
37
  ### Example
38
38
 
39
39
  ```
40
40
  You raise the overage price from $0.002/call to $0.005/call.
41
- Your customer has already used 5,000 extra calls this month.
42
41
 
43
- This month's invoice → still charged at $0.002
44
- Next month's invoice → charged at $0.005
42
+ A new customer → charged $0.005 per extra call
43
+ An existing customer → still charged $0.002 per extra call until you move them
45
44
 
46
- You lower the overage price from $0.005/call to $0.002/call.
45
+ You lower the extra seat price from $35/seat to $25/seat.
47
46
 
48
- This month's invoice → charged at $0.002 — the cheaper price applies immediately
47
+ A new customer → $25 per extra seat
48
+ An existing customer → $35 per extra seat until you move them
49
49
  ```
50
50
 
51
- ## Seat Pricing
51
+ ## Market Prices
52
52
 
53
- Per-seat prices follow the same asymmetry: cheaper applies now, more expensive applies at renewal.
53
+ Market prices apply to every version. When you edit a Market price, new customers get it at once, and subscribers who pay it get it at their next renewal, whether you raise or lower it. A move to another version keeps a subscriber's Market price.
54
54
 
55
- ### Example
55
+ ## Unpaid Checkouts and Reactivations
56
+
57
+ A checkout that hasn't been paid isn't a subscriber yet, so it charges the latest version of what was requested. Its link, and a repeated `POST /subscriptions` that returns the same checkout, charge the new price, unless the checkout was created with `planVersionId`. A canceled subscription that is reactivated also returns on the latest version of what was bought. See [Unpaid checkouts](/docs/plan-versions#unpaid-checkouts).
58
+
59
+ ```
60
+ You raise Plan Pro from $99/mo to $129/mo while a checkout for Pro is still unpaid.
56
61
 
62
+ The customer opens the same link → pays $129/mo on version 2.
63
+ A canceled customer who bought Pro by its plan code on version 1 reactivates → pays $129/mo on version 2.
57
64
  ```
58
- You raise the extra seat price from $25/seat to $35/seat.
59
- Your customer has 3 extra seats.
60
65
 
61
- This month → 3 × $25 = $75
62
- Next month → 3 × $35 = $105
66
+ ## Moving Existing Subscribers
63
67
 
64
- You lower it from $35/seat to $25/seat.
68
+ When you publish a draft in the dashboard, choose whether subscribers of earlier versions stay on their version, move at their next renewal, or move now. Later, move them from the plan's **Subscribers** tab. Through the API, move them with `POST /subscriptions/{id}/change-version` or `POST /plans/{id}/moves`. Commet never moves subscribers on its own.
65
69
 
66
- This month → 3 × $25 = $75 — applied immediately
67
- ```
70
+ A move at the next renewal changes nothing before it. A subscription that ends or changes to another plan by that renewal never moves.
71
+
72
+ A move never prorates or refunds, and it never changes a subscription's currency. A move made now changes features and limits today and the price from the next renewal. See [Move subscribers](/docs/plan-versions#move-subscribers).
@@ -75,7 +75,7 @@ Customer upgrades from Starter ($29/mo) to Pro ($99/mo) on day 15:
75
75
  - **Balance top-up** — when your customer adds funds to their balance.
76
76
  - **Add-on activation** — when your customer activates an add-on mid-cycle; the first charge is prorated.
77
77
  - **One-time payment** — when your customer pays a payment link or a standalone charge, outside any subscription.
78
- - **Reactivation** — when a canceled subscription is reactivated; a fresh invoice at the plan's current price, starting a new billing period.
78
+ - **Reactivation** — when a canceled subscription is reactivated; a fresh invoice at the price of the latest [plan version](/docs/plan-versions#reactivate-a-canceled-subscription) of what was bought, starting a new billing period.
79
79
  - **Adjustment** — when you manually create a correction, refund, or one-off charge from the dashboard.
80
80
 
81
81
  ## Invoice Line Types