Skip to main content
Self-service page where customers manage their subscription, view usage, change plans, and purchase credits. Automatically created with every subscription.

What customers can do

  • View current subscription and billing cycle
  • See usage across all features
  • Upgrade or downgrade plans (requires a Plan Group)
  • Purchase Credit Packs, balance top-ups, and Add-ons
  • Manage saved payment methods and billing details
  • View invoice history
  • Cancel subscription
Purchases are available on active, trialing, and free plan subscriptions. Free plan customers are prompted to add a payment method on their first purchase.

Saved payment methods

Your customers can save several cards and choose their default payment method. A new card becomes the default unless the customer saves it as an alternative. The first saved card is always the default. While a subscription is open:
  • Customers must choose another default before removing the current one.
  • They cannot remove the last saved method or the last method usable with the subscription’s payment connection.
Without an open subscription, customers can remove any saved method. Changing the default or removing methods is blocked while a payment or automatic retry is in progress. Commet can also use saved methods for automatic payment retries.

Generate a portal URL

Portal URLs are not single-use — the customer can revisit the link while the session is alive. A session expires after 30 minutes of inactivity, auto-refreshes while the customer is active, and is capped at 2 hours from creation. Generate a fresh URL on each visit.
You can identify customers by customerId (Commet ID or your external ID) or email.

Next.js helper

@commet/next (Node.js only) provides a one-line route handler that generates portal URLs and redirects automatically.
app/api/commet/portal/route.ts

Custom domains

Serve the portal from your own domain (e.g., billing.acme.com) instead of commet.co. Go to Settings → Custom Domains, add the domain, and point the DNS records shown — portal links use your domain once it verifies. Each custom domain serves one surface: portal or checkout. Checkout pages support custom domains the same way.