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

# Get an invoice

> Fetches a single invoice by ID, including all line items, totals, and status.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /invoices/{id}
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Invoices
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Wallet Grants
  - name: Wallets
paths:
  /invoices/{id}:
    get:
      tags:
        - Invoices
      summary: Get an invoice
      description: >-
        Fetches a single invoice by ID, including all line items, totals, and
        status.
      operationId: get-invoice
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the invoice
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    InvoiceResponse:
      properties:
        amount_paid:
          description: Amount that has been paid
          example: '0.00'
          type: string
        amount_remaining:
          description: Remaining amount due
          example: '110.00'
          type: string
        billing_period:
          description: Formatted billing period string
          type: string
        billing_period_end:
          description: End of the billing period
          format: date-time
          nullable: true
          type: string
        billing_period_start:
          description: Start of the billing period
          format: date-time
          nullable: true
          type: string
        created_at:
          description: Timestamp when the invoice was created
          format: date-time
          type: string
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        customer_id:
          description: Customer this invoice belongs to
          type: string
        description:
          description: Invoice description or memo
          type: string
        due_date:
          description: Date the invoice payment is due
          format: date-time
          nullable: true
          type: string
        external_id:
          description: Identifier in the external payment provider
          type: string
        external_provider:
          description: External payment provider name
          type: string
        external_reference:
          description: Customer-facing invoice reference number
          type: string
        external_url:
          description: URL to the invoice in the external system
          type: string
        id:
          description: Unique identifier for the invoice
          type: string
        invoicing_date:
          description: Date the invoice is scheduled for processing
          format: date-time
          nullable: true
          type: string
        issue_date:
          description: Date the invoice was issued
          format: date-time
          nullable: true
          type: string
        line_items:
          description: Line items on this invoice
          items:
            $ref: '#/components/schemas/LineItemResponse'
          type: array
        paid_date:
          description: Date the invoice was paid
          format: date-time
          nullable: true
          type: string
        purchase_order_number:
          description: Purchase order number
          nullable: true
          type: string
        status:
          description: Current status of the invoice
          enum:
            - draft
            - upcoming
            - pending_approval
            - scheduled
            - processing
            - issued
            - void
            - paid
            - canceled
            - overdue
          type: string
        subtotal:
          description: Sum of all line item totals before tax
          example: '100.00'
          type: string
        tax:
          description: Total tax amount
          example: '10.00'
          type: string
        total:
          description: Total amount including tax
          example: '110.00'
          type: string
        updated_at:
          description: Timestamp when the invoice was last updated
          format: date-time
          type: string
      required:
        - amount_paid
        - amount_remaining
        - billing_period
        - created_at
        - currency
        - customer_id
        - description
        - id
        - line_items
        - status
        - subtotal
        - tax
        - total
        - updated_at
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    LineItemResponse:
      properties:
        billing_period_end:
          description: End of the billing period for this line item
          format: date-time
          nullable: true
          type: string
        billing_period_start:
          description: Start of the billing period for this line item
          format: date-time
          nullable: true
          type: string
        description:
          description: Description of the line item
          type: string
        id:
          description: Unique identifier for the line item
          type: string
        is_editable:
          description: Whether this line item can be manually edited
          type: boolean
        product_id:
          description: Associated product identifier
          nullable: true
          type: string
        quantity:
          description: Quantity of the line item
          example: '1'
          type: string
        total_price:
          description: Total price before tax (quantity x unit price)
          example: '100.00'
          type: string
        unit_price:
          description: Unit price of the line item
          example: '100.00'
          type: string
      required:
        - description
        - id
        - is_editable
        - quantity
        - total_price
        - unit_price
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````