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
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.
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.- TypeScript
- Python
- Go
- Java
- PHP
- cURL
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.