subjectId | string | ✓ | Provider id of the metered thing (phone number, meter id, account number); matches the Subscription.id or Bill.sourceId it belongs to when there is one. |
subjectLabel | string | | Human label for the metered thing (e.g. ‘iPhone 15 · (555) 010-1234’). |
metric | string | ✓ | What is measured, free-form (e.g. ‘data’, ‘voice’, ‘text’, ‘electricity’, ‘gas’, ‘water’, ‘storage’). |
description | string | | The provider’s label for the meter. |
used | number | ✓ | Amount used in the period, in unit. |
limit | number | | Allowance for the period, in unit. Absent when there is no cap. |
isUnlimited | boolean | | True when the plan sets no cap for this metric. |
unit | string | ✓ | Unit of used and limit, free-form (e.g. ‘GB’, ‘MB’, ‘minutes’, ‘messages’, ‘kWh’). |
periodStart | date | | First day of the period, YYYY-MM-DD. |
periodEnd | date | | Last day of the period, YYYY-MM-DD. |
isCurrentPeriod | boolean | | True while the period is still open and use is still accruing. |