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

# Get usage and quota for a subscription and entitlement



## OpenAPI

````yaml specs/billing_api_docs.json get /api/v1/entitlements/usage-info
openapi: 3.0.1
info:
  title: Billing API
  description: Billing service for managing subscriptions, payments, and entitlements
  contact: {}
  version: '1.0'
servers:
  - url: https://dev-billing-api.iqraa.ai/api/v1
security: []
tags:
  - name: Customers
    description: Customers related endpoints
  - name: Subscriptions
    description: Subscription related endpoints
  - name: Plans
    description: Plans related endpoints
  - name: Entitlements
    description: Entitlements related endpoints
  - name: Payments
    description: Payments related endpoints
  - name: Emails
    description: Email related endpoints
paths:
  /api/v1/entitlements/usage-info:
    get:
      tags:
        - Entitlements
      summary: Get usage and quota for a subscription and entitlement
      operationId: EntitlementController_getUsageInfo
      parameters:
        - name: entitlementCode
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved usage and quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageInfoResponseDto'
        '403':
          description: Forbidden - Not authorized to get usage info
        '404':
          description: Not Found - Entitlement not found
      security:
        - bearer: []
components:
  schemas:
    UsageInfoResponseDto:
      type: object
      properties:
        usage:
          type: number
          example: 50
          description: Current usage of the entitlement
        quota:
          type: number
          example: 100
          description: Total quota for the entitlement
      required:
        - usage
        - quota
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: opaque
      type: http

````