Skip to main content
Credits are how Crovver meters usage. When a plan gives a meter allowance, such as 10,000 api_calls a month, each subscriber gets that many credits in a pool keyed by the meter. Your backend consumes credits as the customer uses the resource.

Where credits come from

Refills

Allowances reset at the start of every billing period: the customer gets the full allowance again, and unused plan credits are dropped. Add-on credits are not touched by a refill. A subscription paid for several periods in advance, such as a monthly plan paid a year ahead, still refills once a month. Crovver refills each period on its own schedule, so the customer never gets the whole year’s credits at once.
Pools created before the current dashboard may be set to roll over unused credits, up to a cap. They keep working that way. New allowances always reset.

Consuming credits

Call POST /api/public/credits/consume from your backend with a secret key:
The plan allowance is used first, then add-on credits, starting with the ones that expire soonest. Every call needs an idempotencyKey. Sending the same key again returns the first result and deducts nothing, so retries are safe. Derive the key from the action, such as a request or job ID, never from the current time.

Checking the balance

The response lists each pool with its plan credits, add-on credits, total and limit. See Get credit balance.

More than one product

Credits belong to one subscription. If a customer holds subscriptions to two products, pass productSlug on balance and consume calls to choose the product. Without it, Crovver uses the customer’s most recent live subscription.

Canceled subscriptions

A canceled subscription that is still inside its paid period keeps its credits until the period ends. After that, consumption returns 402 NO_SUBSCRIPTION.
record-usage and check-usage-limit are deprecated. record-usage writes to a table nothing reads, so usage recorded through it is never counted. Use credits/consume and credits/balance instead.