@commet/node 9.3.0 → 9.5.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.
- package/dist/index.d.mts +366 -17
- package/dist/index.d.ts +366 -17
- package/dist/index.js +31 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -7
- package/dist/index.mjs.map +1 -1
- package/docs/ai-onboarding/ai-onboarding.md +2 -3
- package/docs/ai-onboarding/billing-best-practices-skill.md +2 -3
- package/docs/ai-onboarding/commet-skill.md +4 -5
- package/docs/ai-onboarding/mcp-server.md +8 -9
- package/docs/ai-onboarding/pricing-models-skill.md +2 -3
- package/docs/ai-onboarding/subscription-patterns-skill.md +2 -3
- package/docs/api-reference/addons.md +1 -1
- package/docs/api-reference/api-keys.md +3 -2
- package/docs/api-reference/credit-packs.md +1 -1
- package/docs/api-reference/customers.md +1 -1
- package/docs/api-reference/feature-access.md +1 -1
- package/docs/api-reference/features.md +1 -1
- package/docs/api-reference/generated-webhooks.md +3 -3
- package/docs/api-reference/index.md +2 -2
- package/docs/api-reference/invoices.md +1 -1
- package/docs/api-reference/markets.md +1 -1
- package/docs/api-reference/offers.md +1 -1
- package/docs/api-reference/payments.md +1 -1
- package/docs/api-reference/payouts.md +1 -1
- package/docs/api-reference/plan-groups.md +1 -1
- package/docs/api-reference/plans.md +1 -1
- package/docs/api-reference/portal.md +1 -1
- package/docs/api-reference/promo-codes.md +2 -2
- package/docs/api-reference/provisioning.md +1 -1
- package/docs/api-reference/quota.md +1 -1
- package/docs/api-reference/seats.md +1 -1
- package/docs/api-reference/subscriptions.md +81 -2
- package/docs/api-reference/test-clock.md +1 -1
- package/docs/api-reference/transactions.md +1 -1
- package/docs/api-reference/usage.md +1 -1
- package/docs/documentation/api-versioning.md +1 -2
- package/docs/documentation/better-auth.md +0 -1
- package/docs/documentation/choose-a-billing-model.md +54 -26
- package/docs/documentation/cli.md +1 -2
- package/docs/documentation/create-api-key.md +100 -25
- package/docs/documentation/customers/customer-credits.md +0 -1
- package/docs/documentation/customers/customer-portal.md +14 -2
- package/docs/documentation/customers/manage-customers.md +1 -2
- package/docs/documentation/error-handling.md +1 -2
- package/docs/documentation/examples.md +0 -1
- package/docs/documentation/finance/acceptable-use.md +0 -1
- package/docs/documentation/finance/finance-overview.md +0 -1
- package/docs/documentation/finance/local-currency-taxes.md +0 -1
- package/docs/documentation/finance/merchant-of-record.md +0 -1
- package/docs/documentation/finance/payouts-verification.md +6 -3
- package/docs/documentation/finance/payouts.md +0 -1
- package/docs/documentation/finance/supported-countries.md +0 -1
- package/docs/documentation/go/integrate-with-encore.md +7 -8
- package/docs/documentation/go/integrate-with-go.md +8 -9
- package/docs/documentation/introduction.md +62 -41
- package/docs/documentation/invoicing/handle-failed-payments.md +9 -4
- package/docs/documentation/invoicing/invoices-and-billing-cycles.md +0 -1
- package/docs/documentation/invoicing/manage-invoices.md +0 -1
- package/docs/documentation/java/integrate-with-java.md +6 -7
- package/docs/documentation/nodejs/integrate-with-astro.md +6 -7
- package/docs/documentation/nodejs/integrate-with-bun.md +6 -7
- package/docs/documentation/nodejs/integrate-with-express.md +7 -8
- package/docs/documentation/nodejs/integrate-with-hono.md +7 -8
- package/docs/documentation/nodejs/integrate-with-nextjs.md +6 -7
- package/docs/documentation/nodejs/integrate-with-nuxt.md +6 -7
- package/docs/documentation/nodejs/integrate-with-remix.md +6 -7
- package/docs/documentation/nodejs/integrate-with-sveltekit.md +6 -7
- package/docs/documentation/payments/accept-one-time-payments.md +0 -1
- package/docs/documentation/payments/payment-orchestration.md +0 -1
- package/docs/documentation/payments/payment-providers.md +0 -1
- package/docs/documentation/payments/transactions-refunds-and-retries.md +8 -1
- package/docs/documentation/php/integrate-with-laravel.md +8 -9
- package/docs/documentation/php/integrate-with-php.md +6 -7
- package/docs/documentation/php/integrate-with-symfony.md +7 -8
- package/docs/documentation/plans/add-ons.md +0 -1
- package/docs/documentation/plans/balance-and-top-ups.md +0 -1
- package/docs/documentation/plans/configure-features.md +0 -1
- package/docs/documentation/plans/consumption-models.md +0 -1
- package/docs/documentation/plans/create-plans.md +0 -1
- package/docs/documentation/plans/credit-packs.md +0 -1
- package/docs/documentation/plans/one-time-payments.md +0 -1
- package/docs/documentation/plans/plan-groups.md +0 -1
- package/docs/documentation/platform/custom-domains.md +0 -1
- package/docs/documentation/platform/dashboard-metrics-and-events.md +0 -1
- package/docs/documentation/platform/members-and-permissions.md +0 -1
- package/docs/documentation/platform/organization-settings.md +0 -1
- package/docs/documentation/python/integrate-with-django.md +8 -9
- package/docs/documentation/python/integrate-with-fastapi.md +8 -9
- package/docs/documentation/python/integrate-with-flask.md +8 -9
- package/docs/documentation/python/integrate-with-python.md +6 -7
- package/docs/documentation/sales/card-promotions.md +0 -1
- package/docs/documentation/sales/introductory-offers.md +0 -1
- package/docs/documentation/sales/offers.md +0 -1
- package/docs/documentation/sales/promo-codes.md +19 -5
- package/docs/documentation/sales/promotional-offers.md +1 -2
- package/docs/documentation/sales/regional-prices.md +0 -1
- package/docs/documentation/sales/trial-periods.md +8 -8
- package/docs/documentation/sdk-reference.md +9 -10
- package/docs/documentation/subscriptions/manage-subscriptions.md +114 -12
- package/docs/documentation/subscriptions/plan-grants.md +0 -1
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +0 -1
- package/docs/documentation/testing-sandbox.md +0 -1
- package/docs/documentation/usage/ai-token-billing.md +0 -1
- package/docs/documentation/usage/quota-management.md +0 -1
- package/docs/documentation/usage/seat-management.md +0 -1
- package/docs/documentation/usage/track-usage.md +0 -1
- package/docs/errors/addon_already_active.md +1 -1
- package/docs/errors/addon_has_activations.md +1 -1
- package/docs/errors/addon_not_active.md +1 -1
- package/docs/errors/addon_not_found.md +1 -1
- package/docs/errors/already_has_active_subscription.md +1 -1
- package/docs/errors/already_scheduled.md +1 -1
- package/docs/errors/api_key_not_found.md +1 -1
- package/docs/errors/card_promotions_not_available.md +1 -1
- package/docs/errors/charge_failed.md +1 -1
- package/docs/errors/charge_in_progress.md +1 -1
- package/docs/errors/claim_not_pending.md +1 -1
- package/docs/errors/credit_pack_not_found.md +1 -1
- package/docs/errors/customer_not_found.md +1 -1
- package/docs/errors/duplicate.md +1 -1
- package/docs/errors/endpoint_deprecated.md +1 -1
- package/docs/errors/endpoint_not_available.md +1 -1
- package/docs/errors/feature_already_exists.md +1 -1
- package/docs/errors/feature_disabled.md +1 -1
- package/docs/errors/feature_in_use.md +1 -1
- package/docs/errors/feature_not_found.md +1 -1
- package/docs/errors/feature_not_in_plan.md +1 -1
- package/docs/errors/forbidden.md +1 -1
- package/docs/errors/free_plan_change_not_supported.md +1 -1
- package/docs/errors/idempotency_in_progress.md +1 -1
- package/docs/errors/idempotency_key_mismatch.md +1 -1
- package/docs/errors/idempotency_unavailable.md +1 -1
- package/docs/errors/included_limit_reached.md +1 -1
- package/docs/errors/index.md +1 -1
- package/docs/errors/insufficient_balance.md +1 -1
- package/docs/errors/insufficient_credits.md +1 -1
- package/docs/errors/insufficient_seats.md +1 -1
- package/docs/errors/internal_error.md +1 -1
- package/docs/errors/invalid_json.md +1 -1
- package/docs/errors/invalid_subscription_status.md +1 -1
- package/docs/errors/invoice_not_found.md +1 -1
- package/docs/errors/market_group_in_use.md +1 -1
- package/docs/errors/market_group_not_found.md +1 -1
- package/docs/errors/market_in_use.md +1 -1
- package/docs/errors/market_not_found.md +1 -1
- package/docs/errors/missing_regional_price.md +1 -1
- package/docs/errors/model_not_found.md +1 -1
- package/docs/errors/no_active_subscription.md +1 -1
- package/docs/errors/no_change_requested.md +1 -1
- package/docs/errors/no_outstanding_invoice.md +1 -1
- package/docs/errors/no_payment_method.md +1 -1
- package/docs/errors/no_prices_configured.md +1 -1
- package/docs/errors/not_found.md +1 -1
- package/docs/errors/not_scheduled_for_cancellation.md +1 -1
- package/docs/errors/offer_not_applicable.md +1 -1
- package/docs/errors/offer_not_found.md +1 -1
- package/docs/errors/one_time_subscription_not_cancelable.md +1 -1
- package/docs/errors/organization_already_claimed.md +1 -1
- package/docs/errors/payment_failed.md +1 -1
- package/docs/errors/payment_method_not_found.md +1 -1
- package/docs/errors/payment_not_cancelable.md +1 -1
- package/docs/errors/payment_not_found.md +1 -1
- package/docs/errors/payouts_not_available_in_sandbox.md +1 -1
- package/docs/errors/plan_change_scheduled.md +1 -1
- package/docs/errors/plan_group_not_found.md +1 -1
- package/docs/errors/plan_not_found.md +1 -1
- package/docs/errors/plan_unavailable.md +1 -1
- package/docs/errors/plans_not_in_same_group.md +1 -1
- package/docs/errors/price_in_use.md +1 -1
- package/docs/errors/price_not_found.md +1 -1
- package/docs/errors/pricing_mode_mismatch.md +1 -1
- package/docs/errors/promo_code_expired.md +1 -1
- package/docs/errors/promo_code_not_found.md +1 -1
- package/docs/errors/provider_unsupported.md +1 -1
- package/docs/errors/rate_limited.md +1 -1
- package/docs/errors/sandbox_only.md +1 -1
- package/docs/errors/seat_limit_exceeded.md +1 -1
- package/docs/errors/subscription_activation_failed.md +1 -1
- package/docs/errors/subscription_already_canceled.md +1 -1
- package/docs/errors/subscription_cancel_failed.md +1 -1
- package/docs/errors/subscription_creation_failed.md +1 -1
- package/docs/errors/subscription_has_open_dispute.md +1 -1
- package/docs/errors/subscription_not_active.md +1 -1
- package/docs/errors/subscription_not_found.md +1 -1
- package/docs/errors/subscription_required.md +1 -1
- package/docs/errors/subscription_uncancel_failed.md +1 -1
- package/docs/errors/transaction_not_found.md +1 -1
- package/docs/errors/unauthorized.md +1 -1
- package/docs/errors/validation_error.md +1 -1
- package/docs/errors/webhook_not_found.md +1 -1
- package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +0 -1
- package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +0 -1
- package/docs/knowledge-base/how-do-discounts-work.md +0 -1
- package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +0 -1
- package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +0 -1
- package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +0 -1
- package/docs/knowledge-base/how-do-trial-periods-work.md +0 -1
- package/docs/knowledge-base/how-does-billing-work.md +0 -1
- package/docs/knowledge-base/how-does-payment-routing-work.md +0 -1
- package/docs/knowledge-base/how-does-quota-based-billing-work.md +0 -1
- package/docs/knowledge-base/how-does-seat-based-billing-work.md +0 -1
- package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +0 -1
- package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +0 -1
- package/docs/knowledge-base/what-happens-when-a-payment-fails.md +0 -1
- package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +0 -1
- package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +1 -2
- package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +0 -1
- package/docs/manifest.json +186 -235
- package/docs/platform-documentation.md +69 -149
- package/docs/schemas.md +35 -1
- package/docs/webhooks/introduction.md +0 -1
- package/docs/webhooks.md +98 -7
- package/docs/webhooks.openapi.json +11058 -0
- package/package.json +1 -1
- package/docs/ai-onboarding/meta.json +0 -17
- package/docs/api-reference/meta.json +0 -7
- package/docs/documentation/customers/meta.json +0 -5
- package/docs/documentation/finance/meta.json +0 -13
- package/docs/documentation/go/meta.json +0 -5
- package/docs/documentation/invoicing/meta.json +0 -9
- package/docs/documentation/java/meta.json +0 -5
- package/docs/documentation/meta.json +0 -36
- package/docs/documentation/nodejs/meta.json +0 -14
- package/docs/documentation/payments/meta.json +0 -10
- package/docs/documentation/php/meta.json +0 -9
- package/docs/documentation/plans/meta.json +0 -14
- package/docs/documentation/platform/meta.json +0 -10
- package/docs/documentation/python/meta.json +0 -10
- package/docs/documentation/sales/meta.json +0 -13
- package/docs/documentation/subscriptions/meta.json +0 -9
- package/docs/documentation/usage/meta.json +0 -10
- package/docs/knowledge-base/meta.json +0 -29
- package/docs/meta.json +0 -11
- package/docs/webhooks/addon-activated.md +0 -44
- package/docs/webhooks/addon-deactivated.md +0 -40
- package/docs/webhooks/balance-depleted.md +0 -37
- package/docs/webhooks/balance-low.md +0 -39
- package/docs/webhooks/balance-topped-up.md +0 -41
- package/docs/webhooks/checkout-ready.md +0 -43
- package/docs/webhooks/credits-depleted.md +0 -35
- package/docs/webhooks/credits-expired.md +0 -35
- package/docs/webhooks/credits-granted.md +0 -37
- package/docs/webhooks/credits-low.md +0 -39
- package/docs/webhooks/credits-purchased.md +0 -41
- package/docs/webhooks/customer-created.md +0 -49
- package/docs/webhooks/customer-state-changed.md +0 -134
- package/docs/webhooks/customer-updated.md +0 -49
- package/docs/webhooks/invoice-created.md +0 -45
- package/docs/webhooks/invoice-overdue.md +0 -53
- package/docs/webhooks/invoice-upcoming.md +0 -43
- package/docs/webhooks/invoice-voided.md +0 -53
- package/docs/webhooks/meta.json +0 -83
- package/docs/webhooks/payment-dispute-resolved.md +0 -52
- package/docs/webhooks/payment-disputed.md +0 -49
- package/docs/webhooks/payment-failed.md +0 -37
- package/docs/webhooks/payment-link-canceled.md +0 -41
- package/docs/webhooks/payment-link-completed.md +0 -47
- package/docs/webhooks/payment-link-created.md +0 -41
- package/docs/webhooks/payment-link-failed.md +0 -45
- package/docs/webhooks/payment-method-attached.md +0 -40
- package/docs/webhooks/payment-method-updated.md +0 -38
- package/docs/webhooks/payment-received.md +0 -45
- package/docs/webhooks/payment-recovered.md +0 -39
- package/docs/webhooks/payment-refunded.md +0 -47
- package/docs/webhooks/payment-retry-failed.md +0 -39
- package/docs/webhooks/payout-available.md +0 -33
- package/docs/webhooks/payout-created.md +0 -48
- package/docs/webhooks/payout-failed.md +0 -52
- package/docs/webhooks/payout-paid.md +0 -48
- package/docs/webhooks/plan-grant-created.md +0 -74
- package/docs/webhooks/plan-grant-expired.md +0 -86
- package/docs/webhooks/plan-grant-revoked.md +0 -86
- package/docs/webhooks/plan-grant-updated.md +0 -86
- package/docs/webhooks/quota-exceeded.md +0 -44
- package/docs/webhooks/quota-threshold-reached.md +0 -41
- package/docs/webhooks/seats-limit-reached.md +0 -39
- package/docs/webhooks/seats-updated.md +0 -39
- package/docs/webhooks/subscription-activated.md +0 -43
- package/docs/webhooks/subscription-canceled.md +0 -57
- package/docs/webhooks/subscription-cancellation-revoked.md +0 -37
- package/docs/webhooks/subscription-cancellation-scheduled.md +0 -45
- package/docs/webhooks/subscription-created.md +0 -35
- package/docs/webhooks/subscription-past-due.md +0 -43
- package/docs/webhooks/subscription-plan-change-revoked.md +0 -50
- package/docs/webhooks/subscription-plan-change-scheduled.md +0 -55
- package/docs/webhooks/subscription-plan-changed.md +0 -43
- package/docs/webhooks/subscription-reactivated.md +0 -53
- package/docs/webhooks/subscription-updated.md +0 -39
- package/docs/webhooks/trial-checkout-ready.md +0 -39
- package/docs/webhooks/trial-converted.md +0 -39
- package/docs/webhooks/trial-expired.md +0 -39
- package/docs/webhooks/trial-started.md +0 -46
- package/docs/webhooks/trial-will-end.md +0 -41
- package/docs/webhooks/usage-recorded.md +0 -41
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-08-16
|
|
3
2
|
title: AI Onboarding
|
|
4
3
|
description: Give an AI agent the product knowledge, tools, environment, and safety boundaries it needs to implement Commet.
|
|
5
4
|
---
|
|
@@ -48,9 +47,9 @@ MCP v2 generates one `api_*` tool per current OpenAPI operation and also exposes
|
|
|
48
47
|
Use the smallest source that answers the task:
|
|
49
48
|
|
|
50
49
|
1. `node_modules/@commet/node/docs/README.md` for the API that matches the installed SDK version.
|
|
51
|
-
2. [Documentation index](
|
|
50
|
+
2. [Documentation index](/docs/llms.txt) to discover the right curated concept or business rule.
|
|
52
51
|
3. Append `.md` to a page URL for focused Markdown, such as `https://commet.co/docs/how-does-billing-work.md`.
|
|
53
|
-
4. [Full documentation](
|
|
52
|
+
4. [Full documentation](/docs/llms-full.txt) only when the task genuinely needs the complete curated corpus.
|
|
54
53
|
5. [OpenAPI](https://commet.co/openapi.json) and generated API Reference for the exact current platform contract.
|
|
55
54
|
|
|
56
55
|
Installed SDK docs are version-matched. The curated Documentation explains how dashboard and API work together. The Knowledge Base defines business rules. API Reference and Webhooks define the current generated contracts.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-07-31
|
|
3
2
|
title: Billing Best Practices Skill
|
|
4
3
|
description: Comprehensive guide for building production-ready billing systems with AI agents.
|
|
5
4
|
---
|
|
@@ -25,5 +24,5 @@ npx skills add commet-labs/billing-best-practices
|
|
|
25
24
|
|
|
26
25
|
## Learn More
|
|
27
26
|
|
|
28
|
-
- [**View on GitHub**](https://github.com/commet-labs/billing-best-practices)
|
|
29
|
-
- [**View on skills.sh**](https://skills.sh/commet-labs/billing-best-practices)
|
|
27
|
+
- [**View on GitHub**](https://github.com/commet-labs/billing-best-practices) — See the full source code and documentation.
|
|
28
|
+
- [**View on skills.sh**](https://skills.sh/commet-labs/billing-best-practices) — Installation stats and security audits.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-07-31
|
|
3
2
|
title: Commet Skills
|
|
4
3
|
description: Give AI agents expert-level billing knowledge with Agent Skills.
|
|
5
4
|
---
|
|
@@ -52,7 +51,7 @@ Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Windsurf, OpenCode, and
|
|
|
52
51
|
|
|
53
52
|
## Learn More
|
|
54
53
|
|
|
55
|
-
- [**commet-labs/skills on skills.sh**](https://skills.sh/commet-labs/skills)
|
|
56
|
-
- [**billing-best-practices**](https://skills.sh/commet-labs/billing-best-practices)
|
|
57
|
-
- [**pricing-models**](https://skills.sh/commet-labs/pricing-models)
|
|
58
|
-
- [**subscription-patterns**](https://skills.sh/commet-labs/subscription-patterns)
|
|
54
|
+
- [**commet-labs/skills on skills.sh**](https://skills.sh/commet-labs/skills) — All 7 skills in one package.
|
|
55
|
+
- [**billing-best-practices**](https://skills.sh/commet-labs/billing-best-practices) — SaaS billing patterns and best practices.
|
|
56
|
+
- [**pricing-models**](https://skills.sh/commet-labs/pricing-models) — Choose the right pricing model for your SaaS.
|
|
57
|
+
- [**subscription-patterns**](https://skills.sh/commet-labs/subscription-patterns) — Subscription lifecycle, trials, proration, dunning.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-07-31
|
|
3
2
|
title: MCP Server
|
|
4
3
|
description: Use the MCP Server to manage billing infrastructure.
|
|
5
4
|
---
|
|
@@ -45,7 +44,7 @@ To use it, you'll need to:
|
|
|
45
44
|
|
|
46
45
|
Choose your preferred client below.
|
|
47
46
|
|
|
48
|
-
###
|
|
47
|
+
### Cursor
|
|
49
48
|
|
|
50
49
|
Open the command palette and choose "Cursor Settings" > "MCP" > "Add new global MCP server".
|
|
51
50
|
|
|
@@ -59,13 +58,13 @@ Open the command palette and choose "Cursor Settings" > "MCP" > "Add new global
|
|
|
59
58
|
}
|
|
60
59
|
```
|
|
61
60
|
|
|
62
|
-
###
|
|
61
|
+
### Claude Code
|
|
63
62
|
|
|
64
63
|
```bash
|
|
65
64
|
claude mcp add --transport http commet https://commet.co/mcp/v2
|
|
66
65
|
```
|
|
67
66
|
|
|
68
|
-
###
|
|
67
|
+
### Claude Desktop
|
|
69
68
|
|
|
70
69
|
Open Claude Desktop settings > "Developer" tab > "Edit Config".
|
|
71
70
|
|
|
@@ -79,7 +78,7 @@ Open Claude Desktop settings > "Developer" tab > "Edit Config".
|
|
|
79
78
|
}
|
|
80
79
|
```
|
|
81
80
|
|
|
82
|
-
###
|
|
81
|
+
### Codex
|
|
83
82
|
|
|
84
83
|
```bash
|
|
85
84
|
codex mcp add commet --url https://commet.co/mcp/v2
|
|
@@ -91,7 +90,7 @@ The command opens the browser for OAuth authentication. Once complete, verify wi
|
|
|
91
90
|
codex mcp list
|
|
92
91
|
```
|
|
93
92
|
|
|
94
|
-
###
|
|
93
|
+
### Copilot
|
|
95
94
|
|
|
96
95
|
Add the following to your VS Code `settings.json`:
|
|
97
96
|
|
|
@@ -108,7 +107,7 @@ Add the following to your VS Code `settings.json`:
|
|
|
108
107
|
}
|
|
109
108
|
```
|
|
110
109
|
|
|
111
|
-
###
|
|
110
|
+
### Gemini
|
|
112
111
|
|
|
113
112
|
Add the following to `~/.gemini/settings.json`:
|
|
114
113
|
|
|
@@ -122,7 +121,7 @@ Add the following to `~/.gemini/settings.json`:
|
|
|
122
121
|
}
|
|
123
122
|
```
|
|
124
123
|
|
|
125
|
-
###
|
|
124
|
+
### OpenCode
|
|
126
125
|
|
|
127
126
|
Add the following to `opencode.json`:
|
|
128
127
|
|
|
@@ -137,7 +136,7 @@ Add the following to `opencode.json`:
|
|
|
137
136
|
}
|
|
138
137
|
```
|
|
139
138
|
|
|
140
|
-
###
|
|
139
|
+
### Windsurf
|
|
141
140
|
|
|
142
141
|
```json
|
|
143
142
|
{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-04-03
|
|
3
2
|
title: Pricing Models Skill
|
|
4
3
|
description: Choose and implement the right pricing model for your SaaS with AI agents.
|
|
5
4
|
---
|
|
@@ -25,5 +24,5 @@ npx skills add commet-labs/pricing-models
|
|
|
25
24
|
|
|
26
25
|
## Learn More
|
|
27
26
|
|
|
28
|
-
- [**View on GitHub**](https://github.com/commet-labs/pricing-models)
|
|
29
|
-
- [**View on skills.sh**](https://skills.sh/commet-labs/pricing-models)
|
|
27
|
+
- [**View on GitHub**](https://github.com/commet-labs/pricing-models) — See the full source code and documentation.
|
|
28
|
+
- [**View on skills.sh**](https://skills.sh/commet-labs/pricing-models) — Installation stats and security audits.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-04-03
|
|
3
2
|
title: Subscription Patterns Skill
|
|
4
3
|
description: Universal subscription billing patterns for trials, proration, dunning, and more.
|
|
5
4
|
---
|
|
@@ -25,5 +24,5 @@ npx skills add commet-labs/subscription-patterns
|
|
|
25
24
|
|
|
26
25
|
## Learn More
|
|
27
26
|
|
|
28
|
-
- [**View on GitHub**](https://github.com/commet-labs/subscription-patterns)
|
|
29
|
-
- [**View on skills.sh**](https://skills.sh/commet-labs/subscription-patterns)
|
|
27
|
+
- [**View on GitHub**](https://github.com/commet-labs/subscription-patterns) — See the full source code and documentation.
|
|
28
|
+
- [**View on skills.sh**](https://skills.sh/commet-labs/subscription-patterns) — Installation stats and security audits.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Api Keys
|
|
2
2
|
|
|
3
|
-
API version: `2026-
|
|
3
|
+
API version: `2026-08-27`
|
|
4
4
|
|
|
5
5
|
## delete
|
|
6
6
|
|
|
@@ -41,12 +41,13 @@ List API keys with cursor-based pagination. Keys are returned without the full s
|
|
|
41
41
|
|
|
42
42
|
`POST /api-keys` · operation `create-api-key`
|
|
43
43
|
|
|
44
|
-
Create a
|
|
44
|
+
Create a full-access or restricted API key. Provide permissions to restrict access; the full key is returned only once. A restricted key with api_key: write may only create restricted keys with the same or fewer permissions, and they expire no later than the key that creates them.
|
|
45
45
|
|
|
46
46
|
### Parameters
|
|
47
47
|
|
|
48
48
|
- `name` (`string`, required)
|
|
49
49
|
- `expiresInDays` (`number`, optional)
|
|
50
|
+
- `permissions` (`{ customer?: Array<"read"> | ["read", "write"] | ["write", "read"]; subscription?: Array<"read"> | ["read", "write"] | ["write", "read"]; invoice?: Array<"read"> | ["read", "write"] | ["write", "read"]; usage?: Array<"read"> | ["read", "write"] | ["write", "read"]; seat?: Array<"read"> | ["read", "write"] | ["write", "read"]; plan?: Array<"read"> | ["read", "write"] | ["write", "read"]; plan_group?: Array<"read"> | ["read", "write"] | ["write", "read"]; feature?: Array<"read"> | ["read", "write"] | ["write", "read"]; addon?: Array<"read"> | ["read", "write"] | ["write", "read"]; credit_pack?: Array<"read"> | ["read", "write"] | ["write", "read"]; offer?: Array<"read"> | ["read", "write"] | ["write", "read"]; promo_code?: Array<"read"> | ["read", "write"] | ["write", "read"]; market_group?: Array<"read"> | ["read", "write"] | ["write", "read"]; payment?: Array<"read"> | ["read", "write"] | ["write", "read"]; transaction?: Array<"read"> | ["read", "write"] | ["write", "read"]; payout?: Array<"read"> | ["read", "write"] | ["write", "read"]; test_clock?: Array<"read"> | ["read", "write"] | ["write", "read"]; organization?: Array<"read"> | ["read", "write"] | ["write", "read"]; api_key?: Array<"read"> | ["read", "write"] | ["write", "read"] }`, optional)
|
|
50
51
|
|
|
51
52
|
### Request options
|
|
52
53
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Webhooks
|
|
2
2
|
|
|
3
|
-
API version: `2026-
|
|
3
|
+
API version: `2026-08-27`
|
|
4
4
|
|
|
5
5
|
## get
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ Update a webhook endpoint. Only the provided fields change.
|
|
|
30
30
|
|
|
31
31
|
- `id` (`string`, required)
|
|
32
32
|
- `url` (`string`, optional)
|
|
33
|
-
- `events` (`Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">`, optional)
|
|
33
|
+
- `events` (`Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.pause_scheduled" | "subscription.pause_updated" | "subscription.pause_revoked" | "subscription.paused" | "subscription.resumed" | "subscription.resume_failed" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">`, optional)
|
|
34
34
|
- `description` (`string | null`, optional)
|
|
35
35
|
- `isActive` (`boolean`, optional)
|
|
36
36
|
- `apiVersion` (`string`, optional)
|
|
@@ -107,7 +107,7 @@ Create a new webhook endpoint. The response includes the signing secret which is
|
|
|
107
107
|
### Parameters
|
|
108
108
|
|
|
109
109
|
- `url` (`string`, required)
|
|
110
|
-
- `events` (`Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">`, required)
|
|
110
|
+
- `events` (`Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.pause_scheduled" | "subscription.pause_updated" | "subscription.pause_revoked" | "subscription.paused" | "subscription.resumed" | "subscription.resume_failed" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">`, required)
|
|
111
111
|
- `description` (`string`, optional)
|
|
112
112
|
- `apiVersion` (`string`, optional)
|
|
113
113
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# API reference
|
|
2
2
|
|
|
3
|
-
Generated from Commet API version `2026-
|
|
3
|
+
Generated from Commet API version `2026-08-27`.
|
|
4
4
|
|
|
5
5
|
Use this reference for the exact resources, methods, parameters, and return types available in the installed SDK.
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ Use this reference for the exact resources, methods, parameters, and return type
|
|
|
23
23
|
- [Portal](./portal.md) — 1 operations
|
|
24
24
|
- [Promo Codes](./promo-codes.md) — 4 operations
|
|
25
25
|
- [Seats](./seats.md) — 6 operations
|
|
26
|
-
- [Subscriptions](./subscriptions.md) —
|
|
26
|
+
- [Subscriptions](./subscriptions.md) — 22 operations
|
|
27
27
|
- [Test Clock](./test-clock.md) — 3 operations
|
|
28
28
|
- [Transactions](./transactions.md) — 4 operations
|
|
29
29
|
- [Usage](./usage.md) — 3 operations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Promo Codes
|
|
2
2
|
|
|
3
|
-
API version: `2026-
|
|
3
|
+
API version: `2026-08-27`
|
|
4
4
|
|
|
5
5
|
## get
|
|
6
6
|
|
|
@@ -66,7 +66,7 @@ List promo codes with cursor-based pagination.
|
|
|
66
66
|
|
|
67
67
|
`POST /promo-codes` · operation `create-promo-code`
|
|
68
68
|
|
|
69
|
-
Create a distribution code for an existing Offer
|
|
69
|
+
Create a distribution code for an existing Offer with one or more sequential discount phases and an optional leading trial. The code owns redemption restrictions.
|
|
70
70
|
|
|
71
71
|
### Parameters
|
|
72
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Subscriptions
|
|
2
2
|
|
|
3
|
-
API version: `2026-
|
|
3
|
+
API version: `2026-08-27`
|
|
4
4
|
|
|
5
5
|
## deactivateAddon
|
|
6
6
|
|
|
@@ -189,6 +189,65 @@ Remove the quoted direct Offer from a subscription's pending payment checkout. T
|
|
|
189
189
|
|
|
190
190
|
`Subscription`
|
|
191
191
|
|
|
192
|
+
## pause
|
|
193
|
+
|
|
194
|
+
`commet.subscriptions.pause(params, options?)`
|
|
195
|
+
|
|
196
|
+
`POST /subscriptions/{id}/pause` · operation `pause-subscription`
|
|
197
|
+
|
|
198
|
+
Pause immediately or schedule a pause for the end of the current billing or trial period. Set durationDays to null for an indefinite pause.
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
- `id` (`string`, required)
|
|
203
|
+
- `mode` (`"immediate" | "period_end"`, required)
|
|
204
|
+
- `durationDays` (`number | null`, required)
|
|
205
|
+
|
|
206
|
+
### Request options
|
|
207
|
+
|
|
208
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
209
|
+
|
|
210
|
+
### Returns
|
|
211
|
+
|
|
212
|
+
`Subscription`
|
|
213
|
+
|
|
214
|
+
## updatePause
|
|
215
|
+
|
|
216
|
+
`commet.subscriptions.updatePause(params, options?)`
|
|
217
|
+
|
|
218
|
+
`PATCH /subscriptions/{id}/pause` · operation `update-subscription-pause`
|
|
219
|
+
|
|
220
|
+
Change the duration of a scheduled or active pause. Set durationDays to null to make it indefinite.
|
|
221
|
+
|
|
222
|
+
### Parameters
|
|
223
|
+
|
|
224
|
+
- `id` (`string`, required)
|
|
225
|
+
- `durationDays` (`number | null`, required)
|
|
226
|
+
|
|
227
|
+
### Request options
|
|
228
|
+
|
|
229
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
230
|
+
|
|
231
|
+
### Returns
|
|
232
|
+
|
|
233
|
+
`Subscription`
|
|
234
|
+
|
|
235
|
+
## revokePause
|
|
236
|
+
|
|
237
|
+
`commet.subscriptions.revokePause(params, options?)`
|
|
238
|
+
|
|
239
|
+
`DELETE /subscriptions/{id}/pause` · operation `revoke-subscription-pause`
|
|
240
|
+
|
|
241
|
+
Revoke a pause before it becomes effective. Active pauses must be resumed instead.
|
|
242
|
+
|
|
243
|
+
### Parameters
|
|
244
|
+
|
|
245
|
+
- `id` (`string`, required)
|
|
246
|
+
|
|
247
|
+
### Returns
|
|
248
|
+
|
|
249
|
+
`Subscription`
|
|
250
|
+
|
|
192
251
|
## updatePaymentMethod
|
|
193
252
|
|
|
194
253
|
`commet.subscriptions.updatePaymentMethod(params, options?)`
|
|
@@ -274,6 +333,26 @@ Generates a hosted, signed recovery link that lets the customer pay the outstand
|
|
|
274
333
|
|
|
275
334
|
`RecoveryLink`
|
|
276
335
|
|
|
336
|
+
## resume
|
|
337
|
+
|
|
338
|
+
`commet.subscriptions.resume(params, options?)`
|
|
339
|
+
|
|
340
|
+
`POST /subscriptions/{id}/resume` · operation `resume-subscription`
|
|
341
|
+
|
|
342
|
+
Resume a paused subscription. Immediate pauses continue the preserved period without a charge. Period-end pauses charge a new period before access is restored.
|
|
343
|
+
|
|
344
|
+
### Parameters
|
|
345
|
+
|
|
346
|
+
- `id` (`string`, required)
|
|
347
|
+
|
|
348
|
+
### Request options
|
|
349
|
+
|
|
350
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
351
|
+
|
|
352
|
+
### Returns
|
|
353
|
+
|
|
354
|
+
`SubscriptionResume`
|
|
355
|
+
|
|
277
356
|
## get
|
|
278
357
|
|
|
279
358
|
`commet.subscriptions.get(params)`
|
|
@@ -349,7 +428,7 @@ List all subscriptions. Filter by customer ID or status.
|
|
|
349
428
|
|
|
350
429
|
`POST /subscriptions` · operation `create-subscription`
|
|
351
430
|
|
|
352
|
-
Create a subscription for a customer. Commet selects the default price when priceId is omitted
|
|
431
|
+
Create a subscription for a customer. Commet selects the default price when priceId is omitted. The subscription starts at the base USD price; market and currency are resolved from the buyer's request country when the checkout opens. Without an offer override, Commet applies the price's automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID.
|
|
353
432
|
|
|
354
433
|
### Parameters
|
|
355
434
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastModified: 2026-07-31
|
|
3
2
|
title: API Versioning
|
|
4
3
|
description: How Commet versions its API and webhooks so your integration never breaks unexpectedly.
|
|
5
4
|
---
|
|
@@ -10,7 +9,7 @@ Commet uses date-based API versioning inspired by Stripe. Every breaking change
|
|
|
10
9
|
|
|
11
10
|
Versions use the date they were released: `YYYY-MM-DD` (e.g. `2026-05-01`).
|
|
12
11
|
|
|
13
|
-
The current version is
|
|
12
|
+
The current version is `2026-08-27`.
|
|
14
13
|
|
|
15
14
|
## How versions are resolved
|
|
16
15
|
|