Skip to main content
GET
Get rated usage

Query Parameters

cycleStartsAt
string<date-time>
occurredAtFrom
string<date-time>
occurredAtBefore
string<date-time>
bucketMinutes
number
required
bucketOriginStartsAt
string<date-time>
organizationId
string

Response

200 - application/json

OK

calculationBasis
any
required

Read-only estimate using current effective commercial prices and recurring allowances for every period; never actual historical billed amounts.

range
object
required
cycle
object | null
required
currency
any
required
products
object[]
required
buckets
object[]
required

Fixed-duration buckets anchored to bucketOriginStartsAt (default: range start), from the range start up to the earlier of range.endsAt and now. Buckets are zero-filled where nothing was measured, but none start after now, so a range that ends in the future (such as the current cycle) has no future buckets; range.endsAt still reports the full requested end. Aggregate hourly buckets into local calendar days on the client for DST.

totalValueCents
string | null
required

Estimated decimal USD cents under the current effective plan; null without supported current USD terms. Credits are never converted to dollars.

totalChargeCents
string | null
required

Estimated decimal USD cents under the current effective plan; null without supported current USD terms. Credits are never converted to dollars.