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

# List Issued Invoices API

> List the invoices a Breezing company issued to its customers, with search and sorting, plus the latest invoice number in use.



## OpenAPI

````yaml GET /sales-invoices
openapi: 3.1.0
info:
  title: Breezing Public API
  version: 1.0.0
  description: >-
    Crypto accounting API for programmatic access and AI agents. Authenticate
    with an API key using the Authorization header: `Bearer brz_...`
servers:
  - url: https://api.breezing.io/v1
security:
  - BearerAuth: []
paths:
  /sales-invoices:
    get:
      tags:
        - Issued Invoices
      summary: List issued invoices
      description: >-
        List the invoices the company issued to its customers (the AR side,
        authored in the invoice creator). Summary rows only: the document body
        (lines, parties, notes, logo) rides GET /sales-invoices/{id}.
        `latestNumber` is the most recently saved invoice number, the seed for
        the next number.
      parameters:
        - schema:
            type: string
            description: >-
              Organization ID. Use GET /v1/companies to discover available
              org/company pairs.
            example: '1'
          required: true
          description: >-
            Organization ID. Use GET /v1/companies to discover available
            org/company pairs.
          name: orgId
          in: query
        - schema:
            type: string
            description: >-
              Company ID. Use GET /v1/companies to discover available companies
              and their access levels.
            example: '1'
          required: true
          description: >-
            Company ID. Use GET /v1/companies to discover available companies
            and their access levels.
          name: companyId
          in: query
        - schema:
            type: string
            maxLength: 200
            description: Substring match over invoice number and customer name.
          required: false
          description: Substring match over invoice number and customer name.
          name: search
          in: query
        - schema:
            type: string
            default: '50'
            description: Rows per page (1-200, default 50).
          required: false
          description: Rows per page (1-200, default 50).
          name: limit
          in: query
        - schema:
            type: string
            default: '0'
            description: Rows to skip (default 0).
          required: false
          description: Rows to skip (default 0).
          name: offset
          in: query
        - schema:
            type: string
            enum:
              - createdAt
              - invoiceNumber
              - customerName
              - issueDate
              - dueDate
              - totalAmount
              - status
            description: Sort column (default createdAt).
          required: false
          description: Sort column (default createdAt).
          name: orderBy
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            description: Sort direction (default desc).
          required: false
          description: Sort direction (default desc).
          name: sorting
          in: query
      responses:
        '200':
          description: Issued invoices retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/IssuedInvoiceSummary'
                  latestNumber:
                    type: string
                    nullable: true
                  pagination:
                    type: object
                    properties:
                      limit:
                        type: integer
                      offset:
                        type: integer
                      total:
                        type: integer
                      hasMore:
                        type: boolean
                    required:
                      - limit
                      - offset
                      - total
                      - hasMore
                required:
                  - success
                  - data
                  - latestNumber
                  - pagination
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '403':
          description: >-
            API key has no access to this company, has read-only access where
            write was required, or the company subscription is inactive
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
      security:
        - BearerAuth: []
components:
  schemas:
    IssuedInvoiceSummary:
      type: object
      properties:
        id:
          type: number
        invoiceNumber:
          type: string
        customerName:
          type: string
        status:
          type: string
          enum:
            - draft
            - sent
            - paid
            - cancelled
          description: >-
            "draft", "sent" or "cancelled". "sent" books the invoice (an older
            "paid" books like "sent"); whether it is paid is `paymentStatus`.
        issueDate:
          type: string
          nullable: true
          description: yyyy-MM-dd
        dueDate:
          type: string
          nullable: true
          description: yyyy-MM-dd
        currency:
          type: string
        totalAmount:
          type: string
          nullable: true
          description: Server-derived document total (decimal string).
        inBooks:
          type: boolean
          description: >-
            Booked: saved as sent, so its accrual (Dr receivables, Cr revenue
            per line, Cr output VAT) is in the books.
        totalAmountFiat:
          type: string
          nullable: true
          description: >-
            The total in the company currency at the rate stamped when it was
            booked; null when not in the books.
        paymentStatus:
          type: string
          nullable: true
          enum:
            - paid
            - partial
            - unpaid
            - overdue
            - null
          description: >-
            What its linked payments applied (null when not in the books).
            Overdue from the day after the due date.
        createdAt:
          type: number
          description: unix ms
        updatedAt:
          type: number
          description: unix ms
      required:
        - id
        - invoiceNumber
        - customerName
        - status
        - issueDate
        - dueDate
        - currency
        - totalAmount
        - inBooks
        - totalAmountFiat
        - paymentStatus
        - createdAt
        - updatedAt

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.