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

# List sub-account transactions

> Returns a paginated list of billing transactions for the sub-account identified by `id`, within the requested date range.



## OpenAPI

````yaml https://wavix.github.io/wavix-openapi/wavix-api.yaml get /v1/sub-organizations/{id}/billing/transactions
openapi: 3.1.0
info:
  title: Wavix APIs
  description: >-
    Wavix provides robust APIs that let you integrate voice and text messaging
    features directly into your app. Send text, place calls, and access detailed
    reports  programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: '1.0'
servers:
  - url: https://api.wavix.com
    description: https://api.wavix.com
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: SIP trunks
  - name: Buy
    description: Numbers
  - name: Cart
    description: Numbers
  - name: My numbers
    description: Numbers
  - name: Billing
    description: Billing, transactions, and invoices
  - name: Profile
    description: Account profile and customer information
  - name: CDRs
    description: Call detail records and call history
  - name: Speech Analytics
    description: Call transcription and speech analytics
  - name: SMS and MMS
    description: Messaging
  - name: Number Validator
    description: Phone number validation
  - name: Link shortener
    description: Short link and click metrics
  - name: 2FA
    description: Two-factor authentication
  - name: 10DLC
    description: 10DLC Campaigns and Brands
  - name: API Keys
    description: API key management
  - name: Call webhooks
    description: Webhook configuration for call events
  - name: Call control
    description: Programmable Voice
  - name: Call streaming
    description: Real-time call audio streaming over WebSocket
  - name: Call recording
    description: Call recording
  - name: Sub-accounts
    description: Sub-account management
  - name: Voice campaigns
    description: Outbound voice campaigns
  - name: Wavix Embeddable
    description: WebRTC embeddable widget
paths:
  /v1/sub-organizations/{id}/billing/transactions:
    get:
      tags:
        - Sub-accounts
      summary: List sub-account transactions
      description: >-
        Returns a paginated list of billing transactions for the sub-account
        identified by `id`, within the requested date range.
      operationId: sub_accounts_transactions_list
      parameters:
        - name: id
          in: path
          description: The unique ID of the sub-account.
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
            example: 123
        - name: from_date
          in: query
          required: true
          description: Start of the date range to query, in `YYYY-MM-DD` format. Inclusive.
          style: form
          explode: true
          schema:
            type: string
            format: date
            example: '2023-01-01'
        - name: to_date
          in: query
          description: End of the date range to query, in `YYYY-MM-DD` format. Inclusive.
          required: true
          style: form
          explode: true
          schema:
            type: string
            format: date
            example: '2023-12-31'
        - name: type
          in: query
          description: >-
            Filters transactions by type. Accepts a single transaction type code
            or an array of codes.
          required: false
          style: form
          explode: true
          schema:
            oneOf:
              - title: Single type
                type: integer
                format: int32
                example: 1
              - title: Multiple types
                type: array
                items:
                  type: integer
                  format: int32
                example:
                  - 1
                  - 2
                  - 3
        - name: page
          in: query
          description: Page number to retrieve. Default `1`.
          style: form
          explode: true
          schema:
            type: integer
            format: int32
            example: 1
        - name: per_page
          in: query
          description: Number of records to return per page. Default `25`.
          style: form
          explode: true
          schema:
            type: integer
            format: int32
            default: 25
            example: 25
      responses:
        '200':
          headers: {}
          description: Returns a paginated list of sub-account transactions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubAccountsTransactionsListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    transactions:
                      - amount: 10.5
                        balance_after: 100
                        date: '2023-06-15T10:30:00Z'
                        details: Account top-up
                        status: committed
                        type: 1
                    pagination:
                      current_page: 1
                      per_page: 25
                      total: 1
                      total_pages: 123
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
        '503':
          description: Returns when the transaction list is temporarily unavailable.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
      deprecated: false
      security:
        - bearerAuth:
            - subaccounts:read
components:
  schemas:
    SubAccountsTransactionsListResponse:
      type: object
      additionalProperties: false
      properties:
        transactions:
          type: array
          description: Financial transactions for the subaccount.
          items:
            type: object
            additionalProperties: false
            properties:
              amount:
                type: number
                format: float
                description: Transaction amount.
                example: 10.5
              balance_after:
                type: number
                format: float
                description: Sub-account balance after the transaction.
                example: 100
              date:
                type: string
                description: Transaction date and time in ISO 8601 format.
                format: date-time
                example: '2023-06-15T10:30:00Z'
              details:
                type: string
                description: Transaction details.
                example: Account top-up
              status:
                type: string
                description: Transaction status.
                example: committed
              type:
                type: integer
                description: Transaction type.
                example: 1
        pagination:
          $ref: '#/components/schemas/Pagination'
    ValidationErrorResponse:
      title: ValidationErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: >-
            Human-readable description naming the missing or invalid request
            parameter.
          example: Missing or invalid parameter <param_name>
    Pagination:
      title: Pagination
      required:
        - current_page
        - per_page
        - total
        - total_pages
      type: object
      additionalProperties: false
      properties:
        current_page:
          type: integer
          description: Current page number.
          format: int32
          example: 2
        per_page:
          type: integer
          description: Number of records per page.
          format: int32
          example: 25
        total:
          type: integer
          description: Total number of records.
          format: int32
          example: 101
        total_pages:
          type: integer
          description: Total number of pages.
          format: int32
          example: 5
    UnauthorizedErrorResponse:
      title: UnauthorizedErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        error:
          type: boolean
          description: >-
            Indicates that the response represents an error. Always `true` for
            this error.
          example: true
        message:
          type: string
          description: >-
            Human-readable description stating that authentication is missing or
            invalid.
          example: Unauthorized
    ForbiddenErrorResponse:
      title: ForbiddenErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: Human-readable description of why access is forbidden.
          example: The service is not provisioned for your account.
    NotFoundErrorResponse:
      title: NotFoundErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: >-
            Human-readable description stating that no resource matches the
            given ID.
          example: Record not found
  responses:
    UnauthorizedErrorResponse:
      description: Unauthorized
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedErrorResponse'
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support
        per-resource scopes (none / read / write). See [Restricted keys and
        scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

````