Skip to main content
Three controls decide whether a customer may keep consuming:
Meteroid never rejects usage events: every event you send is recorded and billed. Denying access only changes the answer of the access check. Your product must call it before serving a request, and refuse the request when access is denied.

When credit runs out

Each plan defines what happens once the credit a subscription can spend is used up, under When credit runs out: To override the plan for one customer, open the wallet settings and set Access at zero balance to Always deny access or Never deny access. Access comes back on the next check once credit is added, e.g. with a top-up. Pair Deny access at zero with automatic top-up to avoid interruptions.

Budgets

A budget watches the estimated usage spend of the current billing period, unbilled usage included, in one currency or credit unit. It never moves money. On the customer page, open the Budgets tab and add a budget: The customer is emailed at each threshold. When budgets are enabled in the Customer Portal (see Credit in the Customer Portal), customers can set their own budget, to be alerted only or to stop their usage.

The access check

The access check (entitlement check API) for a metered feature returns has_access: false with one of these reasons, evaluated in this order: Pass subscription_id in the check when the usage belongs to one subscription.