One member, and whether they may manage billing
Ask this before you show your billing pages to a person. `can_manage_billing` is true for the customer's billing owner only.
Loading the operation...
Whether the customer may use the service now, by subscription, payment and limits GET
One answer for a middleware: the customer's subscription, the meters asked for, `allowed` and the `reason` that decided. An unknown customer is 200 with `allowed` false and reason `no_customer`. `notices` lists what to show the customer, ready for a banner. Denied: `suspended` (you suspended the service), `no_subscription`, `cancelled`, `paused`, `unpaid` (an invoice became uncollectible), `awaiting_payment` (the first fee invoice is not paid yet, outside a trial), `limit_reached` (a meter asked for is at a hard limit; limits count in a trial too) and `not_member` (`member` given and not a member of the customer). Allowed: `ok`, `trialing` and `past_due` (a renewal is being retried; show a notice). For an organisation ask with the organisation id: every member gets the same answer.
On-time usage of a customer in a period, per meter GET
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.