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

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.