---
title: "Create customer entitlement grant"
method: POST
path: "/v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/grants"
tags: ["OpenMeter Entitlements"]
---

# Create customer entitlement grant

`POST /v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/grants`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/grants`
- 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.

Issue a grant for a metered entitlement of the customer. Boolean and static
entitlements cannot have grants, so the request is rejected for them.

Grants are immutable. The amount is added to the balance from `effective_at`,
which cannot be earlier than the start of the current usage period.

## Path parameters

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

## Request body

- BillingEntitlementGrantCreateRequest: A grant to issue for a metered entitlement.
  - `amount` string, required: The amount to grant, in the feature's unit. Must be positive.
  - `priority` integer: The priority of the grant. Lower values have higher priority. Grants are consumed in priority order, then by closest expiration, then by earliest creation.
  - `effective_at` string, date-time, required: The time the grant becomes effective and the anchor for recurring grants. The value is truncated to the start of the minute.
  - `expires_after` string, ISO8601: The duration after which the grant expires, counted from `effective_at`. Only single-unit durations are accepted, such as `PT12H`, `P7D`, `P2W`, `P3M`, or `P1Y`. If omitted, the grant never expires.
  - `max_rollover_amount` string: The maximum balance carried over at reset. The balance after a reset is `MIN(max_rollover_amount, MAX(balance_before_reset, min_rollover_amount))`. Defaults to `amount`.
  - `min_rollover_amount` string: The minimum balance carried over at reset. The balance after a reset is `MIN(max_rollover_amount, MAX(balance_before_reset, min_rollover_amount))`. Defaults to `0`.
  - `labels` object: Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
  - `recurrence` object: The recurrence of the grant. When set, the amount is issued again every interval. The anchor defaults to `effective_at`.
    - `interval` string, ISO8601, required: The interval duration in ISO 8601 format.
    - `anchor` string, date-time: A date-time anchor to base the recurring period on.

## Response `201`

EntitlementGrant created response.

- BillingEntitlementGrant: A grant issued for a metered entitlement. Each grant adds its amount to the entitlement's balance from its effective time until it expires, and usage is deducted from the grants in priority order. Grants are immutable, so the balance is deterministic regardless of when it is queried. Deleting a grant ends it at the time of the deletion.
  - `id` string, required: ULID (Universally Unique Lexicographically Sortable Identifier).
  - `entitlement_id` string, required: The ID of the entitlement the grant belongs to.
  - `customer_id` string: The ID of the customer the grant belongs to.
  - `amount` string, required: The granted amount, in the feature's unit.
  - `priority` integer, required: The priority of the grant. Lower values are consumed first: a grant with priority 1 is consumed before one with priority 2. Among equal priorities, the grant closest to expiration is consumed first, then the earliest created.
  - `effective_at` string, date-time, required: The time the grant takes effect.
  - `expires_after` string, ISO8601: The duration after which the grant expires, counted from `effective_at`. Always a single-unit duration (for example `PT12H`, `P7D`, `P2W`, `P3M`, `P1Y`). Absent when the grant never expires.
  - `expires_at` string, date-time: The time the grant expires, calculated from `effective_at` and `expires_after`. The grant is no longer in effect from this time. Absent when the grant never expires.
  - `max_rollover_amount` string, required: The maximum balance the grant carries over at reset. The balance after a reset is `MIN(max_rollover_amount, MAX(balance_before_reset, min_rollover_amount))`.
  - `min_rollover_amount` string, required: The minimum balance the grant carries over at reset. The balance after a reset is `MIN(max_rollover_amount, MAX(balance_before_reset, min_rollover_amount))`.
  - `recurrence` object: The recurrence of the grant. When set, the grant amount is re-issued every interval from the anchor, which defaults to `effective_at`. Absent for non-recurring grants.
    - `anchor` string, date-time, required: A date-time anchor to base the recurring period on.
    - `interval` string, ISO8601, required: The interval duration in ISO 8601 format.
  - `next_recurrence` string, date-time: The next time the grant recurs. Absent for non-recurring grants.
  - `voided_at` string, date-time: The time the grant was voided. A voided grant is no longer in effect from this time.
  - `labels` object: Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
  - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity last update date.
  - `deleted_at` string, date-time: An ISO-8601 timestamp representation of entity deletion date.

## 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/grants/post.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)
