{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callforme-tel/json-schema/callforme-tel-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callforme-tel-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "balance": {
      "type": "string"
    },
    "balance_cents": {
      "type": "integer"
    },
    "auto_reload": {
      "type": "boolean"
    },
    "auto_reload_below": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    },
    "usage": {
      "type": "object",
      "properties": {
        "spent_last_days": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "days": {
          "type": "integer"
        },
        "per_day": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "runs_out_around": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "calls_left_about": {
      "type": "integer"
    },
    "add_credit_url": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
      },
      "description": "Low balance with auto-reload off, or calls paused under your floor"
    }
  }
}