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

# List Invoices

> Retrieve billing invoices and payment records

Retrieve a list of all invoices and payment records for your account, including dates, amounts, and payment status.

<CodeGroup>
  ```python Python theme={null}
  import videodb

  conn = videodb.connect(api_key="your_api_key")

  # Get all invoices
  invoices = conn.get_invoices()

  for invoice in invoices:
      print(f"Invoice ID: {invoice.get('id')}")
      print(f"Amount: ${invoice.get('amount')}")
      print(f"Date: {invoice.get('date')}")
      print(f"Status: {invoice.get('status')}")
      print("---")
  ```

  ```javascript Node.js theme={null}
  import { connect } from 'videodb';

  const conn = connect({ apiKey: 'your_api_key' });

  // Get all invoices
  const invoices = await conn.getInvoices();

  for (const invoice of invoices) {
      console.log(`Invoice ID: ${invoice.id}`);
      console.log(`Amount: $${invoice.amount}`);
      console.log(`Date: ${invoice.date}`);
      console.log(`Status: ${invoice.status}`);
      console.log("---");
  }
  ```
</CodeGroup>

<Note>
  * Invoices are generated monthly based on your billing cycle
  * Each invoice includes itemized charges for different operations and features
  * Payment status may be "paid", "pending", or "failed"
  * Invoices are available for the current billing period and all previous periods
</Note>

<CardGroup cols={2}>
  <Card title="Billing Overview" icon="credit-card" href="/api-reference/billing/index">
    Manage billing and usage information
  </Card>

  <Card title="Get Usage Statistics" icon="chart-line" href="/api-reference/billing/get_usage">
    Check current usage and credit consumption
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /billing/invoices
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /billing/invoices:
    get:
      summary: Get billing invoices
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            example: 10
        - name: offset
          in: query
          schema:
            type: integer
            example: 0
      responses:
        '200':
          description: Invoice list
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: in_xxx
                        amount:
                          type: number
                          example: 100
                        currency:
                          type: string
                          example: usd
                        status:
                          type: string
                          example: paid
                        pdf_url:
                          type: string
                          example: https://invoice.stripe.com/pdf/xxx
                        created_at:
                          type: string
                          format: date-time
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````