Credit Packs
Configure credit packages that customers can purchase from the Commet Customer Portal.
Credit Packs are additional credit packages customers can purchase when they run out of included plan credits. Only available for plans using the Credits consumption model.
Credit pack components
| Component | Description | Example |
|---|---|---|
| Pack Name | Customer-facing name | "Starter Pack", "Power Pack" |
| Credits | Number of credits in the pack | 100, 500, 2000 |
| Price | How much the pack costs | $10.00, $40.00 |
| Visibility | Which plans can see the pack | All credits plans, or specific ones |
Availability by subscription status
Credit packs can be purchased on any subscription with a payment method — including during a trial and on free plans. Free plan customers are prompted to enter a payment method on their first purchase.
Create credit packs in the dashboard
Go to Credit Packs and click Create Credit Pack. Pack names must be unique within your organization. By default, packs are available to all credits-based plans. You can restrict a pack to specific plans only — useful for offering enterprise-only bulk packs.
List credit packs via SDK
const packs = await commet.creditPacks.list()Response:
{
"success": true,
"data": [
{
"id": "cpk_abc123",
"name": "Starter Pack",
"description": "100 credits for light usage",
"credits": 100,
"price": 1000,
"currency": "usd"
}
]
}The price field is in cents (1000 = $10.00). Prices are always in USD.
Related
- Consumption Models — How credits-based billing works
- Manage Plans — Create plans with consumption models
- Customer Portal — Where customers purchase credit packs
- Configure Features — Define credit costs per feature
How is this guide?