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.
| 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 |
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.
Go to Credit Packs and click Create Credit Pack. Pack names must be unique within your organization. Packs are available to all credits-based plans.
const { data } = await commet.creditPacks.list()response = commet.credit_packs.list()result, err := client.CreditPacks.List(ctx)var creditPacks = commet.creditPacks().list();$result = $commet->creditPacks->list();curl https://commet.co/api/v1/credit-packs \
-H "x-api-key: $COMMET_API_KEY"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.
How is this guide?