@commet/node 9.0.0 → 9.1.1
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.
- package/README.md +2 -0
- package/dist/index.d.mts +332 -110
- package/dist/index.d.ts +332 -110
- package/dist/index.js +162 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -40
- package/dist/index.mjs.map +1 -1
- package/docs/README.md +20 -0
- package/docs/ai-onboarding/ai-onboarding.md +90 -0
- package/docs/ai-onboarding/billing-best-practices-skill.md +29 -0
- package/docs/ai-onboarding/commet-skill.md +58 -0
- package/docs/ai-onboarding/mcp-server.md +207 -0
- package/docs/ai-onboarding/meta.json +17 -0
- package/docs/ai-onboarding/pricing-models-skill.md +29 -0
- package/docs/ai-onboarding/subscription-patterns-skill.md +29 -0
- package/docs/api-reference/addons.md +127 -0
- package/docs/api-reference/api-keys.md +57 -0
- package/docs/api-reference/credit-packs.md +80 -0
- package/docs/api-reference/customers.md +274 -0
- package/docs/api-reference/feature-access.md +36 -0
- package/docs/api-reference/features.md +94 -0
- package/docs/api-reference/generated-webhooks.md +120 -0
- package/docs/api-reference/index.md +31 -0
- package/docs/api-reference/invoices.md +123 -0
- package/docs/api-reference/markets.md +92 -0
- package/docs/api-reference/meta.json +7 -0
- package/docs/api-reference/offers.md +104 -0
- package/docs/api-reference/payments.md +106 -0
- package/docs/api-reference/payouts.md +66 -0
- package/docs/api-reference/plan-groups.md +157 -0
- package/docs/api-reference/plans.md +358 -0
- package/docs/api-reference/portal.md +30 -0
- package/docs/api-reference/promo-codes.md +86 -0
- package/docs/api-reference/provisioning.md +19 -0
- package/docs/api-reference/quota.md +120 -0
- package/docs/api-reference/seats.md +123 -0
- package/docs/api-reference/subscriptions.md +387 -0
- package/docs/api-reference/test-clock.md +59 -0
- package/docs/api-reference/transactions.md +78 -0
- package/docs/api-reference/usage.md +83 -0
- package/docs/documentation/api-versioning.md +100 -0
- package/docs/documentation/better-auth.md +361 -0
- package/docs/documentation/choose-a-billing-model.md +38 -0
- package/docs/documentation/cli.md +1024 -0
- package/docs/documentation/create-api-key.md +47 -0
- package/docs/documentation/customers/customer-credits.md +48 -0
- package/docs/documentation/customers/customer-portal.md +107 -0
- package/docs/documentation/customers/manage-customers.md +346 -0
- package/docs/documentation/customers/meta.json +5 -0
- package/docs/documentation/error-handling.md +239 -0
- package/docs/documentation/examples.md +37 -0
- package/docs/documentation/finance/acceptable-use.md +145 -0
- package/docs/documentation/finance/finance-overview.md +32 -0
- package/docs/documentation/finance/local-currency-taxes.md +40 -0
- package/docs/documentation/finance/merchant-of-record.md +48 -0
- package/docs/documentation/finance/meta.json +13 -0
- package/docs/documentation/finance/payouts-verification.md +186 -0
- package/docs/documentation/finance/payouts.md +41 -0
- package/docs/documentation/finance/supported-countries.md +28 -0
- package/docs/documentation/go/integrate-with-encore.md +229 -0
- package/docs/documentation/go/integrate-with-go.md +258 -0
- package/docs/documentation/go/meta.json +5 -0
- package/docs/documentation/introduction.md +58 -0
- package/docs/documentation/invoicing/handle-failed-payments.md +283 -0
- package/docs/documentation/invoicing/invoices-and-billing-cycles.md +73 -0
- package/docs/documentation/invoicing/manage-invoices.md +340 -0
- package/docs/documentation/invoicing/meta.json +9 -0
- package/docs/documentation/java/integrate-with-java.md +117 -0
- package/docs/documentation/java/meta.json +5 -0
- package/docs/documentation/meta.json +36 -0
- package/docs/documentation/nodejs/integrate-with-astro.md +129 -0
- package/docs/documentation/nodejs/integrate-with-bun.md +113 -0
- package/docs/documentation/nodejs/integrate-with-express.md +127 -0
- package/docs/documentation/nodejs/integrate-with-hono.md +141 -0
- package/docs/documentation/nodejs/integrate-with-nextjs.md +118 -0
- package/docs/documentation/nodejs/integrate-with-nuxt.md +125 -0
- package/docs/documentation/nodejs/integrate-with-remix.md +136 -0
- package/docs/documentation/nodejs/integrate-with-sveltekit.md +127 -0
- package/docs/documentation/nodejs/meta.json +14 -0
- package/docs/documentation/payments/accept-one-time-payments.md +314 -0
- package/docs/documentation/payments/meta.json +10 -0
- package/docs/documentation/payments/payment-orchestration.md +43 -0
- package/docs/documentation/payments/payment-providers.md +59 -0
- package/docs/documentation/payments/transactions-refunds-and-retries.md +199 -0
- package/docs/documentation/php/integrate-with-laravel.md +222 -0
- package/docs/documentation/php/integrate-with-php.md +103 -0
- package/docs/documentation/php/integrate-with-symfony.md +214 -0
- package/docs/documentation/php/meta.json +9 -0
- package/docs/documentation/plans/add-ons.md +257 -0
- package/docs/documentation/plans/balance-and-top-ups.md +169 -0
- package/docs/documentation/plans/configure-features.md +335 -0
- package/docs/documentation/plans/consumption-models.md +93 -0
- package/docs/documentation/plans/create-plans.md +162 -0
- package/docs/documentation/plans/credit-packs.md +89 -0
- package/docs/documentation/plans/meta.json +14 -0
- package/docs/documentation/plans/one-time-payments.md +142 -0
- package/docs/documentation/plans/plan-groups.md +31 -0
- package/docs/documentation/platform/custom-domains.md +27 -0
- package/docs/documentation/platform/dashboard-metrics-and-events.md +25 -0
- package/docs/documentation/platform/members-and-permissions.md +21 -0
- package/docs/documentation/platform/meta.json +10 -0
- package/docs/documentation/platform/organization-settings.md +29 -0
- package/docs/documentation/python/integrate-with-django.md +161 -0
- package/docs/documentation/python/integrate-with-fastapi.md +164 -0
- package/docs/documentation/python/integrate-with-flask.md +153 -0
- package/docs/documentation/python/integrate-with-python.md +90 -0
- package/docs/documentation/python/meta.json +10 -0
- package/docs/documentation/sales/card-promotions.md +41 -0
- package/docs/documentation/sales/introductory-offers.md +64 -0
- package/docs/documentation/sales/meta.json +13 -0
- package/docs/documentation/sales/offers.md +65 -0
- package/docs/documentation/sales/promo-codes.md +65 -0
- package/docs/documentation/sales/promotional-offers.md +58 -0
- package/docs/documentation/sales/regional-prices.md +100 -0
- package/docs/documentation/sales/trial-periods.md +88 -0
- package/docs/documentation/sdk-reference.md +68 -0
- package/docs/documentation/subscriptions/manage-subscriptions.md +505 -0
- package/docs/documentation/subscriptions/meta.json +9 -0
- package/docs/documentation/subscriptions/plan-grants.md +124 -0
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +37 -0
- package/docs/documentation/testing-sandbox.md +251 -0
- package/docs/documentation/usage/ai-token-billing.md +294 -0
- package/docs/documentation/usage/meta.json +10 -0
- package/docs/documentation/usage/quota-management.md +341 -0
- package/docs/documentation/usage/seat-management.md +377 -0
- package/docs/documentation/usage/track-usage.md +282 -0
- package/docs/errors/addon_already_active.md +22 -0
- package/docs/errors/addon_has_activations.md +22 -0
- package/docs/errors/addon_not_active.md +22 -0
- package/docs/errors/addon_not_found.md +22 -0
- package/docs/errors/already_has_active_subscription.md +22 -0
- package/docs/errors/already_scheduled.md +22 -0
- package/docs/errors/api_key_not_found.md +22 -0
- package/docs/errors/card_promotions_not_available.md +22 -0
- package/docs/errors/charge_failed.md +22 -0
- package/docs/errors/charge_in_progress.md +22 -0
- package/docs/errors/claim_not_pending.md +22 -0
- package/docs/errors/credit_pack_not_found.md +22 -0
- package/docs/errors/customer_not_found.md +22 -0
- package/docs/errors/duplicate.md +22 -0
- package/docs/errors/endpoint_deprecated.md +22 -0
- package/docs/errors/endpoint_not_available.md +22 -0
- package/docs/errors/feature_already_exists.md +22 -0
- package/docs/errors/feature_disabled.md +22 -0
- package/docs/errors/feature_in_use.md +22 -0
- package/docs/errors/feature_not_found.md +22 -0
- package/docs/errors/feature_not_in_plan.md +22 -0
- package/docs/errors/forbidden.md +22 -0
- package/docs/errors/free_plan_change_not_supported.md +22 -0
- package/docs/errors/idempotency_in_progress.md +22 -0
- package/docs/errors/idempotency_key_mismatch.md +22 -0
- package/docs/errors/idempotency_unavailable.md +22 -0
- package/docs/errors/included_limit_reached.md +22 -0
- package/docs/errors/index.md +89 -0
- package/docs/errors/insufficient_balance.md +22 -0
- package/docs/errors/insufficient_credits.md +22 -0
- package/docs/errors/insufficient_seats.md +22 -0
- package/docs/errors/internal_error.md +22 -0
- package/docs/errors/invalid_json.md +22 -0
- package/docs/errors/invalid_subscription_status.md +22 -0
- package/docs/errors/invoice_not_found.md +22 -0
- package/docs/errors/market_group_in_use.md +22 -0
- package/docs/errors/market_group_not_found.md +22 -0
- package/docs/errors/market_in_use.md +22 -0
- package/docs/errors/market_not_found.md +22 -0
- package/docs/errors/missing_regional_price.md +22 -0
- package/docs/errors/model_not_found.md +22 -0
- package/docs/errors/no_active_subscription.md +22 -0
- package/docs/errors/no_change_requested.md +22 -0
- package/docs/errors/no_outstanding_invoice.md +22 -0
- package/docs/errors/no_payment_method.md +22 -0
- package/docs/errors/no_prices_configured.md +22 -0
- package/docs/errors/not_found.md +22 -0
- package/docs/errors/not_scheduled_for_cancellation.md +22 -0
- package/docs/errors/offer_not_applicable.md +22 -0
- package/docs/errors/offer_not_found.md +22 -0
- package/docs/errors/one_time_subscription_not_cancelable.md +22 -0
- package/docs/errors/organization_already_claimed.md +22 -0
- package/docs/errors/payment_failed.md +22 -0
- package/docs/errors/payment_method_not_found.md +22 -0
- package/docs/errors/payment_not_cancelable.md +22 -0
- package/docs/errors/payment_not_found.md +22 -0
- package/docs/errors/payouts_not_available_in_sandbox.md +22 -0
- package/docs/errors/plan_change_scheduled.md +22 -0
- package/docs/errors/plan_group_not_found.md +22 -0
- package/docs/errors/plan_not_found.md +22 -0
- package/docs/errors/plan_unavailable.md +22 -0
- package/docs/errors/plans_not_in_same_group.md +22 -0
- package/docs/errors/price_in_use.md +22 -0
- package/docs/errors/price_not_found.md +22 -0
- package/docs/errors/pricing_mode_mismatch.md +22 -0
- package/docs/errors/promo_code_expired.md +22 -0
- package/docs/errors/promo_code_not_found.md +22 -0
- package/docs/errors/provider_unsupported.md +22 -0
- package/docs/errors/rate_limited.md +22 -0
- package/docs/errors/sandbox_only.md +22 -0
- package/docs/errors/seat_limit_exceeded.md +22 -0
- package/docs/errors/subscription_activation_failed.md +22 -0
- package/docs/errors/subscription_already_canceled.md +22 -0
- package/docs/errors/subscription_cancel_failed.md +22 -0
- package/docs/errors/subscription_creation_failed.md +22 -0
- package/docs/errors/subscription_has_open_dispute.md +22 -0
- package/docs/errors/subscription_not_active.md +22 -0
- package/docs/errors/subscription_not_found.md +22 -0
- package/docs/errors/subscription_required.md +22 -0
- package/docs/errors/subscription_uncancel_failed.md +22 -0
- package/docs/errors/transaction_not_found.md +22 -0
- package/docs/errors/unauthorized.md +22 -0
- package/docs/errors/validation_error.md +22 -0
- package/docs/errors/webhook_not_found.md +22 -0
- package/docs/errors.md +34 -0
- package/docs/getting-started.md +35 -0
- package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +22 -0
- package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +20 -0
- package/docs/knowledge-base/how-do-discounts-work.md +65 -0
- package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +88 -0
- package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +77 -0
- package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +20 -0
- package/docs/knowledge-base/how-do-trial-periods-work.md +54 -0
- package/docs/knowledge-base/how-does-billing-work.md +73 -0
- package/docs/knowledge-base/how-does-payment-routing-work.md +17 -0
- package/docs/knowledge-base/how-does-quota-based-billing-work.md +106 -0
- package/docs/knowledge-base/how-does-seat-based-billing-work.md +88 -0
- package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +89 -0
- package/docs/knowledge-base/meta.json +29 -0
- package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +110 -0
- package/docs/knowledge-base/what-happens-when-a-payment-fails.md +40 -0
- package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +74 -0
- package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +21 -0
- package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +101 -0
- package/docs/manifest.json +1677 -0
- package/docs/meta.json +11 -0
- package/docs/platform-documentation.md +175 -0
- package/docs/schemas.md +995 -0
- package/docs/webhooks/addon-activated.md +44 -0
- package/docs/webhooks/addon-deactivated.md +40 -0
- package/docs/webhooks/balance-depleted.md +37 -0
- package/docs/webhooks/balance-low.md +39 -0
- package/docs/webhooks/balance-topped-up.md +41 -0
- package/docs/webhooks/checkout-ready.md +43 -0
- package/docs/webhooks/credits-depleted.md +35 -0
- package/docs/webhooks/credits-expired.md +35 -0
- package/docs/webhooks/credits-granted.md +37 -0
- package/docs/webhooks/credits-low.md +39 -0
- package/docs/webhooks/credits-purchased.md +41 -0
- package/docs/webhooks/customer-created.md +49 -0
- package/docs/webhooks/customer-state-changed.md +134 -0
- package/docs/webhooks/customer-updated.md +49 -0
- package/docs/webhooks/introduction.md +499 -0
- package/docs/webhooks/invoice-created.md +45 -0
- package/docs/webhooks/invoice-overdue.md +53 -0
- package/docs/webhooks/invoice-upcoming.md +43 -0
- package/docs/webhooks/invoice-voided.md +53 -0
- package/docs/webhooks/meta.json +78 -0
- package/docs/webhooks/payment-dispute-resolved.md +52 -0
- package/docs/webhooks/payment-disputed.md +49 -0
- package/docs/webhooks/payment-failed.md +37 -0
- package/docs/webhooks/payment-link-canceled.md +41 -0
- package/docs/webhooks/payment-link-completed.md +47 -0
- package/docs/webhooks/payment-link-created.md +41 -0
- package/docs/webhooks/payment-link-failed.md +45 -0
- package/docs/webhooks/payment-method-attached.md +40 -0
- package/docs/webhooks/payment-method-updated.md +38 -0
- package/docs/webhooks/payment-received.md +45 -0
- package/docs/webhooks/payment-recovered.md +39 -0
- package/docs/webhooks/payment-refunded.md +47 -0
- package/docs/webhooks/payment-retry-failed.md +39 -0
- package/docs/webhooks/payout-available.md +33 -0
- package/docs/webhooks/payout-created.md +48 -0
- package/docs/webhooks/payout-failed.md +52 -0
- package/docs/webhooks/payout-paid.md +48 -0
- package/docs/webhooks/quota-exceeded.md +44 -0
- package/docs/webhooks/quota-threshold-reached.md +41 -0
- package/docs/webhooks/seats-limit-reached.md +39 -0
- package/docs/webhooks/seats-updated.md +39 -0
- package/docs/webhooks/subscription-activated.md +43 -0
- package/docs/webhooks/subscription-canceled.md +57 -0
- package/docs/webhooks/subscription-cancellation-revoked.md +37 -0
- package/docs/webhooks/subscription-cancellation-scheduled.md +45 -0
- package/docs/webhooks/subscription-created.md +35 -0
- package/docs/webhooks/subscription-past-due.md +43 -0
- package/docs/webhooks/subscription-plan-change-revoked.md +50 -0
- package/docs/webhooks/subscription-plan-change-scheduled.md +55 -0
- package/docs/webhooks/subscription-plan-changed.md +43 -0
- package/docs/webhooks/subscription-reactivated.md +53 -0
- package/docs/webhooks/subscription-updated.md +39 -0
- package/docs/webhooks/trial-checkout-ready.md +39 -0
- package/docs/webhooks/trial-converted.md +39 -0
- package/docs/webhooks/trial-expired.md +39 -0
- package/docs/webhooks/trial-started.md +46 -0
- package/docs/webhooks/trial-will-end.md +41 -0
- package/docs/webhooks/usage-recorded.md +41 -0
- package/docs/webhooks.md +782 -0
- package/package.json +2 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-28
|
|
3
|
+
title: Seats
|
|
4
|
+
description: How seat-based billing works for your customers
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Plans can include a number of seats at no extra cost. When your customer uses more seats than included, they're charged per extra seat.
|
|
8
|
+
|
|
9
|
+
## How It Works
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Plan Pro: 5 included seats, $25/extra seat
|
|
13
|
+
Your customer has 8 seats
|
|
14
|
+
|
|
15
|
+
Included: 5 seats (no charge)
|
|
16
|
+
Extra: 3 seats × $25 = $75/mo
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## What Happens When You Change Included Seats
|
|
20
|
+
|
|
21
|
+
### Adding more included seats
|
|
22
|
+
|
|
23
|
+
More included seats **benefits your customers**, so it applies right away.
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
You increase Plan Pro from 10 to 15 included seats.
|
|
27
|
+
Your customer has 12 seats (was paying for 2 extra at $50/mo).
|
|
28
|
+
|
|
29
|
+
After the change:
|
|
30
|
+
→ All 12 seats are now within the 15 included
|
|
31
|
+
→ Extra seat charges drop to $0
|
|
32
|
+
→ Your customer sees the change immediately
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Reducing included seats
|
|
36
|
+
|
|
37
|
+
Fewer included seats harms your customers, so it applies **at renewal**.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
You decrease Plan Pro from 15 to 10 included seats.
|
|
41
|
+
Your customer has 12 seats (all included, $0 extra).
|
|
42
|
+
|
|
43
|
+
This period: Still 12 included, $0 extra
|
|
44
|
+
At renewal: 10 included + 2 extra = $50/mo
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## What Happens When You Change Seat Prices
|
|
48
|
+
|
|
49
|
+
Seat unit prices use current-period snapshots: a lower price applies immediately, while a higher price starts next period.
|
|
50
|
+
|
|
51
|
+
| Change | What your customer pays |
|
|
52
|
+
| --------------- | -------------------------------------------- |
|
|
53
|
+
| Lower the price | New lower price in the current period |
|
|
54
|
+
| Raise the price | Old price this period; new price next period |
|
|
55
|
+
|
|
56
|
+
## Seats and Upgrades
|
|
57
|
+
|
|
58
|
+
On an upgrade, your customer is charged the new plan's **full price** and credited for the unused days of the old plan's **base price**. Extra-seat charges already paid are not credited; extra seats on the new plan are billed for the full new period in advance.
|
|
59
|
+
|
|
60
|
+
### Example
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
Your customer is on Pro ($99/mo, 5 included seats, $25/extra seat).
|
|
64
|
+
They have 8 seats — paying $174/mo total (5 included + 3 extra).
|
|
65
|
+
|
|
66
|
+
They upgrade to Business ($299/mo, 10 included seats, $20/extra seat).
|
|
67
|
+
On day 15 of their cycle.
|
|
68
|
+
|
|
69
|
+
Charge:
|
|
70
|
+
New plan: $299 (full price — the billing cycle restarts today)
|
|
71
|
+
Extra seats: $0 — their 8 seats are within the 10 included
|
|
72
|
+
|
|
73
|
+
Credit:
|
|
74
|
+
Plan base: $99 × (15/30) = $49.50
|
|
75
|
+
Extra seats: $0 — extra-seat charges already paid are not credited
|
|
76
|
+
|
|
77
|
+
They pay today: $249.50
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> **Note**
|
|
81
|
+
>
|
|
82
|
+
> Your customer's 8 seats are now covered by the Business plan's 10 included seats. If they had 12 seats, the 2 above the included 10 would be billed for the full new period in advance: 2 × $20 = $40.
|
|
83
|
+
|
|
84
|
+
## Related
|
|
85
|
+
|
|
86
|
+
- [Proration](/docs/how-is-proration-calculated-when-changing-plans) — How mid-cycle charges are calculated
|
|
87
|
+
- [Pricing Changes](/docs/what-happens-when-you-change-your-prices) — How price changes apply to existing customers
|
|
88
|
+
- [Billing Intervals](/docs/how-do-monthly-quarterly-and-yearly-billing-work) — When seats are charged on quarterly and yearly plans
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-28
|
|
3
|
+
title: Proration
|
|
4
|
+
description: Exactly how mid-cycle charges are calculated when your customer upgrades
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
When your customer upgrades mid-cycle, they're charged the new plan's **full price**, credited for the unused days of the old plan's base price, and their billing cycle **restarts on the day of the change**.
|
|
8
|
+
|
|
9
|
+
## The Calculation
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Credit = Old plan base price × (days remaining / days in cycle)
|
|
13
|
+
Charge = New plan's full price
|
|
14
|
+
They pay = Charge - Credit
|
|
15
|
+
|
|
16
|
+
The billing cycle restarts on the day of the change.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The credit covers the old plan's **effective base price only**. If an Offer discount was active, Commet credits what the customer actually paid, not the undiscounted list price. Metered usage consumed since the period started is charged on the same invoice.
|
|
20
|
+
|
|
21
|
+
## Example: Simple Upgrade
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
Your customer is on Starter at $29/mo, paid on January 1.
|
|
25
|
+
They upgrade to Pro at $99/mo on January 15 (15 days remaining).
|
|
26
|
+
|
|
27
|
+
Charge for Pro (full price): $99.00
|
|
28
|
+
Credit for unused Starter days: $29 × (15/30) = $14.50
|
|
29
|
+
They pay today: $84.50
|
|
30
|
+
|
|
31
|
+
New billing cycle: January 15 – February 15
|
|
32
|
+
Next full invoice: $99 on February 15
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Example: Upgrade with Extra Seats
|
|
36
|
+
|
|
37
|
+
Extra seats are **not credited** on a plan change. Extra seats on the new plan are billed for the full new period in advance.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Current plan: Pro $99/mo, 5 included seats, $25/extra seat
|
|
41
|
+
Your customer has 8 seats (5 included + 3 extra = $174/mo total)
|
|
42
|
+
|
|
43
|
+
They upgrade to: Business $299/mo, 10 included seats, $20/extra seat
|
|
44
|
+
On January 15 (15 days remaining)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
| | Calculation |
|
|
48
|
+
| -------------------------- | ----------------------------------------------------- |
|
|
49
|
+
| Charge for new plan base | $299 (full price) |
|
|
50
|
+
| Charge for new extra seats | $0 — their 8 seats are within the 10 included |
|
|
51
|
+
| Credit for old plan base | $99 × (15/30) = $49.50 |
|
|
52
|
+
| Credit for extra seats | $0 — extra-seat charges already paid are not credited |
|
|
53
|
+
| **They pay today** | **$249.50** |
|
|
54
|
+
|
|
55
|
+
> **Note**
|
|
56
|
+
>
|
|
57
|
+
> Your customer's 8 seats are now fully covered by the Business plan's 10 included seats, so they stop paying for extra seats. If they had more seats than the new plan includes, the excess would be billed for the full new period in advance.
|
|
58
|
+
|
|
59
|
+
## Quarterly and Yearly Plans
|
|
60
|
+
|
|
61
|
+
The same calculation applies — the only difference is the cycle length.
|
|
62
|
+
|
|
63
|
+
### Example
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Your customer is on Plan A at $300/quarter (January 1 – April 1).
|
|
67
|
+
They upgrade to Plan B at $600/quarter on February 15 (45 days remaining).
|
|
68
|
+
|
|
69
|
+
Charge for Plan B (full price): $600.00
|
|
70
|
+
Credit: $300 × (45/90) = $150.00
|
|
71
|
+
They pay today: $450.00
|
|
72
|
+
|
|
73
|
+
New billing cycle: February 15 – May 15
|
|
74
|
+
Next renewal: May 15
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Why Downgrades Aren't Prorated
|
|
78
|
+
|
|
79
|
+
Downgrades take effect **at renewal**. Your customer already paid for the current cycle and keeps their plan until it expires. Since there's no mid-cycle switch, there's nothing to prorate and no refund.
|
|
80
|
+
|
|
81
|
+
## Why Free → Paid Isn't Prorated
|
|
82
|
+
|
|
83
|
+
When your customer moves from a free plan to a paid plan, there's no credit to give — the free plan costs $0. They simply pay the full price of the new plan from that day.
|
|
84
|
+
|
|
85
|
+
## Related
|
|
86
|
+
|
|
87
|
+
- [Plan Changes](/docs/what-happens-when-a-customer-changes-plans) — When proration applies and when it doesn't
|
|
88
|
+
- [Seats](/docs/how-does-seat-based-billing-work) — How seat-based billing works with upgrades
|
|
89
|
+
- [Invoices](/docs/what-invoices-do-customers-receive-and-when) — What invoices your customers receive
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Knowledge Base",
|
|
3
|
+
"description": "How billing decisions work in Commet",
|
|
4
|
+
"icon": "Lightbulb",
|
|
5
|
+
"root": true,
|
|
6
|
+
"pages": [
|
|
7
|
+
"---Billing fundamentals---",
|
|
8
|
+
"how-does-billing-work",
|
|
9
|
+
"what-happens-when-you-change-your-prices",
|
|
10
|
+
"how-do-monthly-quarterly-and-yearly-billing-work",
|
|
11
|
+
"what-invoices-do-customers-receive-and-when",
|
|
12
|
+
"---Subscriptions---",
|
|
13
|
+
"what-happens-when-a-customer-changes-plans",
|
|
14
|
+
"how-is-proration-calculated-when-changing-plans",
|
|
15
|
+
"how-do-trial-periods-work",
|
|
16
|
+
"how-do-free-plans-work-without-payment",
|
|
17
|
+
"what-happens-when-a-payment-fails",
|
|
18
|
+
"---Consumption and pricing---",
|
|
19
|
+
"how-does-seat-based-billing-work",
|
|
20
|
+
"how-does-quota-based-billing-work",
|
|
21
|
+
"how-do-discounts-work",
|
|
22
|
+
"how-do-credits-credit-packs-and-customer-credits-differ",
|
|
23
|
+
"how-do-balance-and-top-ups-work",
|
|
24
|
+
"how-do-offers-promo-codes-and-card-promotions-work-together",
|
|
25
|
+
"---Payments---",
|
|
26
|
+
"how-does-payment-routing-work",
|
|
27
|
+
"what-happens-when-you-refund-or-retry-a-transaction"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-28
|
|
3
|
+
title: Plan Changes
|
|
4
|
+
description: What happens when your customer upgrades, downgrades, or switches plans
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
## Upgrades
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
> **Warning**
|
|
14
|
+
>
|
|
15
|
+
> An upgrade is blocked if the customer already uses more seats than the new plan includes, when that seat feature has overage disabled. They have to remove the extra seats first, or choose a plan with enough included seats.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Your customer is on Starter at $29/mo, paid on January 1.
|
|
21
|
+
They upgrade to Pro at $99/mo on January 15 (15 days left).
|
|
22
|
+
|
|
23
|
+
Charge for Pro (full price): $99.00
|
|
24
|
+
Credit for unused Starter days: $29 × (15/30) = $14.50
|
|
25
|
+
They pay today: $84.50
|
|
26
|
+
|
|
27
|
+
New billing cycle: January 15 – February 15
|
|
28
|
+
Next full invoice: $99 on February 15
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Downgrades
|
|
32
|
+
|
|
33
|
+
When the billing interval stays the same, moving to a plan with a lower `sortOrder` is scheduled **at renewal**. The customer keeps the current plan and features until the end of the paid period, then switches.
|
|
34
|
+
|
|
35
|
+
> **Note**
|
|
36
|
+
>
|
|
37
|
+
> Your customer already paid for this period. They keep full access until it expires — no partial refunds, no disruption.
|
|
38
|
+
|
|
39
|
+
## Free to Paid
|
|
40
|
+
|
|
41
|
+
When your customer moves from a free plan to a paid plan, the change is always **immediate**. There's no credit to issue since the free plan costs $0, so they pay the full price of the new plan.
|
|
42
|
+
|
|
43
|
+
### Example
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Your customer is on a Free plan with $100 included balance.
|
|
47
|
+
They upgrade to Pro at $99/mo.
|
|
48
|
+
|
|
49
|
+
Credit from free plan: $0 (it's free)
|
|
50
|
+
They pay today: $99 (full month)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Changing Billing Frequency
|
|
54
|
+
|
|
55
|
+
| Change | What happens |
|
|
56
|
+
| --------------------------------------------------- | ------------- |
|
|
57
|
+
| Shorter → longer interval, such as monthly → yearly | **Immediate** |
|
|
58
|
+
| Longer → shorter interval, such as yearly → monthly | At renewal |
|
|
59
|
+
|
|
60
|
+
Interval direction takes precedence over `sortOrder` when both the plan and interval change. A paid-to-free change is always scheduled, even if the destination plan has a higher `sortOrder`.
|
|
61
|
+
|
|
62
|
+
## Deprecating a Plan
|
|
63
|
+
|
|
64
|
+
When you deprecate a plan, it disappears from your pricing page, dashboard, and portal — but **your existing customers keep it**. Their billing continues normally. If they cancel, they won't be able to come back to that plan.
|
|
65
|
+
|
|
66
|
+
## Deleting a Plan
|
|
67
|
+
|
|
68
|
+
Deleting a plan is a **soft delete**. The plan disappears from your pricing page and can't be assigned to new customers — but existing subscriptions are unaffected and keep billing normally.
|
|
69
|
+
|
|
70
|
+
## Reactivation
|
|
71
|
+
|
|
72
|
+
A canceled subscription can be **reactivated** — from the dashboard, the API, or the Customer Portal.
|
|
73
|
+
|
|
74
|
+
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.
|
|
75
|
+
|
|
76
|
+
If the cancellation is only scheduled for the end of the period, your customer can undo it in the portal before it takes effect.
|
|
77
|
+
|
|
78
|
+
> **Note**
|
|
79
|
+
>
|
|
80
|
+
> If the plan is no longer available, reactivation is rejected — your customer starts a new subscription on a different plan.
|
|
81
|
+
|
|
82
|
+
## Feature Changes
|
|
83
|
+
|
|
84
|
+
Feature changes use the current-period subscription snapshot:
|
|
85
|
+
|
|
86
|
+
| What you do | Existing customers |
|
|
87
|
+
| -------------------------------------------------------------------------------------------------- | --------------------------------------- |
|
|
88
|
+
| Add a feature, enable it, increase its included amount, make it unlimited, or lower its unit price | **Applied to the current period** |
|
|
89
|
+
| Remove a feature, disable it, reduce its included amount, or raise its unit price | Existing snapshot remains until renewal |
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
You lower Plan Pro from 10,000 API calls to 5,000.
|
|
95
|
+
|
|
96
|
+
New customers get 5,000.
|
|
97
|
+
Existing customers keep 10,000 until renewal, then switch to 5,000.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
You raise Plan Pro from 5,000 API calls to 10,000.
|
|
102
|
+
|
|
103
|
+
All customers — new and existing — get 10,000 right away.
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Related
|
|
107
|
+
|
|
108
|
+
- [Proration](/docs/how-is-proration-calculated-when-changing-plans) — Exactly how mid-cycle charges are calculated
|
|
109
|
+
- [Pricing Changes](/docs/what-happens-when-you-change-your-prices) — What happens when you change prices without changing plans
|
|
110
|
+
- [Billing Intervals](/docs/how-do-monthly-quarterly-and-yearly-billing-work) — How quarterly and yearly billing works
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-28
|
|
3
|
+
title: Payment Failures
|
|
4
|
+
description: What happens when your customer's payment fails
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
## What Your Customer Experiences
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Payment fails
|
|
13
|
+
→ Usage and seats keep working (grace period begins)
|
|
14
|
+
→ New purchases are blocked
|
|
15
|
+
→ Commet retries the charge automatically
|
|
16
|
+
|
|
17
|
+
All retries fail
|
|
18
|
+
→ Their subscription is canceled
|
|
19
|
+
→ Access is revoked
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
| Stage | Access | What's happening |
|
|
23
|
+
| --------------------- | -------------------------------- | ---------------------------------------------------------------------------------- |
|
|
24
|
+
| Payment fails | **Usage and seats keep working** | Subscription moves to `past_due`, invoice becomes `outstanding`, retries scheduled |
|
|
25
|
+
| 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 |
|
|
26
|
+
| All retries exhausted | Revoked | Subscription canceled, invoice marked `uncollectible` |
|
|
27
|
+
|
|
28
|
+
> **Warning**
|
|
29
|
+
>
|
|
30
|
+
> **Purchases are blocked while `past_due`.** Plan changes, add-ons, credit packs, and balance top-ups are rejected until the outstanding invoice is paid. Usage and seat tracking keep working so your customer can pay and continue without interruption.
|
|
31
|
+
|
|
32
|
+
## First Charge After a Trial
|
|
33
|
+
|
|
34
|
+
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.
|
|
35
|
+
|
|
36
|
+
## Related
|
|
37
|
+
|
|
38
|
+
- [Invoices](/docs/what-invoices-do-customers-receive-and-when) — What invoices your customers receive
|
|
39
|
+
- [Trials](/docs/how-do-trial-periods-work) — What happens if the first charge after a trial fails
|
|
40
|
+
- [Plan Changes](/docs/what-happens-when-a-customer-changes-plans) — How a canceled customer can come back
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-28
|
|
3
|
+
title: Pricing Changes
|
|
4
|
+
description: What happens to your customers when you change your prices
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
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**.
|
|
8
|
+
|
|
9
|
+
The exception is a plan's selected base price or variant, which changes at renewal in both directions.
|
|
10
|
+
|
|
11
|
+
## Base and Variant Prices
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
| | New customers | Existing customers |
|
|
16
|
+
| ------------------- | ------------- | -------------------------------- |
|
|
17
|
+
| You raise the price | Pay new price | Keep current price until renewal |
|
|
18
|
+
| You lower the price | Pay new price | Keep current price until renewal |
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
You change Plan Pro from $99/mo to $129/mo.
|
|
24
|
+
|
|
25
|
+
A new customer signs up today → pays $129/mo.
|
|
26
|
+
An existing customer on day 15 of their month → keeps paying $99/mo.
|
|
27
|
+
That same customer at renewal → starts paying $129/mo.
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
> **Note**
|
|
31
|
+
>
|
|
32
|
+
> Archiving a price prevents new selection but does not break subscriptions already bound to it. Accepted Offer phases remain snapshotted separately.
|
|
33
|
+
|
|
34
|
+
## Usage-Based Pricing (Overage)
|
|
35
|
+
|
|
36
|
+
Per-unit price changes are asymmetric: a **decrease applies immediately** to the current period, an **increase applies at renewal**.
|
|
37
|
+
|
|
38
|
+
### Example
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
You raise the overage price from $0.002/call to $0.005/call.
|
|
42
|
+
Your customer has already used 5,000 extra calls this month.
|
|
43
|
+
|
|
44
|
+
This month's invoice → still charged at $0.002
|
|
45
|
+
Next month's invoice → charged at $0.005
|
|
46
|
+
|
|
47
|
+
You lower the overage price from $0.005/call to $0.002/call.
|
|
48
|
+
|
|
49
|
+
This month's invoice → charged at $0.002 — the cheaper price applies immediately
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Seat Pricing
|
|
53
|
+
|
|
54
|
+
Per-seat prices follow the same asymmetry: cheaper applies now, more expensive applies at renewal.
|
|
55
|
+
|
|
56
|
+
### Example
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
You raise the extra seat price from $25/seat to $35/seat.
|
|
60
|
+
Your customer has 3 extra seats.
|
|
61
|
+
|
|
62
|
+
This month → 3 × $25 = $75
|
|
63
|
+
Next month → 3 × $35 = $105
|
|
64
|
+
|
|
65
|
+
You lower it from $35/seat to $25/seat.
|
|
66
|
+
|
|
67
|
+
This month → 3 × $25 = $75 — applied immediately
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Related
|
|
71
|
+
|
|
72
|
+
- [Plan Changes](/docs/what-happens-when-a-customer-changes-plans) — What happens when your customer upgrades or downgrades
|
|
73
|
+
- [Proration](/docs/how-is-proration-calculated-when-changing-plans) — How mid-cycle charges are calculated
|
|
74
|
+
- [Seats](/docs/how-does-seat-based-billing-work) — How seat-based billing works
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-08-16
|
|
3
|
+
title: Refunds and Retries
|
|
4
|
+
description: Understand how refunds and renewal retries affect transactions, invoices, and product access.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A refund and a retry create different payment outcomes. Neither should be inferred from a browser redirect.
|
|
8
|
+
|
|
9
|
+
## Refund
|
|
10
|
+
|
|
11
|
+
A full refund is requested against a successful transaction. Commet returns the provider-neutral refund with its actual status and emits `payment.refunded` when confirmed.
|
|
12
|
+
|
|
13
|
+
The refund does not automatically invent your product's access policy. Decide whether a refunded purchase revokes access, restores balance, or requires manual review, then apply that rule idempotently from the webhook.
|
|
14
|
+
|
|
15
|
+
## Retry
|
|
16
|
+
|
|
17
|
+
A retry applies to a failed subscription renewal. The failed transaction remains unchanged for audit and the retry creates a new attempt against the connection already bound to the subscription.
|
|
18
|
+
|
|
19
|
+
If the retry succeeds, the outstanding invoice is settled and the subscription can return to `active`. If customer action or a new card is required, use a recovery link or payment-method update instead.
|
|
20
|
+
|
|
21
|
+
See [Transactions, Refunds, and Retries](/docs/transactions-refunds-and-retries) and [Handle Failed Payments](/docs/handle-failed-payments).
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
lastModified: 2026-07-10
|
|
3
|
+
title: Invoices
|
|
4
|
+
description: What invoices your customers receive and when
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Your customers receive invoices automatically based on what happens in their subscription. Here's every type of invoice they might see and when it's generated.
|
|
8
|
+
|
|
9
|
+
## Types of Invoices
|
|
10
|
+
|
|
11
|
+
| Invoice | When your customer receives it |
|
|
12
|
+
| ----------------- | ---------------------------------------------------------------------------- |
|
|
13
|
+
| Recurring | Every billing cycle — includes plan base, extra usage, and extra seats |
|
|
14
|
+
| Overage | Between billing cycles (quarterly/yearly plans only) if they had extra usage |
|
|
15
|
+
| Plan change | When they upgrade or switch plans mid-cycle |
|
|
16
|
+
| Credit purchase | When they buy a credit pack |
|
|
17
|
+
| Balance top-up | When they add funds to their balance |
|
|
18
|
+
| Add-on activation | When they activate an add-on mid-cycle (prorated) |
|
|
19
|
+
| One-time payment | When they pay a payment link or a standalone charge |
|
|
20
|
+
| Reactivation | When a canceled subscription is reactivated |
|
|
21
|
+
| Adjustment | When you manually issue a correction or one-off charge |
|
|
22
|
+
|
|
23
|
+
## Recurring
|
|
24
|
+
|
|
25
|
+
This is the standard invoice your customer receives on each billing cycle. It includes everything: plan base price, extra usage charges, and extra seat charges.
|
|
26
|
+
|
|
27
|
+
Extra seats are billed both ways on this invoice: **in advance** for the seats held going into the new period, and a **true-up** for seats added mid-cycle during the period that just ended, prorated by day. Quota works the same way.
|
|
28
|
+
|
|
29
|
+
### Example
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Monthly invoice for a customer on Plan Pro at $99/mo:
|
|
33
|
+
|
|
34
|
+
Plan base: $99.00
|
|
35
|
+
Extra usage (2,000 API calls × $0.01): $20.00
|
|
36
|
+
Extra seats — upcoming period (2 × $25): $50.00
|
|
37
|
+
Extra seats — true-up (1 × $25 × 15/30 days): $12.50
|
|
38
|
+
─────────────────────────────────────────────
|
|
39
|
+
Total: $181.50
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Overage
|
|
43
|
+
|
|
44
|
+
For customers on quarterly or yearly plans, if they go over their included usage **between billing cycles**, they receive a smaller invoice covering just the extra usage. No plan base or seat charges — just the overage.
|
|
45
|
+
|
|
46
|
+
### Example
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
A customer on a quarterly plan used 500 extra API calls in month 2:
|
|
50
|
+
|
|
51
|
+
Extra usage (500 × $0.01): $5.00
|
|
52
|
+
─────────────────────────────────
|
|
53
|
+
Total: $5.00
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
If they had no extra usage that month, they don't receive any invoice.
|
|
57
|
+
|
|
58
|
+
## Plan Change
|
|
59
|
+
|
|
60
|
+
When your customer upgrades through the portal, they receive an invoice charging the new plan's full price minus a credit for the unused days of the old plan's base price. Their billing cycle restarts on the day of the change.
|
|
61
|
+
|
|
62
|
+
### Example
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Customer upgrades from Starter ($29/mo) to Pro ($99/mo) on day 15:
|
|
66
|
+
|
|
67
|
+
Pro — new period (full price): $99.00
|
|
68
|
+
Credit for unused Starter days: -$14.50
|
|
69
|
+
────────────────────────────────────────
|
|
70
|
+
Total: $84.50
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Other Invoices
|
|
74
|
+
|
|
75
|
+
- **Credit purchase** — when your customer buys a credit pack through the portal or checkout.
|
|
76
|
+
- **Balance top-up** — when your customer adds funds to their balance.
|
|
77
|
+
- **Add-on activation** — when your customer activates an add-on mid-cycle; the first charge is prorated.
|
|
78
|
+
- **One-time payment** — when your customer pays a payment link or a standalone charge, outside any subscription.
|
|
79
|
+
- **Reactivation** — when a canceled subscription is reactivated; a fresh invoice at the plan's current price, starting a new billing period.
|
|
80
|
+
- **Adjustment** — when you manually create a correction, refund, or one-off charge from the dashboard.
|
|
81
|
+
|
|
82
|
+
## Invoice Line Types
|
|
83
|
+
|
|
84
|
+
Every invoice is built from these line types:
|
|
85
|
+
|
|
86
|
+
- `plan_base`: The plan's base price.
|
|
87
|
+
- `feature_overage`: Extra metered usage above the included amount.
|
|
88
|
+
- `feature_seats`: Extra seat charges — advance and true-up.
|
|
89
|
+
- `feature_quota`: Extra quota charges — advance and true-up.
|
|
90
|
+
- `discount`: Introductory offer discount.
|
|
91
|
+
- `promo_code_discount`: Promo code discount.
|
|
92
|
+
- `credit`: Credit applied to the invoice.
|
|
93
|
+
- `balance_overage`: Balance spent past zero, when the plan allows it.
|
|
94
|
+
- `addon_base`: Add-on charge at renewal.
|
|
95
|
+
- `one_time`: Standalone one-time payment.
|
|
96
|
+
|
|
97
|
+
## Related
|
|
98
|
+
|
|
99
|
+
- [Billing Intervals](/docs/how-do-monthly-quarterly-and-yearly-billing-work) — When quarterly and yearly customers get charged
|
|
100
|
+
- [Proration](/docs/how-is-proration-calculated-when-changing-plans) — How mid-cycle charges are calculated
|
|
101
|
+
- [Plan Changes](/docs/what-happens-when-a-customer-changes-plans) — When plan change invoices are created
|