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

# Get Packages

> Return available packages with their base price and extra connection cost.



## OpenAPI

````yaml /openapi.json get /v1/packages
openapi: 3.1.0
info:
  version: 1.0.0
  title: CCCAMBOX Reseller API
  description: >-
    CCCambox Reseller API provides programmatic access to manage IPTV
    subscriptions and line management. Use this API to automate operations like
    creating new lines, managing packages, handling credits. Includes endpoints
    for subscriber management, package configuration, and line monitoring. Built
    for resellers to efficiently scale their IPTV business operations.
servers: []
security: []
paths:
  /v1/packages:
    get:
      tags:
        - Overview
      summary: Get Packages
      description: >-
        Return available packages with their base price and extra connection
        cost.
      parameters:
        - schema:
            type: string
            enum:
              - all
              - premium
              - trial
            default: all
            description: >-
              Filter package results by type. Possible values: 'all', 'premium',
              'trial'.
          required: false
          description: >-
            Filter package results by type. Possible values: 'all', 'premium',
            'trial'.
          name: type
          in: query
      responses:
        '200':
          description: 'Ok: Return available packages and their costs.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  packages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                          description: Package cost entry identifier.
                        package_name:
                          type: string
                          example: Premium
                          description: Package name.
                        duration:
                          type: integer
                          example: 12
                          description: Package duration in months or hours for trials.
                        is_trial:
                          type: boolean
                          example: false
                          description: Whether this package is a trial package.
                        credits_cost:
                          type: number
                          example: 15
                          description: Base package cost in credits.
                        extra_connection_credits_cost:
                          type: number
                          example: 3
                          description: Additional credits charged per extra connection.
                        min_balance:
                          type: number
                          example: 1
                          description: >-
                            Minimum balance required before ordering the
                            package.
                      required:
                        - id
                        - package_name
                        - duration
                        - is_trial
                        - credits_cost
                        - extra_connection_credits_cost
                        - min_balance
                required:
                  - packages
        '401':
          description: 'Auth Error: Not authorized.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - not_authorized
                  message:
                    type: string
                    example: Not authorized to perform this action.
                required:
                  - code
                  - message
        '429':
          description: 'Rate limit error: too many requests.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - rate_limit
                  message:
                    type: string
                    example: Rate limit exceeded.
                required:
                  - code
                  - message
        '500':
          description: 'Server Error: handler died.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - server_error
                  message:
                    type: string
                    example: Internal server error occurred.
                  requestId:
                    type: string
                required:
                  - code
                  - message
                  - requestId
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: API Key
      name: x-api-key
      in: header

````