On-time usage of a customer in a period, per meter
Quantities are exact decimals with the meter's scale. Usage that arrived after the period's cutoff is not included here: it is billed on a later invoice as late usage. `period` defaults to the current period in the tenant's time zone.
Loading the operation...
One member, and whether they may manage billing GET
Ask this before you show your billing pages to a person. `can_manage_billing` is true for the customer's billing owner only.
Usage of one meter against the customer's limit GET
Answered from near-real-time counters. They are eventually consistent (typically well under 2 s behind ingest): `as_of` is the ingest time of the newest event reflected in `used`. Payrudder never blocks ingest on a limit; call this before serving your customer and decide what to do. A customer without an entitlement on the meter is `unlimited`. `period` defaults to the current period in the tenant's time zone. A limit counts over its `window`: the billing month, or an hour, a day, an ISO week, a calendar year or the customer's whole lifetime, in the tenant's time zone. `period` picks the month of a monthly limit; every other window always reports its current one (`window_id`, ending at `resets_at`, which a lifetime window does not have). `allowed` follows the limit's `mode`: a `hard` limit stops allowing at the limit, a `soft` or `notify` one keeps allowing and says `over_limit`. Every window's counter is reconciled against the aggregator every few minutes, so an event delivered twice stops counting twice within one cycle.