{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keepbal-com/json-schema/keepbal-com-balance-schema.json",
  "title": "Balance",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keepbal-com-openapi.yaml#/components/schemas/Balance",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "account_balance_micros_usd": {
      "type": "integer"
    },
    "available_balance_micros_usd": {
      "type": "integer"
    },
    "api_key": {
      "type": "object",
      "properties": {
        "key_prefix": {
          "type": "string"
        },
        "unlimited": {
          "type": "boolean",
          "description": "No separate per-key spend cap. The wallet balance is still enforced with 402. This is not an unlimited grant."
        },
        "remaining_micros_usd": {
          "type": "integer"
        },
        "used_micros_usd": {
          "type": "integer"
        }
      }
    },
    "as_of": {
      "type": "string",
      "format": "date-time"
    }
  }
}