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

# List invoices

> Returns a paginated list of invoices. Supports filtering by status, customer, subscription, autopay flag, external reference, tag IDs, and date ranges on invoicing, issue, due, and paid dates.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /invoices
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:
    get:
      tags:
        - Invoices
      summary: List invoices
      description: >-
        Returns a paginated list of invoices. Supports filtering by status,
        customer, subscription, autopay flag, external reference, tag IDs, and
        date ranges on invoicing, issue, due, and paid dates.
      operationId: list-invoices
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: query
          name: autopay
          schema:
            description: Filter by autopay flag
            type: boolean
        - in: query
          name: customer_id
          schema:
            description: Filter by customer ID
            example: cust_abc123
            type: string
        - in: query
          name: due_date_gte
          schema:
            description: Due date lower bound (inclusive)
            example: '2026-01-01T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: due_date_lte
          schema:
            description: Due date upper bound (inclusive)
            example: '2026-12-31T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: external_reference
          schema:
            description: Filter by external reference
            type: string
        - in: query
          name: invoicing_date_gte
          schema:
            description: Invoicing date lower bound (inclusive)
            example: '2026-01-01T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: invoicing_date_lte
          schema:
            description: Invoicing date upper bound (inclusive)
            example: '2026-12-31T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: issue_date_gte
          schema:
            description: Issue date lower bound (inclusive)
            example: '2026-01-01T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: issue_date_lte
          schema:
            description: Issue date upper bound (inclusive)
            example: '2026-12-31T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: limit
          required: true
          schema:
            description: Number of items to return per page
            example: 20
            format: int64
            type: integer
        - in: query
          name: offset
          required: true
          schema:
            description: Number of items to skip
            example: 0
            format: int64
            type: integer
        - in: query
          name: paid_date_gte
          schema:
            description: Paid date lower bound (inclusive)
            example: '2026-01-01T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: paid_date_lte
          schema:
            description: Paid date upper bound (inclusive)
            example: '2026-12-31T00:00:00Z'
            format: date-time
            type: string
        - in: query
          name: reference
          schema:
            description: Filter by invoice reference number
            example: INV-0001
            type: string
        - in: query
          name: sort
          required: true
          schema:
            description: Sort field and direction in format field:order
            example: issue_date:desc
            type: string
        - explode: false
          in: query
          name: status
          schema:
            description: >-
              Filter by invoice status. Pass a comma-separated list to match
              any.
            example: issued
            items:
              enum:
                - draft
                - upcoming
                - pending_approval
                - scheduled
                - processing
                - issued
                - void
                - paid
                - canceled
                - overdue
              type: string
            type: array
        - in: query
          name: subscription_id
          schema:
            description: Filter by subscription ID
            example: sub_abc123
            type: string
        - explode: false
          in: query
          name: tag_ids
          schema:
            description: Filter by tag IDs (comma-separated to match any)
            example: tag_abc123
            items:
              type: string
            type: array
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceListResponse'
          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:
    InvoiceListResponse:
      properties:
        data:
          description: List of invoices
          items:
            $ref: '#/components/schemas/InvoiceListItemResponse'
          type: array
        pagination:
          allOf:
            - $ref: '#/components/schemas/PaginationMeta'
          description: Pagination metadata
      required:
        - data
        - pagination
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    InvoiceListItemResponse:
      properties:
        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
        id:
          description: Unique identifier for the invoice
          type: string
        status:
          description: Current status of the invoice
          enum:
            - draft
            - upcoming
            - pending_approval
            - scheduled
            - processing
            - issued
            - void
            - paid
            - canceled
            - overdue
          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:
        - billing_period
        - created_at
        - currency
        - customer_id
        - description
        - id
        - status
        - total
        - updated_at
      type: object
    PaginationMeta:
      properties:
        per_page:
          description: Number of items returned per page
          example: 20
          format: int64
          type: integer
        total_pages:
          description: Total number of pages available
          example: 5
          format: int64
          type: integer
      required:
        - per_page
        - total_pages
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````