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

# List support tickets



## OpenAPI

````yaml /api-reference/openapi.json get /ticket/lists
openapi: 3.1.0
info:
  title: BillingServ API V2
  description: >-
    Resources and tools for developers to integrate with the BillingServ v2 API.
    v1 is deprecated; use the v2 base URL and bearer-token authentication unless
    an endpoint states otherwise.
  version: '2.0'
servers:
  - url: https://demo.onlinebillingform.com/api/v2
    description: BillingServ demo API
security:
  - bearerAuth: []
tags:
  - name: Customer
  - name: Package
  - name: Group
  - name: Country
  - name: County
  - name: VPN
  - name: Invoice
  - name: Order
  - name: Module
  - name: Report
  - name: Marketing
  - name: Setting
  - name: Checkout
  - name: Usage
  - name: Support
paths:
  /ticket/lists:
    get:
      tags:
        - Support
      summary: List support tickets
      operationId: GET_ticket_lists
      parameters:
        - name: user_id
          in: query
          required: false
          description: Filter by the customer the ticket belongs to.
          schema:
            type: integer
        - name: status
          in: query
          required: false
          description: Filter by ticket status.
          schema:
            type: string
            enum:
              - open
              - pending
              - close
              - awaiting_reply
        - name: priority
          in: query
          required: false
          description: Filter by ticket priority.
          schema:
            type: string
            enum:
              - low
              - medium
              - high
              - emergency
        - name: support_department
          in: query
          required: false
          description: Filter by support department.
          schema:
            type: string
        - name: assignee_by
          in: query
          required: false
          description: Filter by assigned staff user ID.
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
              example:
                success: true
                tickets:
                  current_page: 1
                  data:
                    - id: 1
                      subject: Cannot access my invoices
                      user_id: 42
                      assignee_by: null
                      status: open
                      support_department: Billing
                      priority: low
                      last_action: Created
                  per_page: 15
                  total: 1
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                errors: Invalid API Key
        '403':
          description: Authenticated key does not have permission for this endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                errors: Insufficient permissions for this endpoint.
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
              example:
                success: false
                errors:
                  id:
                    - The id field is required.
      security:
        - bearerAuth: []
components:
  schemas:
    ApiResponse:
      type: object
      properties:
        success:
          type: boolean
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        errors:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
            - type: object
              additionalProperties: true
      additionalProperties: true
    ValidationErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        errors:
          oneOf:
            - type: array
              items:
                type: string
            - type: object
              additionalProperties: true
            - type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Use `Authorization: Bearer <live_api_key>`.'

````