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

# List invoices

> List billing invoices and transaction download links.

Required scope: `billing:read`.

On success, `data` contains: `invoices`.



## OpenAPI

````yaml https://sitegpt.ai/api/v2/openapi.json get /api/v2/billing/invoices
openapi: 3.1.0
info:
  title: SiteGPT Agent API
  version: 2.0.0
  description: >-
    Agent-facing API for managing SiteGPT chatbots, dashboard summaries,
    appearance media, knowledge, settings, conversations, leads, members,
    account profiles, usage, billing reads, and API tokens.
servers:
  - url: https://sitegpt.ai
security:
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Onboarding
  - name: Account
  - name: Billing
  - name: Tokens
  - name: Chatbots
  - name: Knowledge
  - name: Knowledge Sync Jobs
  - name: Knowledge Sources
  - name: Custom Responses
  - name: Personas
  - name: Instructions
  - name: Settings
  - name: Conversation Starters
  - name: Conversation Followups
  - name: Members
  - name: Leads
  - name: Conversations
  - name: Messages
  - name: Tags
paths:
  /api/v2/billing/invoices:
    get:
      tags:
        - Billing
      summary: List invoices
      description: |-
        List billing invoices and transaction download links.

        Required scope: `billing:read`.

        On success, `data` contains: `invoices`.
      operationId: listBillingInvoices
      responses:
        '200':
          description: Successful SiteGPT API v2 response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                  - meta
                properties:
                  ok:
                    type: boolean
                    const: true
                  data:
                    type: object
                    additionalProperties: true
                    properties:
                      invoices:
                        type: array
                        items:
                          $ref: '#/components/schemas/Invoice'
                  meta:
                    $ref: '#/components/schemas/AgentResponseMeta'
                additionalProperties: false
              example:
                ok: true
                data:
                  invoices:
                    - id: txn_x
                      status: completed
                      amount: '4900'
                      currencyCode: USD
                      downloadUrl: https://example.com/invoice.pdf
                meta:
                  requestId: request-id
        '400':
          $ref: '#/components/responses/AgentError'
        '401':
          $ref: '#/components/responses/AgentError'
        '403':
          $ref: '#/components/responses/AgentError'
        '404':
          $ref: '#/components/responses/AgentError'
        '405':
          $ref: '#/components/responses/AgentError'
      security:
        - bearerAuth:
            - billing:read
components:
  schemas:
    Invoice:
      type: object
      description: A billing transaction with its invoice download link.
      additionalProperties: true
      properties:
        id:
          type: string
        status:
          type: string
        subscriptionStatus:
          type:
            - string
            - 'null'
        customerId:
          type: string
        subscriptionId:
          type:
            - string
            - 'null'
        invoiceId:
          type:
            - string
            - 'null'
        invoiceNumber:
          type:
            - string
            - 'null'
        currencyCode:
          type: string
        amount:
          type:
            - string
            - 'null'
        amountFormatted:
          type:
            - string
            - 'null'
        origin:
          type: string
        collectionMode:
          type: string
        billingPeriod:
          $ref: '#/components/schemas/GenericObject'
          description: Billing period start and end.
        billedAt:
          type:
            - string
            - 'null'
          format: date-time
        paidAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        downloadUrl:
          type:
            - string
            - 'null'
          description: PDF invoice download URL, when available.
        paymentMethod:
          type:
            - string
            - 'null'
        products:
          type: array
          items:
            $ref: '#/components/schemas/GenericObject'
            description: Purchased product line item.
    AgentResponseMeta:
      type: object
      required:
        - requestId
      properties:
        requestId:
          type: string
        warnings:
          type: array
          items:
            type: string
        nextCursor:
          type:
            - string
            - 'null'
      additionalProperties: true
    GenericObject:
      type: object
      additionalProperties: true
    AgentError:
      type: object
      required:
        - ok
        - error
        - meta
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          additionalProperties: false
        meta:
          type: object
          required:
            - requestId
          properties:
            requestId:
              type: string
          additionalProperties: true
      additionalProperties: false
  responses:
    AgentError:
      description: SiteGPT agent API error response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AgentError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: SiteGPT API token

````