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

# List transactions

> Org's billing-ledger transactions (read from Croesus, newest first).

Filters: kind=credit|debit, source=<metadata.source>, before=<RFC3339> +
before_id=<uuid> (cursor; must be passed together), limit=<1..1000>.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/external/orgs/{slug}/transactions
openapi: 3.1.0
info:
  title: Lyceum Cloud API
  version: 0.1.0
servers:
  - url: https://api.lyceum.technology
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v2/external/orgs/{slug}/transactions:
    get:
      tags:
        - Billing
      summary: List transactions
      description: |-
        Org's billing-ledger transactions (read from Croesus, newest first).

        Filters: kind=credit|debit, source=<metadata.source>, before=<RFC3339> +
        before_id=<uuid> (cursor; must be passed together), limit=<1..1000>.
      operationId: list_org_transactions_api_v2_external_orgs__slug__transactions_get
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
        - name: kind
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Kind
        - name: source
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Source
        - name: before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Before
        - name: before_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Before Id
        - name: limit
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgTransactionsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrgTransactionsListResponse:
      properties:
        transactions:
          items:
            $ref: '#/components/schemas/OrgTransactionResponse'
          type: array
          title: Transactions
      type: object
      required:
        - transactions
      title: OrgTransactionsListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrgTransactionResponse:
      properties:
        id:
          type: string
          title: Id
        kind:
          type: string
          title: Kind
          description: '''credit'' or ''debit'''
        amount:
          type: string
          title: Amount
          description: Decimal string. Do not cast to float.
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        idempotency_key:
          type: string
          title: Idempotency Key
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - kind
        - amount
        - metadata
        - idempotency_key
        - created_at
      title: OrgTransactionResponse
      description: One credit/debit row from Croesus, scoped to an org.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass an API key (prefixed `lk_`) or a JWT access token as a bearer
        token. Generate API keys in the dashboard at
        https://dashboard.lyceum.technology/api-keys.

````