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
CallPOST /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
More than one product
Credits belong to one subscription. If a customer holds subscriptions to two products, passproductSlug 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 returns402 NO_SUBSCRIPTION.