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

# List invoices



## OpenAPI

````yaml /api-reference/openapi.json get /v1/billing/invoices
openapi: 3.1.0
info:
  title: microsandbox cloud API
  description: >-
    REST API for microsandbox cloud operations authenticated with an
    organization API key.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - api_key: []
paths:
  /v1/billing/invoices:
    get:
      tags:
        - Billing
      summary: List invoices
      operationId: list_invoices
      responses:
        '200':
          description: Invoice list
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Invoice'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_api_key
                  message: unauthorized
                  details: null
      security:
        - api_key: []
components:
  schemas:
    Invoice:
      type: object
      description: Invoice from the billing provider (Autumn/Stripe).
      required:
        - id
        - status
        - total_cents
        - currency
        - period_start
        - period_end
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        currency:
          type: string
        id:
          type: string
        invoice_url:
          type:
            - string
            - 'null'
        period_end:
          type: string
          format: date-time
        period_start:
          type: string
          format: date-time
        status:
          type: string
        total_cents:
          type: integer
          format: int64
    ErrorResponse:
      type: object
      description: Error envelope returned by every non-2xx response.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable machine-readable error code, e.g. `invalid_api_key`.
            message:
              type: string
              description: Human-readable description of the error.
            details:
              type:
                - object
                - 'null'
              description: Optional structured context for the error.
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      description: Organization API key (msb_…) - org-scoped programmatic access.

````