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

# Get Subscription

> Retrieve a single subscription for a connected account.



## OpenAPI

````yaml get /stripe/connect/accounts/{accountId}/subscriptions/{subscriptionId}
openapi: 3.0.1
info:
  title: ChatDash API Documentation
  description: API Documentation for the ChatDash Server
  version: 2.0.0
servers:
  - url: https://api.chat-dash.com/v1/public
security: []
paths:
  /stripe/connect/accounts/{accountId}/subscriptions/{subscriptionId}:
    get:
      tags:
        - Stripe Connect
      summary: Get Subscription
      description: Retrieve a single subscription for a connected account.
      parameters:
        - name: Authorization
          in: header
          required: true
          description: >-
            All requests to the ChatDash API must be validated with the agency
            API Key found on your agency profile
          schema:
            type: string
        - name: accountId
          in: path
          required: true
          description: The Stripe connected account ID
          schema:
            type: string
        - name: subscriptionId
          in: path
          required: true
          description: The Stripe subscription ID
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: sub_1ABC123DEF456GHI
                  type:
                    type: string
                    example: subscription
                  status:
                    type: string
                    example: active
                  cancelAtPeriodEndDisplay:
                    type: string
                    nullable: true
                  customer:
                    type: string
                    example: cus_ABC123XYZ
                  current_period_start:
                    type: integer
                    example: 1700000000
                  current_period_end:
                    type: integer
                    example: 1702600000
                  created:
                    type: integer
                    example: 1700000000
                  collection_method:
                    type: string
                    example: charge_automatically
                  cancel_at_period_end:
                    type: boolean
                    example: false
                  canceled_at:
                    type: integer
                    nullable: true
                  product:
                    type: object
                    properties:
                      id:
                        type: string
                        example: prod_ABC123XYZ
                      name:
                        type: string
                        example: Pro Plan
                  automatic_tax:
                    type: boolean
                    example: false
                  coupon:
                    type: string
                    example: ''
                  agents:
                    type: string
                    example: Agent 1, Agent 2
                  pricing:
                    type: object
                    properties:
                      amount:
                        type: string
                        example: '2999'
                      billingCycle:
                        type: string
                        example: month
                      currency:
                        type: string
                        example: usd
                      pricingModel:
                        type: string
                        example: base
                      metrics:
                        type: string
                        example: minutes
                      usageLimit:
                        type: integer
                        example: 100
                      overage:
                        type: string
                        description: >-
                          Overage price per unit in the smallest currency unit
                          (e.g., cents for USD)
                        example: '15'
                  totalPrice:
                    type: integer
                    description: >-
                      Total price the client will be charged (base price plus
                      usage charges) in the smallest currency unit
                    example: 2999
                  totalUsage:
                    type: number
                    example: 45.5
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: An unexpected error occurred

````