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

# Get Single Plan

> Retrieve details of a single subscription plan available on your integration.



## OpenAPI

````yaml openapi.json GET /plans/{plan-id}
openapi: 3.1.0
info:
  title: Spotflow
  description: ''
  license:
    name: MIT
  version: 1.0.0
servers:
  - description: Production server
    url: https://api.spotflow.co/api/v1
security:
  - bearerAuth: []
paths:
  /plans/{plan-id}:
    get:
      description: >-
        Retrieve details of a single subscription plan available on your
        integration.
      operationId: GetSubscriptionPlan
      parameters:
        - name: plan-id
          in: path
          required: true
          description: The unique identifier of the plan whose details are to be retrieved.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successfully retrieved subscription plan details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionPlanDetailsResponse'
        '400':
          description: Bad Request - Invalid plan ID provided.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400'
        '401':
          description: Unauthorized - Invalid or missing authentication token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionError401'
components:
  schemas:
    SubscriptionPlanDetailsResponse:
      type: object
      description: >-
        Represents detailed information about a subscription plan including
        pricing, trial, and region availability.
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the subscription plan (UUID).
        title:
          type: string
          example: string
          description: The title or name of the subscription plan.
        frequency:
          type: string
          enum:
            - DAILY
            - WEEKLY
            - MONTHLY
            - QUARTERLY
            - BIANNUAL
            - ANNUAL
          description: Billing frequency for the subscription plan.
        internalReference:
          type: string
          example: string
          description: Internal reference code or identifier for the plan.
        amount:
          type: number
          description: The cost amount for the subscription plan.
        currency:
          type: string
          example: NGN
          description: The currency of the subscription plan (e.g., NGN, USD).
        status:
          type: string
          enum:
            - ACTIVE
            - INACTIVE
            - ARCHIVED
          description: The current status of the subscription plan.
        regions:
          type: array
          items:
            type: string
          description: List of regions where this plan is available.
        subscribers:
          type: integer
          description: Total number of active subscribers under this plan.
        subscriptions:
          type: integer
          description: Total number of subscriptions created for this plan.
        createdAt:
          type: string
          format: date-time
          description: Date and time when the plan was created.
        trial:
          type: object
          description: Details about the trial period associated with this plan.
          properties:
            id:
              type: string
              format: uuid
              description: Unique identifier for the trial configuration.
            planId:
              type: string
              format: uuid
              description: The plan ID this trial configuration is associated with.
            periodInDays:
              type: integer
              description: Number of days for the trial period.
            pricingList:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - FLAT
                      - TIERED
                    description: The pricing model for the trial period.
                  amount:
                    type: number
                    description: The cost amount during the trial period.
                  currency:
                    type: string
                    example: NGN
                    description: Currency used for the trial pricing.
              description: List of pricing configurations for the trial.
        pricingOptions:
          type: array
          description: Different pricing options available for the plan.
          items:
            type: object
            properties:
              amount:
                type: number
                description: The cost amount for this pricing option.
              currency:
                type: string
                example: NGN
                description: The currency code for this pricing option (e.g., NGN, USD).
      required:
        - id
        - title
        - frequency
        - amount
        - currency
        - status
        - createdAt
    Error400:
      type: object
      properties:
        error:
          type: string
          example: Missing Parameter
        message:
          type: string
          example: missing_parameter
        status:
          type: integer
          format: float
          example: 400
    SubscriptionError401:
      type: object
      properties:
        code:
          type: string
          example: AUTH_ERROR
        message:
          type: string
          example: Authorization token is required.
        statusCode:
          type: integer
          format: float
          example: 401
        requestMarker:
          type: string
          format: uuid
      required:
        - status
        - statusCode
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````