{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowl-chat/json-schema/prowl-chat-wallet-balances-schema.json",
  "title": "WalletBalances",
  "description": "The two pools a caller spends from, rounded to whole cents at this boundary.\n\nSub-cent precision is deliberate *inside* the store (SSH-305) and deliberately\nabsent here — `web/server.py::_rounded_wallet_fields` rounds on the way out so a\ndisplay value never carries a float tail.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowl-chat-openapi.json#/components/schemas/WalletBalances",
  "properties": {
    "subscription_balance_usd": {
      "type": "number",
      "title": "Subscription Balance Usd",
      "description": "Plan credit for the current period. Burns at period end, spent first."
    },
    "extra_balance_usd": {
      "type": "number",
      "title": "Extra Balance Usd",
      "description": "Top-up credit. Never expires, spent after the subscription pool."
    },
    "total_available_usd": {
      "type": "number",
      "title": "Total Available Usd",
      "description": "What the next call can draw on: the two pools added together."
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At",
      "description": "ISO-8601 timestamp of the last balance change, or null if never moved."
    }
  },
  "type": "object",
  "required": [
    "subscription_balance_usd",
    "extra_balance_usd",
    "total_available_usd"
  ]
}