Skip to main content
This quick start gets a credit grant onto a customer’s subscription and shows you where it goes. A credit grant is a balance you allocate — monetary (in the subscription currency) or units (metric quantities) — that Alguna consumes automatically when the customer’s next invoice is priced. It takes a few minutes and needs only an active subscription. For the concepts behind it, read the Credits & Wallets Overview; for the full option set, Credit Grants. If you want customers to deposit money and pay invoices from it, that is a wallet, not a credit grant.

How it fits together

  1. Grant — add credit to a customer’s subscription.
  2. Invoice priced — the subscription’s upcoming invoice accrues charges.
  3. Credit applied — eligible credit reduces the amount due, recorded as a pending ledger entry while the invoice is a draft.
  4. 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

  1. Open Customers, select the customer, and open the Credits card (or a subscription’s Credits & Entitlements section).
  2. Click Add Credits and fill in:
  1. 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

The endpoint reports the monetary balance; unit balances come back on /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.