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

# Get Invoice Detail

> Retrieve a single invoice with line items, payments, and associated licenses.



## OpenAPI

````yaml GET /customer/v2/invoices/{invoice}
openapi: 3.0.3
info:
  title: OrbitFlare Customer API
  description: >-
    API documentation for the OrbitFlare Customer API. This API allows
    authenticated customers to manage their licenses, whitelist IPs, reset keys,
    and retrieve associated data. Supports v1 (API key only) and v2 (Bearer
    token or API key) with extended features including device/wallet auth, API
    keys management, profile, Solana USDC balance top-up, and RPC plan
    purchasing.
  version: 2.1.0
servers:
  - url: https://orbitflare.com/api
    description: OrbitFlare Production server
security:
  - api_key: []
tags:
  - name: Auth
    description: Authentication (device flow, wallet signature, session)
  - name: Licenses
    description: License management
  - name: API Keys
    description: API key management
  - name: Profile
    description: User profile and balance
  - name: Invoices
    description: Invoice listing, detail, and balance payment
  - name: Top-Up
    description: Balance top-up via Solana USDC
  - name: RPC Plans
    description: Solana RPC plan catalog
  - name: Orders
    description: Order management (validate, purchase, list)
paths:
  /customer/v2/invoices/{invoice}:
    parameters:
      - name: invoice
        in: path
        description: Invoice reference (e.g. INV26A1B2C3).
        required: true
        schema:
          type: string
    get:
      tags:
        - Invoices
      summary: Get Invoice Detail
      description: >-
        Retrieve a single invoice with line items, payments, and associated
        licenses.
      operationId: getInvoice
      responses:
        '200':
          description: Invoice retrieved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/InvoiceDetailed'
        '403':
          description: Unauthorized access.
        '404':
          description: Invoice not found.
      security:
        - bearer_token: []
        - api_key: []
components:
  schemas:
    InvoiceDetailed:
      allOf:
        - $ref: '#/components/schemas/InvoiceSummary'
        - type: object
          properties:
            line_items:
              type: array
              items:
                type: object
              nullable: true
            discount_code:
              type: string
              nullable: true
            discount_amount:
              type: number
              format: float
              nullable: true
            payments:
              type: array
              items:
                type: object
                properties:
                  transaction_id:
                    type: string
                  gateway:
                    type: string
                  amount:
                    type: number
                    format: float
                  payment_date:
                    type: string
                    format: date-time
                    nullable: true
    InvoiceSummary:
      type: object
      properties:
        reference:
          type: string
          example: INV26A1B2C3
        type:
          type: string
        status:
          type: string
          enum:
            - draft
            - pending
            - paid
            - partially_paid
            - overdue
            - cancelled
        currency:
          type: string
          example: USD
        billing_subtotal:
          type: number
          format: float
        billing_tax:
          type: number
          format: float
        billing_total:
          type: number
          format: float
        billing_balance:
          type: number
          format: float
        due_date:
          type: string
          format: date
          nullable: true
        created_at:
          type: string
          format: date-time
        licenses:
          type: array
          items:
            type: object
            properties:
              license_key:
                type: string
              product_name:
                type: string
  securitySchemes:
    api_key:
      type: apiKey
      name: X-ORBIT-KEY
      in: header
      description: API key for v1 and v2 (when not using Bearer token)
    bearer_token:
      type: http
      scheme: bearer
      bearerFormat: Sanctum
      description: Bearer token from device or wallet auth

````