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
| Field | Type | Required | Description |
|---|---|---|---|
| subject | string | required | 'windows' on a key; 'days' or 'change' in the app |
| teamId | string | optional | a team whose billing account this acts on, which its admins keep; empty is the caller's own |
| months | number | optional | for days: the calendar months read, the current one included (3 by default, 12 at most) |
| tier | number | optional | for change: the tier the preview prices |
| annual | boolean | optional | for 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.