---
title: "Get aggregated usage"
method: GET
path: "/v2/usage/{subscriptionId}"
tags: ["Usage"]
---

# Get aggregated usage

`GET /v2/usage/{subscriptionId}`

Retrieve the current aggregated usage data for a subscription between 2 instants

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `from` integer, required
- `to` integer, required

## Response `200`

successful operation

- UsageAggregateOutput[]
  - `subscriptionId` string
  - `subscriptionChargeGroupId` string
  - `attributeReferences` AttributeReference[]
    - `attributeDefinitionId` string
    - `attributeValue` string
  - `startAt` integer
  - `endAt` integer
  - `observedDataPoints` integer
  - `usageSum` number
  - `usageMax` number
  - `usageMin` number

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/versions/c30f5b9fbfab/schema)
