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

# Listar documentos de cobro

> Devuelve una página de documentos del partner. Requiere `public_invoices:read`.



## OpenAPI

````yaml /openapi/invoices-v1.json get /v1/invoices
openapi: 3.1.0
info:
  title: Cobrix API pública de documentos de cobro
  version: 1.0.0
  description: >-
    API de documentos de cobro con montos en unidades mayores de la moneda de
    referencia de la empresa. No admite pagos parciales.
  license:
    name: Propietaria
    url: https://cobrix.co/terms
servers:
  - url: https://api.cobrix.co/api
    description: Producción
  - url: https://sandbox-api.cobrix.co/api
    description: Sandbox
security:
  - bearerAuth: []
tags:
  - name: Documentos públicos
    description: Documentos de cobro públicos y su cobro vigente.
paths:
  /v1/invoices:
    get:
      tags:
        - Documentos públicos
      summary: Listar documentos de cobro
      description: >-
        Devuelve una página de documentos del partner. Requiere
        `public_invoices:read`.
      operationId: listPublicInvoices
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: filter[id]
          in: query
          schema:
            type: string
            format: uuid
        - name: filter[status]
          in: query
          schema:
            $ref: '#/components/schemas/InvoiceStatus'
        - name: filter[reference]
          in: query
          schema:
            type: string
        - name: filter[provider_id]
          in: query
          schema:
            type: string
        - name: sort
          in: query
          schema:
            type: string
            enum:
              - created_at
              - '-created_at'
            default: '-created_at'
      responses:
        '200':
          description: Página de documentos de cobro
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    InvoiceStatus:
      type: string
      enum:
        - CREATED
        - PAID
        - CONCILIATED
        - PAID_FROM_PROVIDER
        - DELETE_FROM_PROVIDER
        - FAILED
    InvoiceListResponse:
      type: object
      required:
        - data
        - current_page
        - from
        - last_page
        - per_page
        - to
        - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceListItem'
        current_page:
          type: integer
        from:
          type:
            - integer
            - 'null'
        last_page:
          type: integer
        per_page:
          type: integer
        to:
          type:
            - integer
            - 'null'
        total:
          type: integer
    InvoiceListItem:
      type: object
      required:
        - id
        - name
        - provider
        - provider_id
        - reference
        - status
        - remarks
        - metadata
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        provider:
          type: string
        provider_id:
          type:
            - string
            - 'null'
        reference:
          type: string
        status:
          $ref: '#/components/schemas/InvoiceStatus'
        remarks:
          type:
            - string
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          additionalProperties: true
    InvoiceError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
        code:
          type: integer
        code_name:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  headers:
    RateLimitLimit:
      description: Máximo de requests por ventana.
      schema:
        type: integer
        default: 300
    RateLimitRemaining:
      description: Requests disponibles en la ventana.
      schema:
        type: integer
    RateLimitReset:
      description: Timestamp Unix de reinicio.
      schema:
        type: integer
    RetryAfter:
      description: Segundos antes de reintentar.
      schema:
        type: integer
  responses:
    Unauthorized:
      description: Llave ausente o inválida
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InvoiceError'
          example:
            message: Unauthenticated.
            code: 10002
            code_name: authentication_error
    Forbidden:
      description: Scope o compañía no habilitada
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InvoiceError'
          example:
            message: La llave API no tiene permiso para realizar esta operación.
            code: 10005
            code_name: forbidden
    RateLimited:
      description: Límite distribuido por llave, método y ruta
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InvoiceError'
          example:
            message: >-
              Demasiadas solicitudes. Espera el tiempo indicado en Retry-After e
              intenta nuevamente.
            code: 10029
            code_name: rate_limit_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Cobrix API key
      description: Llave cbx_live con scope de documentos públicos.

````