> ## 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 invoice by ID

> Retrieve complete invoice details including line items



## OpenAPI

````yaml get /v1/invoices/{id}
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/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Invoice UUID
    get:
      tags:
        - Invoices
      summary: Get invoice by ID
      description: Retrieve complete invoice details including line items
      parameters:
        - name: include_items
          in: query
          schema:
            type: boolean
            default: true
          description: Include line items in response
        - name: include_metadata
          in: query
          schema:
            type: boolean
            default: false
          description: Include metadata in response
      responses:
        '200':
          description: Invoice details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceDetailResponse'
        '400':
          description: Invalid invoice ID format
        '404':
          description: Invoice not found
components:
  schemas:
    InvoiceDetailResponse:
      type: object
      properties:
        invoice:
          type: object
          properties:
            id:
              type: string
              format: uuid
            invoice_number:
              type: string
            description:
              type: string
            status:
              type: string
              enum:
                - draft
                - pending
                - paid
                - sent
                - overdue
            party_type:
              type: string
              enum:
                - receiver
                - sender
            due_date:
              type: string
              format: date-time
            currency:
              type: string
            iban:
              type: string
            customer_id:
              type: string
              format: uuid
            name_from:
              type: string
            address_from:
              type: string
            zip_from:
              type: string
            city_from:
              type: string
            country_from:
              type: string
            name_to:
              type: string
            address_to:
              type: string
            zip_to:
              type: string
            city_to:
              type: string
            country_to:
              type: string
            subtotal:
              type: number
            shipping:
              type: number
            discount:
              type: number
            vat:
              type: number
            total:
              type: number
            created_at:
              type: string
              format: date-time
            metadata:
              type: object
        items:
          type: array
          items: e882e10d-d3a6-4549-9ae3-89ae72788d6e
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````