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

# Find invoices

> Finds matching customer invoices in the organisation. Returns slim preview objects suitable for listings.



## OpenAPI

````yaml GET /v1/invoices
openapi: 3.1.0
info:
  title: infinity.swiss Open API
  version: '1.0'
  summary: ''
servers:
  - url: https://api.infinity.swiss
security:
  - apiKey: []
paths:
  /v1/invoices:
    get:
      tags: []
      summary: Find invoices
      description: >-
        Finds matching customer invoices in the organisation. Returns slim
        preview objects suitable for listings.
      operationId: find-invoices-v1
      parameters:
        - schema:
            type: number
            default: 30
            maximum: 200
          in: query
          name: limit
          description: Pagination limit. Defaults to 30, maximum 200.
        - schema:
            type: number
          in: query
          name: skip
          description: Pagination offset for the results.
        - schema:
            type: boolean
          in: query
          name: isDraft
          description: When set, filters to only draft or only posted invoices.
        - schema:
            type: boolean
          in: query
          name: isPaid
          description: When set, filters to only paid or only unpaid invoices.
        - schema:
            type: boolean
          in: query
          name: isAnnulled
          description: When set, filters to only annulled or only non-annulled invoices.
        - schema:
            type: string
          in: query
          name: recipient
          description: Filters invoices addressed to the contact with the given id.
        - schema:
            type: string
            format: date
          in: query
          name: fromDate
          description: Inclusive lower bound on opening date (YYYY-MM-DD).
        - schema:
            type: string
            format: date
          in: query
          name: toDate
          description: Inclusive upper bound on opening date (YYYY-MM-DD).
      responses:
        '200':
          description: Successfully returns the list of invoices.
          content:
            application/json:
              schema:
                type: object
                properties:
                  invoices:
                    type: array
                    items:
                      $ref: '#/components/schemas/InvoicePreview'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorised'
components:
  schemas:
    InvoicePreview:
      title: InvoicePreview
      type: object
      description: A slim invoice representation returned in list responses.
      required:
        - id
        - isDraft
        - openingDate
        - dueDate
        - totalAmount
        - totalVatDebt
        - isPaid
        - isAnnulled
        - isQrInvoice
        - totalAmountPaid
        - totalRestAmount
      properties:
        id:
          type: string
          readOnly: true
        isDraft:
          type: boolean
        title:
          type: string
        recipient:
          type: string
        openingDate:
          type: string
          format: date
        dueDate:
          type: string
          format: date
        totalAmount:
          type: integer
        totalVatDebt:
          type: integer
        originalCurrency:
          type: string
          minLength: 3
          maxLength: 3
        isPaid:
          type: boolean
        isAnnulled:
          type: boolean
        isQrInvoice:
          type: boolean
        totalAmountPaid:
          type: integer
        totalRestAmount:
          type: integer
  responses:
    BadRequest:
      description: >-
        A bad request is thrown if the request payload is malformed or fails
        validation.
      content:
        application/json:
          schema:
            type: object
            required:
              - code
            properties:
              code:
                type: string
                description: |-
                  The specific error code for this request. May be:
                  - `general/missing-fields`
                  - `general/malformed-request`
                  - `general/invalid-date`
                  - `general/input-too-long`
                  - `general/zero-or-negative-amount-not-allowed`
              invalidFields:
                type: array
                description: A list of the fields which were invalid, if applicable.
                items:
                  type: string
    Unauthorised:
      description: >-
        An unauthorised request was submitted. You may be using an incorrect or
        expired API token, or are attempting to access a document outside of the
        scope of the token.
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                x-stoplight:
                  id: 08hkw8ukmi2lp
                description: Specific error code
          examples:
            Unauthorised request:
              value:
                code: general/unauthorised
  securitySchemes:
    apiKey:
      name: x-api-token
      type: apiKey
      in: header
      description: >-
        API token for authentication. Obtain from your Infinity account
        settings.

````