> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meteroid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List plan version entitlements



## OpenAPI

````yaml https://api.meteroid.com/api-docs/openapi.json get /api/v1/plan-versions/{plan_version_id}/entitlements
openapi: 3.1.0
info:
  title: meteroid
  description: ''
  license:
    name: LicenseRef-Meteroid-EE
    identifier: LicenseRef-Meteroid-EE
  version: 0.1.0
servers: []
security: []
tags:
  - name: Add-ons
  - name: Batch Jobs
  - name: Budgets
    description: >-
      Beta: may change before general availability. Spending limits on a
      customer's usage, or one subscription's, per currency, with alerts at
      percentages of the amount.
    x-beta: true
  - name: Checkout Sessions
  - name: Checks
    description: >-
      Beta: may change before general availability. Whether a customer may
      consume more of a feature right now.
    x-beta: true
  - name: Connect
    description: Manage connected accounts (Express & Standard)
  - name: Coupons
  - name: Credit Notes
  - name: Credit units
    description: >-
      Custom denominations, such as "credits", that usage can be priced in and
      credit granted or sold in, instead of money.
  - name: Credits
    description: >-
      Prepaid credit: a customer's wallets, credit grants, ledger and top-ups.
      Promotional credit applies before tax like a discount; paid credit applies
      after tax like a payment.
  - name: Custom Properties
  - name: Customers
  - name: Entitlements
  - name: Events
  - name: Features
  - name: Invoices
  - name: Licenses
    description: >-
      Licenses for your customers' self-hosted installations: signed tokens
      carrying their plan's entitlements, activated and refreshed by the
      installation over the public licensing endpoints.
  - name: Metrics
  - name: OAuth
    description: OAuth 2.0 token endpoints (public, client-credentials auth)
  - name: OAuth Apps
    description: Manage OAuth applications for Connect integrations
  - name: Plans
  - name: Product Families
  - name: Products
  - name: Subscriptions
  - name: Usage
  - name: Usage costs
    description: >-
      Beta: may change before general availability. A customer's or a
      subscription's usage events and usage over time, with what they cost.
    x-beta: true
  - name: Webhook Endpoints
    description: Manage outbound webhook endpoints and inspect their deliveries
paths:
  /api/v1/plan-versions/{plan_version_id}/entitlements:
    get:
      tags:
        - Plans
        - Entitlements
      summary: List plan version entitlements
      operationId: list_plan_version_entitlements
      parameters:
        - name: plan_version_id
          in: path
          description: Plan version ID
          required: true
          schema:
            $ref: '#/components/schemas/PlanVersionId'
      responses:
        '200':
          description: Resolved entitlements for this plan version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolvedEntitlementListResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '404':
          description: Plan version not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    PlanVersionId:
      type: string
      format: MeteroidId
      examples:
        - plv_7n42DGM5Tflk9n8mt7Fhc7
    ResolvedEntitlementListResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ResolvedEntitlement'
    RestErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    ResolvedEntitlement:
      type: object
      description: >-
        Merged entitlement value for a feature across the priority hierarchy,
        without usage data.
      required:
        - feature
        - value
      properties:
        feature:
          $ref: '#/components/schemas/FeatureRef'
        value:
          $ref: '#/components/schemas/ResolvedEntitlementValue'
    ErrorCode:
      type: string
      enum:
        - BAD_REQUEST
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - UNAUTHORIZED
        - TOKEN_EXPIRED
        - TOO_MANY_REQUESTS
        - INTERNAL_SERVER_ERROR
    FeatureRef:
      type: object
      required:
        - id
        - name
        - code
      properties:
        code:
          type: string
          description: >-
            Unique key used to reference this feature in your code. Cannot be
            changed after creation.
        id:
          $ref: '#/components/schemas/FeatureId'
        name:
          type: string
        product:
          oneOf:
            - $ref: '#/components/schemas/EntitlementProductRef'
            - type: 'null'
    ResolvedEntitlementValue:
      oneOf:
        - $ref: '#/components/schemas/BooleanResolvedEntitlementValue'
        - $ref: '#/components/schemas/MeteredResolvedEntitlementValue'
        - $ref: '#/components/schemas/ConfigResolvedEntitlementValue'
      discriminator:
        propertyName: type
        mapping:
          BOOLEAN: '#/components/schemas/BooleanResolvedEntitlementValue'
          CONFIG: '#/components/schemas/ConfigResolvedEntitlementValue'
          METERED: '#/components/schemas/MeteredResolvedEntitlementValue'
    FeatureId:
      type: string
      format: MeteroidId
      examples:
        - feat_7n42DGM5Tflk9n8mt7Fhc7
    EntitlementProductRef:
      type: object
      description: Minimal reference to the product a feature belongs to.
      required:
        - id
        - name
      properties:
        id:
          $ref: '#/components/schemas/ProductId'
        name:
          type: string
    BooleanResolvedEntitlementValue:
      type: object
      required:
        - enabled
        - type
      properties:
        enabled:
          type: boolean
        type:
          type: string
          enum:
            - BOOLEAN
    MeteredResolvedEntitlementValue:
      type: object
      required:
        - metric_id
        - reset_period
        - enabled
        - type
      properties:
        enabled:
          type: boolean
        grace_pct:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            `BLOCK` only: usage allowed beyond the limit before it is refused,
            in percent of it.
          minimum: 0
        group_by:
          type:
            - string
            - 'null'
          description: >-
            Event property the limit applies to separately; usage is then the
            largest value's.
        limit:
          type:
            - string
            - 'null'
          format: decimal
        metric_id:
          $ref: '#/components/schemas/BillableMetricId'
        overage_behavior:
          oneOf:
            - $ref: '#/components/schemas/EntitlementOverageBehavior'
              description: What happens at the limit.
            - type: 'null'
        reset_period:
          $ref: '#/components/schemas/ResetPeriod'
        thresholds:
          type:
            - array
            - 'null'
          items:
            type: integer
            format: int32
            minimum: 0
          description: Percents of the limit at which an alert is sent, ascending.
        type:
          type: string
          enum:
            - METERED
        warning_threshold_pct:
          type:
            - integer
            - 'null'
          format: int32
          description: 'Deprecated: the lowest of `thresholds`.'
          minimum: 0
    ConfigResolvedEntitlementValue:
      type: object
      required:
        - value
        - type
      properties:
        type:
          type: string
          enum:
            - CONFIG
        value:
          $ref: '#/components/schemas/ConfigValue'
    ProductId:
      type: string
      format: MeteroidId
      examples:
        - prd_7n42DGM5Tflk9n8mt7Fhc7
    BillableMetricId:
      type: string
      format: MeteroidId
      examples:
        - bm_7n42DGM5Tflk9n8mt7Fhc7
    EntitlementOverageBehavior:
      type: string
      description: What happens once usage reaches the limit.
      enum:
        - BLOCK
        - ALLOW
    ResetPeriod:
      oneOf:
        - $ref: '#/components/schemas/BillingCycleResetPeriod'
          description: >-
            Resets each time your subscription renews — anchored to your billing
            cycle.
        - $ref: '#/components/schemas/CalendarResetPeriod'
          description: >-
            Resets on calendar boundaries (e.g. the 1st of every month) — not
            tied to subscription start date.
        - $ref: '#/components/schemas/FixedWindowResetPeriod'
          description: >-
            Resets at regular intervals — anchored to your subscription's exact
            activation time.
        - $ref: '#/components/schemas/SlidingWindowResetPeriod'
          description: >-
            Always ends at now — e.g. 30 days means the last 30 days, old usage
            drops off automatically.
        - $ref: '#/components/schemas/NeverResetPeriod'
          description: >-
            Never resets — counts all usage since the subscription was
            activated.
      discriminator:
        propertyName: type
        mapping:
          BILLING_CYCLE: '#/components/schemas/BillingCycleResetPeriod'
          CALENDAR: '#/components/schemas/CalendarResetPeriod'
          FIXED_WINDOW: '#/components/schemas/FixedWindowResetPeriod'
          NEVER: '#/components/schemas/NeverResetPeriod'
          SLIDING_WINDOW: '#/components/schemas/SlidingWindowResetPeriod'
    ConfigValue:
      oneOf:
        - $ref: '#/components/schemas/NumberConfigValue'
        - $ref: '#/components/schemas/BooleanConfigValue'
        - $ref: '#/components/schemas/TextConfigValue'
        - $ref: '#/components/schemas/JsonConfigValue'
      description: >-
        A static, typed configuration value carried by a Config entitlement.
        Resolved synchronously

        through the entitlement hierarchy — no metric, no usage counter.
      discriminator:
        propertyName: kind
        mapping:
          BOOLEAN: '#/components/schemas/BooleanConfigValue'
          JSON: '#/components/schemas/JsonConfigValue'
          NUMBER: '#/components/schemas/NumberConfigValue'
          TEXT: '#/components/schemas/TextConfigValue'
    BillingCycleResetPeriod:
      type: object
      description: >-
        Resets each time your subscription renews — anchored to your billing
        cycle.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - BILLING_CYCLE
    CalendarResetPeriod:
      type: object
      description: >-
        Resets on calendar boundaries (e.g. the 1st of every month) — not tied
        to subscription start date.
      required:
        - unit
        - interval
        - type
      properties:
        interval:
          type: integer
          format: int32
          minimum: 0
        type:
          type: string
          enum:
            - CALENDAR
        unit:
          $ref: '#/components/schemas/CalendarUnit'
    FixedWindowResetPeriod:
      type: object
      description: >-
        Resets at regular intervals — anchored to your subscription's exact
        activation time.
      required:
        - unit
        - interval
        - type
      properties:
        interval:
          type: integer
          format: int32
          minimum: 0
        type:
          type: string
          enum:
            - FIXED_WINDOW
        unit:
          $ref: '#/components/schemas/CalendarUnit'
    SlidingWindowResetPeriod:
      type: object
      description: >-
        Always ends at now — e.g. 30 days means the last 30 days, old usage
        drops off automatically.

        A sliding window has no reset moment (`reset_at` is absent) and sends no
        threshold or

        limit-reached webhooks; it is enforced by the entitlement check.
      required:
        - unit
        - interval
        - type
      properties:
        interval:
          type: integer
          format: int32
          minimum: 0
        type:
          type: string
          enum:
            - SLIDING_WINDOW
        unit:
          $ref: '#/components/schemas/CalendarUnit'
    NeverResetPeriod:
      type: object
      description: Never resets — counts all usage since the subscription was activated.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - NEVER
    NumberConfigValue:
      type: object
      description: A number config value (decimal, encoded as a string).
      required:
        - value
        - kind
      properties:
        kind:
          type: string
          enum:
            - NUMBER
        value:
          type: string
          format: decimal
    BooleanConfigValue:
      type: object
      description: A boolean config value.
      required:
        - value
        - kind
      properties:
        kind:
          type: string
          enum:
            - BOOLEAN
        value:
          type: boolean
    TextConfigValue:
      type: object
      description: A text config value.
      required:
        - value
        - kind
      properties:
        kind:
          type: string
          enum:
            - TEXT
        value:
          type: string
    JsonConfigValue:
      type: object
      description: >-
        A structured (JSON) config value — the "metadata" case, several fields
        in one entitlement.
      required:
        - value
        - kind
      properties:
        kind:
          type: string
          enum:
            - JSON
        value: {}
    CalendarUnit:
      type: string
      enum:
        - HOUR
        - DAY
        - WEEK
        - MONTH
        - YEAR
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.