> ## 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 billing config by category



## OpenAPI

````yaml specs/billing_api_docs.json get /api/v1/billing-configs/category/{category}
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/billing-configs/category/{category}:
    get:
      tags:
        - Billing Configs
      summary: Get billing config by category
      operationId: BillingConfigController_findByCategory
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: category
          required: true
          in: path
          description: The category of the billing config
          example: upgrade
          schema:
            enum:
              - upgrade
              - downgrade
              - billing
              - grace_period
              - terminate
            type: string
      responses:
        '200':
          description: Returns the billing config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateBillingConfigDto'
        '404':
          description: Not Found - Billing config not found
      security:
        - bearer: []
components:
  schemas:
    CreateBillingConfigDto:
      type: object
      properties:
        configKey:
          oneOf:
            - enum:
                - timing_policy
            - type: string
              description: Plan code for grace periods
          description: Config key - either a type or plan code
        configValue:
          oneOf:
            - enum:
                - immediate
                - next_cycle
            - type: number
              minimum: 0
          description: Config value - either a type or grace period days
        configCategory:
          type: string
          example: upgrade
          description: Config key type (e.g. upgrade, downgrade, terminate)
        status:
          type: string
          example: active
          description: Status Type (e.g. active)
        description:
          type: string
          example: Immediate Upgrade
          description: Description of the billing config
      required:
        - configKey
        - configValue
        - configCategory
        - status
        - description
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: opaque
      type: http

````