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

# List invoices



## OpenAPI

````yaml /openapi.json get /v1/invoices
openapi: 3.1.0
info:
  title: Elapse API
  version: '2026-09-06'
  description: >-
    Per-second billing. Authenticate with your secret key as a bearer token.
    Every amount is a decimal string in USD.
servers:
  - url: http://localhost:4000
security: []
tags:
  - name: Products
    description: Something billed at a rate per second.
  - name: Checkout
    description: Hosted pages a subscriber is sent to.
  - name: Subscriptions
    description: A running meter for one customer on one product.
  - name: Customers
    description: Subscribers, created by Checkout.
  - name: Invoices
    description: One settlement of accrued dollars for a period.
paths:
  /v1/invoices:
    get:
      tags:
        - Invoices
      summary: List invoices
      operationId: invoices.list
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
            example: 10
          required: false
          name: limit
          in: query
        - schema:
            type: string
            description: Id of the last object on the previous page.
          required: false
          description: Id of the last object on the previous page.
          name: starting_after
          in: query
        - schema:
            type: string
          required: false
          name: subscription
          in: query
        - schema:
            type: string
          required: false
          name: customer
          in: query
        - schema:
            type: integer
            nullable: true
            description: Settled at or after this unix time (period_end).
          required: false
          description: Settled at or after this unix time (period_end).
          name: since
          in: query
        - schema:
            type: integer
            nullable: true
            description: Settled at or before this unix time (period_end).
          required: false
          description: Settled at or before this unix time (period_end).
          name: until
          in: query
        - schema:
            type: string
            enum:
              - paid
              - failed
          required: false
          name: status
          in: query
      responses:
        '200':
          description: Invoices, newest first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceList'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such object in this mode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    InvoiceList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Invoice'
        has_more:
          type: boolean
        url:
          type: string
      required:
        - object
        - data
        - has_more
        - url
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              enum:
                - api_error
                - authentication_error
                - invalid_request_error
                - rate_limit_error
                - idempotency_error
                - not_found
            message:
              type: string
            code:
              type: string
              description: Machine-readable reason, when there is one.
            param:
              type: string
              description: The request field at fault, when there is one.
    Invoice:
      type: object
      properties:
        id:
          type: string
          example: in_8Rt3Kq2Mn9Lp4Wx
        object:
          type: string
          enum:
            - invoice
        subscription:
          type: string
        customer:
          type: string
        period_start:
          type: integer
        period_end:
          type: integer
        seconds:
          type: integer
        amount_settled:
          type: string
          description: Gross, decimal USD (the §5.3 field).
        gross:
          type: string
        fee:
          type: string
        net:
          type: string
        currency:
          type: string
          enum:
            - ausd
        status:
          type: string
          enum:
            - paid
            - failed
        tx_hash:
          type: string
        livemode:
          type: boolean
        created:
          type: integer
      required:
        - id
        - object
        - subscription
        - customer
        - period_start
        - period_end
        - seconds
        - amount_settled
        - gross
        - fee
        - net
        - currency
        - status
        - tx_hash
        - livemode
        - created
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your secret key: `sk_test_…` for test mode, `sk_live_…` for live.
        Server-side only.

````