> ## 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.

# Get Issued Invoice API

> Retrieve the full document of an issued invoice from Breezing, including parties, line items, discount, notes, and the derived total.



## OpenAPI

````yaml GET /sales-invoices/{id}
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/{id}:
    get:
      tags:
        - Issued Invoices
      summary: Get an issued invoice
      description: >-
        Get the full document of one issued invoice: parties, lines, discount,
        notes, logo and the derived total. Returns 404 if not found in this
        company.
      parameters:
        - schema:
            type: string
            description: Issued invoice ID
            example: '12'
          required: true
          description: Issued invoice ID
          name: id
          in: path
        - 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
      responses:
        '200':
          description: Issued invoice retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/IssuedInvoice'
                required:
                  - success
                  - data
        '400':
          description: Invalid invoice ID
          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
        '404':
          description: Invoice not found
          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:
    IssuedInvoice:
      allOf:
        - $ref: '#/components/schemas/IssuedInvoiceSummary'
        - type: object
          properties:
            seller:
              type: object
              nullable: true
              properties:
                name:
                  type: string
                  maxLength: 300
                address:
                  type: string
                  maxLength: 2000
                email:
                  type: string
                  maxLength: 200
                taxId:
                  type: string
                  maxLength: 200
                paymentDetails:
                  type: string
                  maxLength: 2000
                  description: Bank/crypto payment instructions printed on the invoice.
              required:
                - name
                - address
                - email
                - taxId
                - paymentDetails
            customer:
              type: object
              nullable: true
              properties:
                name:
                  type: string
                  maxLength: 300
                address:
                  type: string
                  maxLength: 2000
                email:
                  type: string
                  maxLength: 200
              required:
                - name
                - address
                - email
            lines:
              type: array
              items:
                $ref: '#/components/schemas/IssuedInvoiceLine'
            discount:
              type: object
              nullable: true
              properties:
                mode:
                  type: string
                  enum:
                    - percent
                    - amount
                value:
                  type: string
                  maxLength: 40
              required:
                - mode
                - value
              description: >-
                Whole-invoice discount applied before VAT, pro-rata across VAT
                groups. Null = none.
            vatInclusive:
              type: boolean
            accentId:
              type: string
            notes:
              type: string
            logoDataUrl:
              type: string
              nullable: true
              description: PNG or JPEG data URL of the seller logo, when set.
          required:
            - seller
            - customer
            - lines
            - discount
            - vatInclusive
            - accentId
            - notes
            - logoDataUrl
    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
    IssuedInvoiceLine:
      type: object
      properties:
        id:
          type: string
          maxLength: 64
          description: Stable row key (optional; the dashboard uses it for edits).
        description:
          type: string
          maxLength: 500
        unit:
          type: string
          enum:
            - qty
            - hours
          description: >-
            "hours" bills time (quantity = hours, unitPrice = hourly rate); the
            math is identical. Default "qty".
        quantity:
          type: string
          maxLength: 40
          example: '2'
        unitPrice:
          type: string
          maxLength: 40
          example: '1500'
        vatName:
          type: string
          maxLength: 120
          description: Tax rate label printed on the document (e.g. "VAT 8.1%").
        vatRate:
          type: string
          maxLength: 40
          description: Percentage applied to the line, e.g. "8.1". "0" for none.
        account:
          type: string
          maxLength: 127
          description: >-
            The revenue account (a chart code, see GET /accounts) the line books
            to. Required on every line with an amount before the invoice can be
            sent.
      required:
        - description
        - quantity
        - unitPrice
        - vatName
        - vatRate

````

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