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

# Obtener clientes padre paginados con filtros

> Obtener clientes padre paginados con filtros



## OpenAPI

````yaml /generated/specs/clients.json get /api/v1/client_father/all/paginated
openapi: 3.0.0
info:
  title: Raul API - Clientes
  description: Clientes, clientes padre, direcciones, contactos y activos asociados.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags:
  - name: Clients
    description: Gestion de clientes
paths:
  /api/v1/client_father/all/paginated:
    get:
      tags:
        - Client Father
      summary: Obtener clientes padre paginados con filtros
      description: Obtener clientes padre paginados con filtros
      operationId: ClientFatherController_getAllPaginated
      parameters:
        - name: page
          required: false
          in: query
          schema:
            minimum: 1
            default: 1
            type: number
        - name: limit
          required: false
          in: query
          schema:
            minimum: 1
            maximum: 100
            default: 50
            type: number
        - name: sort
          required: false
          in: query
          schema:
            default: fatherName
            type: string
        - name: order
          required: false
          in: query
          schema:
            default: asc
            type: string
            enum:
              - asc
              - desc
        - name: has_subscription
          required: false
          in: query
          description: Filter by has_subscription (true/false)
          schema:
            type: string
        - name: seller_id
          required: false
          in: query
          description: Filter by seller ID
          schema:
            type: string
        - name: rubro_id
          required: false
          in: query
          description: Filter by rubro ID
          schema:
            type: number
        - name: search
          required: false
          in: query
          description: Search in name or RUT
          schema:
            type: string
      responses:
        '200':
          description: Lista paginada de clientes padre
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedClientFatherResponseDto'
      security:
        - bearerAuth: []
components:
  schemas:
    PaginatedClientFatherResponseDto:
      type: object
      properties:
        data:
          description: Lista paginada de clientes
          type: array
          items:
            $ref: '#/components/schemas/CombinedClientItemDto'
        pagination:
          type: object
          description: Información de paginación
          example:
            total: 150
            page: 1
            limit: 50
            totalPages: 3
            hasNext: true
      required:
        - data
        - pagination
    CombinedClientItemDto:
      type: object
      properties:
        idFather:
          type: string
          description: ID del cliente padre (si es padre)
        fatherName:
          type: object
          description: Nombre del padre (si es padre)
        clientId:
          type: string
          description: ID del cliente (si es cliente normal)
        clientName:
          type: object
          description: Nombre del cliente
        fantasyName:
          type: object
          description: Nombre de fantasía
        rut:
          type: object
          description: RUT
        email:
          type: object
          description: Email (solo para padres)
        phone:
          type: object
          description: Teléfono (solo para padres)
        factura:
          type: object
          description: Requiere factura (solo para padres)
        ordenCompra:
          type: object
          description: Requiere orden de compra (solo para padres)
        requiresHes:
          type: object
          description: Requiere HES
        typeOfContract:
          type: object
          description: Tipo de contrato
        idNavixy:
          type: object
          description: ID Navixy
        idWialon:
          type: object
          description: ID Wialon
        classification:
          type: object
          description: Clasificación
        integration:
          type: object
          description: Tiene integración
        gpsCount:
          type: number
          description: Cantidad de GPS activos
        rubroId:
          type: object
          description: ID del rubro
        rubroName:
          type: object
          description: Nombre del rubro
        clientType:
          type: string
          description: Tipo de cliente
          enum:
            - parent
            - child
            - independent
        isNormalClient:
          type: boolean
          description: Es cliente normal (no hijo)
        sellerId:
          type: object
          description: ID del vendedor
        sellerName:
          type: object
          description: Nombre del vendedor
      required:
        - gpsCount
        - clientType
        - isNormalClient
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````