Skip to main content
POST
Get usage by subscription

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json

Usage request

subscription_id
string
required
Example:

"123"

end_time
string<date-time>
Example:

"2024-03-20T00:00:00Z"

lifetime_usage
boolean
Example:

false

start_time
string<date-time>
Example:

"2024-03-13T00:00:00Z"

Response

OK

amount
number
charges
object[]
commitment_amount
number
commitment_utilized
number

Amount of commitment used

currency
string
display_amount
string
end_time
string<date-time>
has_overage
boolean

Whether any usage exceeded commitment

overage_amount
number

Amount charged at overage rate

overage_factor
number
start_time
string<date-time>