How it fits together
- Grant — add credit to a customer’s subscription.
- Invoice priced — the subscription’s
upcominginvoice accrues charges. - Credit applied — eligible credit reduces the amount due, recorded as a pending ledger entry while the invoice is a draft.
- Invoice issued — the consumption becomes final and whatever remains is collected. See Credit Consumption.
Step 1: Grant credit
Via API
amount and reason are required; credit_type defaults to monetary. See Grant credits to a subscription.
Via dashboard
- Open Customers, select the customer, and open the Credits card (or a subscription’s Credits & Entitlements section).
- Click Add Credits and fill in:
- Click Add Credits.
Step 2: Watch it apply
Nothing else is needed. When the subscription’s next invoice is priced, eligible credit is drawn and the invoice shows the applied credit:
If several grants could pay, they are drawn by priority, then expiring-first, then earliest expiry, then oldest. See consumption order. Monetary credit only applies to invoices in the same currency.
Step 3: Read the balance
/credits/check and /credits/track responses. In the dashboard, Customers → [Customer] → Credits shows the available balance by type, credit held against unissued invoices, credit expiring soon, and the ledger.
Common uses
Recurring allowances (“1,000 calls included every month”) are not manual grants: put a
credit_allocation entitlement on the plan and Alguna provisions an allocation grant each period. To have a package also authorise work in realtime before it happens, turn on gate funding for the grant and use the credit gate.
Ending credit early
There is no void action on an individual grant. Remaining credit is voided by a subscription version change whose transition policy says so — see Entitlements. Credit already applied to an issued invoice is never reversed.Webhooks
See Webhooks. The
credits_depleted automation trigger can email the customer or your team on the same condition.
Next steps
Credit Grants
Filters, gate funding, and grant origins.
Credit Consumption
Invoice-time consumption and the realtime gate.
Wallets
Prepaid money balances.
How Alguna Works
Where credits sit in the chain.