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

# List subscription plans and the tenant's selection actions



## OpenAPI

````yaml get /v1/billing/plans
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/billing/plans:
    get:
      tags:
        - Billing
        - Subscription
      summary: List subscription plans and the tenant's selection actions
      operationId: billing.reachable.plans
      parameters:
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionPlanResource'
                required:
                  - success
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    SubscriptionPlanResource:
      type: object
      properties:
        code:
          type: string
          description: The plan code accepted by the subscription endpoints.
        name:
          type: string
          description: The plan name.
        description:
          type: string
          description: The plan description.
        max_users:
          type: string
          description: The included user limit.
        price:
          type:
            - string
            - 'null'
          description: The campaign-adjusted monthly price excluding tax.
        original_price:
          type:
            - string
            - 'null'
          description: The original monthly price excluding tax.
        campaign:
          $ref: '#/components/schemas/RelatedPlanCampaignResource'
          description: The applicable campaign, when available.
        currency:
          type:
            - string
            - 'null'
          description: The ISO currency code.
        tax_rate:
          type:
            - string
            - 'null'
          description: The tax percentage.
        purchasable:
          type: boolean
          description: Whether a self-service price is configured.
        is_current:
          type: boolean
          description: Whether this is the current plan.
        selection_action:
          type: string
          description: >-
            The selection action: purchase, renew, upgrade, schedule_change or
            request_quote.
        purchase_locked:
          type: string
          description: Whether a prepaid plan change prevents another purchase.
        requires_renewal_confirmation:
          type: boolean
          description: Whether an early renewal confirmation is required.
        sales_contact:
          type:
            - object
            - 'null'
          description: >-
            The sales contact for a custom quote, when self-service pricing is
            unavailable; null when no contact is configured.
          properties:
            email:
              type:
                - string
                - 'null'
            phone:
              type:
                - string
                - 'null'
          required:
            - email
            - phone
        quotas:
          type: array
          description: The currently effective included allowances.
          items:
            $ref: '#/components/schemas/BillingPlanQuotaResource'
      required:
        - code
        - name
        - description
        - max_users
        - price
        - original_price
        - campaign
        - currency
        - tax_rate
        - purchasable
        - is_current
        - selection_action
        - purchase_locked
        - requires_renewal_confirmation
        - sales_contact
        - quotas
      title: SubscriptionPlanResource
    RelatedPlanCampaignResource:
      type: object
      properties:
        name:
          type: string
          description: The campaign name.
        percentage:
          type: string
          description: The effective discount percentage.
        remaining_periods:
          type: string
          description: The remaining discounted billing periods.
        valid_to:
          type: string
          description: The campaign expiration instant.
      required:
        - name
        - percentage
        - remaining_periods
        - valid_to
      title: RelatedPlanCampaignResource
    BillingPlanQuotaResource:
      type: object
      properties:
        type:
          type: string
          description: The billing type covered by this allowance.
        quantity:
          type: string
          description: The included quantity.
        unit:
          type: string
          description: The unit of the included quantity.
      required:
        - type
        - quantity
        - unit
      title: BillingPlanQuotaResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://dev.flextell.ai/oauth/authorize
          tokenUrl: https://dev.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

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