Skip to main content

Credit Grants

Credit grants allow you to allocate credits to customer accounts. This guide covers creating, managing, and tracking credit grants.

Creating a Credit Grant

From the Dashboard

  1. Navigate to Customers and select a customer
  2. Click the Credits tab
  3. Click Add Credit Grant
  4. Fill in the grant details:
  1. Click Create Grant

Via API

Response:

Grant Types

Monetary Credits

Monetary credits are applied directly to invoices as a payment method.
Characteristics:
  • Must specify a currency
  • Applied at invoice payment time
  • Reduces the amount due
  • Appears as “Credit Applied” on invoice

Unit Credits

Unit credits are consumed against usage-based products and metrics.
Characteristics:
  • Can be tied to a specific metric
  • Consumed as usage events are recorded
  • Tracked separately from monetary balance
  • Ideal for prepaid usage packages

Product and Price Filters

A grant (or a subscription’s credit allocation) can be restricted to specific products or prices, using include and exclude rules. In the dashboard this is the Applies to / Configure Credit Filters dialog on the credit entitlement.
These filters are invoice-time only. They decide which invoice lines the grant’s credits may pay for when an invoice is produced. They do not affect the realtime credit gate: /check and /track resolve a billable metric, not a product, so a grant’s product and price filters are never evaluated there. What a grant funds at the gate is set separately — see Realtime gate funding below.The same applies to a grant made under a subscription. At invoice time the subscription scopes what the grant may pay for; for realtime draws it only records where the grant came from, and its credits are spendable against any metric its gate funding covers.

Realtime Gate Funding

Whether a grant pays for realtime /check and /track draws is a separate setting on the grant, expressed in billable metrics — the only thing the gate ever resolves. A product can sit above several metrics, which is why the invoice-time product and price filters cannot answer this question.
off is the default, including for every grant that already exists. Turning the realtime gate on covers nothing until you opt grants into it — deliberately, so credits bought for something else never start funding the gate by surprise.
Naming a metric that has no active credit consumption configuration is allowed and returns a warning on the response: the grant saves, and that part of the filter funds nothing until the configuration exists.

Grant Status


Expiration Handling

Setting Expiration

Expiration dates are optional but recommended for financial planning.
Expired credits cannot be recovered. Set appropriate expiration windows based on your business needs.

Expiration Notifications

Configure webhooks to notify customers before credits expire:
  1. Go to Settings > Notifications
  2. Enable Credit Expiration Warning
  3. Set warning period (e.g., 30 days before)

Priority System

The priority value determines the order in which credits are consumed when multiple grants exist.
Consumption order:
  1. Grant C (priority 10, earliest expiration)
  2. Grant A (priority 10, later expiration)
  3. Grant B (priority 20)

Priority Best Practices


Viewing Credit Balances

Dashboard

Navigate to Customers > [Customer] > Credits to see:
  • Total available balance
  • Breakdown by grant
  • Consumption history
  • Upcoming expirations

API

Balance Response:

Voiding a Grant

To void an unused or partially used grant:

Dashboard

  1. Go to Customers > [Customer] > Credits
  2. Find the grant and click menu
  3. Select Void Grant
  4. Confirm the action

API

Voiding removes remaining credits immediately. Already-consumed credits are not affected.

Bulk Operations

Import Credits

Upload a CSV to create multiple grants:

Export Credit Report

Generate a report of all credit grants and balances:
  1. Go to Reports > Credits
  2. Set date range and filters
  3. Click Export CSV

Common Scenarios

Promotional Campaign

Award credits to all customers in a segment:

Service Credit for Outage

Issue credits to affected customers:

Prepaid API Package

Sell a block of API calls:

Next Steps

Credit Consumption

Learn how credits are consumed.

Wallets

Set up prepaid wallets.