> ## 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.

# Create a new addon



## OpenAPI

````yaml specs/billing_api_docs.json post /api/v1/addon
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/addon:
    post:
      tags:
        - addon
      summary: Create a new addon
      operationId: AddonController_create
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAddonDto'
      responses:
        '201':
          description: The addon has been successfully created.
        '400':
          description: Bad Request - Invalid quota or unlimited entitlement
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '404':
          description: Charge or subscription not found
      security:
        - bearer: []
components:
  schemas:
    CreateAddonDto:
      type: object
      properties:
        chargeId:
          type: string
          description: The ID of the charge
          example: 123e4567-e89b-12d3-a456-426614174000
        subscriptionId:
          type: string
          description: The subscription ID this addon is associated with
          example: 123e4567-e89b-12d3-a456-426614174000
        quota:
          type: number
          description: The quota amount for this addon
          example: 100
          minimum: 1
        isRenewable:
          type: boolean
          description: Whether the addon can be automatically renewed
          example: true
          default: false
      required:
        - chargeId
        - subscriptionId
        - quota
        - isRenewable
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: opaque
      type: http

````