Meter
A meter: what a usage charge on it bills. It belongs to one product and measures the signals named eventName whose data passes every filter.
- aggregationType:requiredProperties: 2
What each matching signal adds: 1 (
count), or the number atfieldin itsdata(sum; a field that's missing, negative or not a number adds 0). A signal from a customer unit that isn't billable adds 0 either way. - eventType: string
Name requiredThe signal event name it measures.
- filtersType:requiredProperties: 3
Every filter must pass for a signal to count. Empty, every signal of the event counts.
- idType: stringrequired
The meter's Spondo Billing ID.
- lockedType: booleanrequired
True once an order that isn't a draft bills on the meter. What it counts (
eventName,filters,aggregation) can't change then. - nameType: stringrequired
The meter's name, shown on invoice lines of charges that bill on it.
- productType: string
Id requiredThe product the meter belongs to. Only that product's charges can bill on it.
- statusType: "active" or "archived"enumrequired
- archivedType: string | nullFormat: date-time
At the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- createdType: stringFormat: date-time
At the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- descriptionType: string | null
- updatedType: stringFormat: date-time
At the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z