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

# Get Customer Subscriptions



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/subscriptions/customers/{customer_id}
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/customers/{customer_id}:
    get:
      tags:
        - Subscriptions
      summary: Get Customer Subscriptions
      operationId: >-
        get_customer_subscriptions_api_v1_subscriptions_customers__customer_id__get
      parameters:
        - name: customer_id
          in: path
          required: true
          schema:
            type: integer
            title: Customer Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SubscriptionWithDetailsSchema'
                title: >-
                  Response Get Customer Subscriptions Api V1 Subscriptions
                  Customers  Customer Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    SubscriptionWithDetailsSchema:
      properties:
        google_ads_customer_id:
          type: integer
          title: Google Ads Customer Id
        subscription_plan_id:
          type: integer
          title: Subscription Plan Id
        starts_at:
          type: string
          format: date-time
          title: Starts At
        expires_at:
          type: string
          format: date-time
          title: Expires At
        subscription_type:
          $ref: '#/components/schemas/SubscriptionType'
        id:
          type: integer
          title: Id
        cancelled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Cancelled At
        date_added:
          type: string
          format: date-time
          title: Date Added
        date_updated:
          type: string
          format: date-time
          title: Date Updated
        subscription_plan:
          $ref: '#/components/schemas/SubscriptionPlanWithModulesSchema'
      type: object
      required:
        - google_ads_customer_id
        - subscription_plan_id
        - starts_at
        - expires_at
        - subscription_type
        - id
        - date_added
        - date_updated
        - subscription_plan
      title: SubscriptionWithDetailsSchema
      description: Schema for reading Subscription with plan and customer details.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SubscriptionType:
      type: string
      enum:
        - auto_renew
        - one_time
      title: SubscriptionType
    SubscriptionPlanWithModulesSchema:
      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
        modules:
          items:
            $ref: '#/components/schemas/PlanModuleSchema'
          type: array
          title: Modules
      type: object
      required:
        - name
        - price
        - id
        - date_added
        - date_updated
      title: SubscriptionPlanWithModulesSchema
      description: Schema for reading SubscriptionPlan with modules.
    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
    PlanModuleSchema:
      properties:
        analysis_type:
          $ref: '#/components/schemas/AnalysisTypes'
        constraint:
          type: integer
          title: Constraint
        analysis_frequency_hours:
          type: integer
          title: Analysis Frequency Hours
        is_autopilot_enabled:
          type: boolean
          title: Is Autopilot Enabled
          default: false
        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:
        - analysis_type
        - constraint
        - analysis_frequency_hours
        - id
        - date_added
        - date_updated
      title: PlanModuleSchema
      description: Schema for reading PlanModule.
    AnalysisTypes:
      type: string
      enum:
        - keyword_pause
        - negative_keyword
        - double_check_keywords_to_pause
        - headline
        - description
        - budget_migration
        - pause_hours
        - pause_locations
        - search_terms
      title: AnalysisTypes
      description: The types of analyses.
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````