---
title: "Get customer entitlement history"
method: GET
path: "/v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/history"
tags: ["OpenMeter Entitlements"]
---

# Get customer entitlement history

`GET /v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/history`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/history`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.

Get the balance and usage history of a metered entitlement. The queried range
may span multiple usage periods.

`windowed_history` groups usage into windows of the requested size and reports
the balance at the start of each window. `burndown_history` lists the periods in
which grants were consumed in a fixed order, together with the usage taken from
each grant.

## Path parameters

- `customerId` string, required: ULID (Universally Unique Lexicographically Sortable Identifier).
- `entitlementId` string, required: ULID (Universally Unique Lexicographically Sortable Identifier).

## Query parameters

- `from` string, date-time: [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
- `to` string, date-time: [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
- `window_size` 'PT1H' | 'P1D', required: The meter query granularities the usage history can be grouped into. Sub-hour windows are too expensive to compute and monthly windows are not supported.
- `time_zone` string

## Response `200`

EntitlementHistory response.

- BillingEntitlementHistory: Balance and usage history of a metered entitlement.
  - `windowed_history` BillingEntitlementHistoryWindow[], required: Usage in half-open windows of the requested size, aligned to the requested time zone. Empty windows are included; windows before usage measurement began are omitted.
    - `period` object, required: The period the window covers.
      - `from` string, date-time, required: The start of the period. The period is inclusive at the start.
      - `to` string, date-time, required: The end of the period. The period is exclusive at the end.
    - `usage` string, required: The usage recorded in the window.
    - `balance_at_start` string, required: The entitlement balance at the start of the window.
  - `burndown_history` BillingEntitlementBurndownSegment[], required: Periods in which grants were consumed in a fixed order. A new segment starts whenever grant priorities change or a usage period starts.
    - `period` object, required: The period the segment covers.
      - `from` string, date-time, required: The start of the period. The period is inclusive at the start.
      - `to` string, date-time, required: The end of the period. The period is exclusive at the end.
    - `usage` string, required: The usage recorded in the segment.
    - `overage` string, required: The usage in the segment not covered by any grant.
    - `balance` object, required: The entitlement balance at the start and at the end of the segment.
      - `start` string, required: The balance at the start of the segment.
      - `end` string, required: The balance at the end of the segment.
    - `grant_balances` object, required: The balance of each active grant at the start and at the end of the segment, keyed by grant ID.
      - `start` object, required: The balance of each active grant at the start of the segment.
      - `end` object, required: The balance of each active grant at the end of the segment.
    - `grant_usages` BillingEntitlementGrantUsage[], required: The grants consumed in the segment and the usage taken from each.
      - `grant_id` string, required: The ID of the grant.
      - `usage` string, required: The usage taken from the grant.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2026-10-07** `59663dd13a10`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v3/openmeter/customers/:customerId/entitlements/:entitlementId/history/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
