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

# Create Subscription Plan



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json post /api/v1/subscriptions/plans
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/subscriptions/plans:
    post:
      tags:
        - Subscriptions
      summary: Create Subscription Plan
      operationId: create_subscription_plan_api_v1_subscriptions_plans_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_create_subscription_plan_api_v1_subscriptions_plans_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionPlanSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    Body_create_subscription_plan_api_v1_subscriptions_plans_post:
      properties:
        name:
          type: string
          title: Name
        price:
          anyOf:
            - type: number
              minimum: 0
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Price
        module_ids:
          items:
            type: integer
          type: array
          title: Module Ids
          default: []
        image:
          anyOf:
            - type: string
              format: binary
            - type: 'null'
          title: Image
      type: object
      required:
        - name
        - price
      title: Body_create_subscription_plan_api_v1_subscriptions_plans_post
    SubscriptionPlanSchema:
      properties:
        name:
          type: string
          title: Name
        price:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Price
        image_url:
          anyOf:
            - type: string
              maxLength: 2083
              minLength: 1
              format: uri
            - type: 'null'
          title: Image Url
        id:
          type: integer
          title: Id
        date_added:
          type: string
          format: date-time
          title: Date Added
        date_updated:
          type: string
          format: date-time
          title: Date Updated
      type: object
      required:
        - name
        - price
        - id
        - date_added
        - date_updated
      title: SubscriptionPlanSchema
      description: Schema for reading SubscriptionPlan.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````