Spend

the plan, credits and usage

usagev1.0.0

usage: the share of the plan's allowance used and the credit balance

read

Read usage and plan

usage_read: Read the billing account's usage by subject: windows (the percentage of each of the plan's windows used, and the prepaid credit balance in dollars); in the app also days (consumption by day and month) or change (what a move would charge).Pay-as-you-goanswers inline

FieldTypeRequiredDescription
subjectstringrequired'windows' on a key; 'days' or 'change' in the app
teamIdstringoptionala team whose billing account this acts on, which its admins keep; empty is the caller's own
monthsnumberoptionalfor days: the calendar months read, the current one included (3 by default, 12 at most)
tiernumberoptionalfor change: the tier the preview prices
annualbooleanoptionalfor change: price the annual interval

Contract A read changes nothing and calls no model; a team's account is read by its admins, and change by its billing owner alone.

Contract On a key the read is windows alone: each window as a percentage used and the credit balance in dollars, never an allowance in dollars or a plan change's preview.

Contract change answers what a plan move would charge, quoting the processor's own figure; it reads the processor, so a turn answers windows and days and sends change to the billing page.