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

# Get all invoices

> List all invoices with support for filtering and pagination



## OpenAPI

````yaml get /v1/invoices
openapi: 3.0.0
info:
  title: Invoices API
  version: 1.0.0
  description: API documentation for Invoices management package
servers: []
security:
  - bearerAuth: []
paths:
  /v1/invoices:
    get:
      tags:
        - Invoices
      summary: Get all invoices
      description: List all invoices with support for filtering and pagination
      parameters:
        - in: query
          name: status
          schema:
            type: string
            enum:
              - draft
              - pending
              - paid
              - sent
              - overdue
          description: Filter by invoice status
        - in: query
          name: date_from
          schema:
            type: string
            format: date-time
          example: '2024-03-21T00:00:00Z'
          description: Start date for filtering
        - in: query
          name: date_to
          schema:
            type: string
            format: date-time
          example: '2024-03-21T23:59:59Z'
          description: End date for filtering
        - in: query
          name: currency
          schema:
            type: string
            minLength: 3
            maxLength: 3
          example: CHF
          description: 3-letter currency code
        - in: query
          name: customer_id
          schema:
            type: string
            format: uuid
          description: Filter by customer UUID
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          description: Number of records per page
        - in: query
          name: offset
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Number of records to skip
      responses:
        '200':
          description: List of invoices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceList'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    InvoiceList:
      type: object
      properties:
        total:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        invoices:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceSummary'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code
          example: invalid_input
        message:
          type: string
          description: Error message
          example: Invalid input data
        details:
          type: object
          description: Additional error details
    InvoiceSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        invoice_number:
          type: string
        status:
          type: string
          enum:
            - draft
            - pending
            - paid
            - sent
            - overdue
        customer_id:
          type: string
          format: uuid
        currency:
          type: string
          minLength: 3
          maxLength: 3
        total:
          type: number
        due_date:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````