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

# List credit transactions

> Transaction history, newest first. Amounts are in ₹; `usage` rows are negative.



## OpenAPI

````yaml /openapi.json get /billing/transactions
openapi: 3.1.0
info:
  title: Vocobase API
  version: '2.0'
  description: >-
    API for managing voice AI agents, documents, and calls on the Vocobase
    platform.
servers:
  - url: https://api.vocobase.com/api/v2
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Config
    description: >-
      Read and update account configuration, webhook settings, and telephony
      credentials.
  - name: Agents
    description: Create, read, update, and delete voice AI agents.
  - name: Voices
    description: >-
      List voice tiers, available voices, and stream preview audio for agent
      configuration.
  - name: Documents
    description: Upload, manage, and delete knowledge base documents.
  - name: Agent Documents
    description: Link and unlink documents to agents for knowledge base integration.
  - name: Calls
    description: Initiate outbound calls and view call history.
  - name: Phone Numbers
    description: >-
      Import DIDs, assign agents for inbound routing, and re-sync carrier
      Application bindings.
  - name: Inbound Routing Policies
    description: >-
      Define pre-answer routing decisions for inbound calls before AI sessions
      are created.
  - name: Telephony Connections
    description: Create, list, rename, and disconnect named V2 telephony connections.
  - name: VoiceLink Management
    description: Manage VoiceLink reseller clients, DID mapping, and readiness sync.
  - name: Projects
    description: Organize agents into projects. Every agent belongs to exactly one project.
  - name: Dictionaries
    description: Speech-recognition dictionary CRUD and agent attachment.
  - name: Sessions
    description: Browser-initiated WebRTC voice sessions for in-app voice agents.
  - name: Campaigns
    description: Batch outbound calling.
  - name: Billing
    description: Balance, transactions, and usage summaries.
  - name: Custom Functions
    description: HTTP endpoints the agent can call mid-conversation.
  - name: Extraction Sets
    description: Reusable sets of post-call extraction fields.
  - name: Lifecycle Hooks
    description: Automatic pre-call and post-call integration steps.
  - name: Messaging
    description: Bring-your-own WhatsApp sending.
  - name: Integration Logs
    description: Audit trail for integration calls.
  - name: Connectors
    description: Catalog of tools an agent can be connected to.
  - name: Customers
    description: B2B2B sub-tenants and their tool connections.
  - name: Agent Tools
    description: Binding connectors and connections to an agent.
paths:
  /billing/transactions:
    get:
      tags:
        - Billing
      summary: List credit transactions
      description: >-
        Transaction history, newest first. Amounts are in ₹; `usage` rows are
        negative.
      operationId: listTransactions
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            maximum: 100
          description: Page size. Default 50, maximum 100.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
          description: Rows to skip. Default 0.
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum:
              - PURCHASE
              - USAGE
              - REFUND
              - BONUS
          description: Filter by transaction type.
        - name: start_date
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Only transactions at or after this ISO 8601 date.
        - name: end_date
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Only transactions at or before this ISO 8601 date.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            amount:
                              type: number
                              description: ₹. Negative for `usage`.
                            type:
                              type: string
                              enum:
                                - purchase
                                - usage
                                - refund
                                - bonus
                            description:
                              type: string
                              nullable: true
                            metadata:
                              type: object
                              nullable: true
                              additionalProperties: true
                              description: >-
                                Context for the row, e.g. the `session_id` a
                                usage charge came from.
                            created_at:
                              type: string
                              format: date-time
                      total:
                        type: integer
                      limit:
                        type: integer
                      offset:
                        type: integer
              example:
                success: true
                data:
                  transactions:
                    - id: tx_5f4e3d2c-1b0a-9876-5432-1fedcba09876
                      amount: -5.76
                      type: usage
                      description: Voice session
                      metadata:
                        session_id: s2345678-abcd-1234-abcd-123456789012
                      created_at: '2026-08-20T09:36:28.000Z'
                    - id: tx_6a5b4c3d-2e1f-0987-6543-2fedcba09877
                      amount: 25000
                      type: purchase
                      description: Top-up
                      metadata: null
                      created_at: '2026-08-18T11:02:00.000Z'
                  total: 2
                  limit: 50
                  offset: 0
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    ValidationError:
      description: Validation error in request body or parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: VALIDATION_ERROR
              message: agent_name is required and must be max 50 characters
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key
    RateLimitExceeded:
      description: Per-account rate limit exceeded. Retry after a short backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: RATE_LIMITED
              message: Rate limit exceeded. Retry after 60 seconds.
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: INTERNAL_ERROR
              message: An unexpected error occurred
  schemas:
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - success
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key in format: `rg_live_xxxx`. Pass as a Bearer token in the
        Authorization header.

````