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

# Billing history

> Returns the history of credit transactions (additions, deductions, etc.) for the organization.



## OpenAPI

````yaml GET /api/v1/billing/history
openapi: 3.0.1
info:
  title: Sequentum Cloud API
  description: API endpoints for Sequentum Cloud
  version: v1
servers: []
security:
  - ApiKey: []
    Bearer: []
paths:
  /api/v1/billing/history:
    get:
      tags:
        - ApiBilling
      summary: Get credit transaction history
      description: >-
        Returns the history of credit transactions (additions, deductions, etc.)
        for the organization.
      parameters:
        - name: pageIndex
          in: query
          description: 'Page number (1-based, default: 1)'
          schema:
            type: integer
            format: int32
            default: 1
        - name: recordsPerPage
          in: query
          description: 'Records per page (default: 50, max: 100)'
          schema:
            type: integer
            format: int32
            default: 50
      responses:
        '200':
          description: Returns the credit history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditHistoryApiModel'
        '401':
          description: If the API key is missing or invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    CreditHistoryApiModel:
      type: object
      properties:
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/CreditTransactionApiModel'
          nullable: true
        totalCount:
          type: integer
          format: int32
        pageIndex:
          type: integer
          format: int32
        recordsPerPage:
          type: integer
          format: int32
      additionalProperties: false
      description: Response model for credit history
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    CreditTransactionApiModel:
      type: object
      properties:
        id:
          type: integer
          format: int64
        transactionType:
          type: string
          nullable: true
        amount:
          type: number
          format: double
        balance:
          type: number
          format: double
        created:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
          nullable: true
        message:
          type: string
          nullable: true
      additionalProperties: false
      description: Individual credit transaction record
  securitySchemes:
    ApiKey:
      type: apiKey
      description: >-
        API Key authorization header. Example: "Authorization: ApiKey
        {your-api-key}"
      name: Authorization
      in: header
    Bearer:
      type: http
      description: 'OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"'
      scheme: bearer
      bearerFormat: JWT

````