{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scaledthought-com/json-schema/scaledthought-com-transactions-page-schema.json",
  "title": "TransactionsPage",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scaledthought-com-openapi.json#/components/schemas/TransactionsPage",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "purchase",
              "auto_reload",
              "grant",
              "usage",
              "batch",
              "fine_tune",
              "refund",
              "adjustment",
              "dispute_hold",
              "dispute_release",
              "video",
              "promo",
              "promo_expire",
              "trial",
              "trial_expire",
              "review",
              "internal_grant",
              "customer_grant"
            ]
          },
          "amount_usd": {
            "type": "number"
          },
          "amount_micros": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "balance_after_usd": {
            "type": "number"
          },
          "created_at": {
            "type": "string"
          },
          "topup_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "batch_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "fine_tune_job_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "amount_usd",
          "amount_micros",
          "balance_after_usd",
          "created_at",
          "topup_id",
          "request_id",
          "batch_id",
          "fine_tune_job_id",
          "reason"
        ],
        "additionalProperties": false
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "data",
    "next_cursor"
  ],
  "additionalProperties": false
}