{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-auto-recharge-update-request-schema.json",
  "title": "AutoRechargeUpdateRequest",
  "description": "Request body to update auto-recharge settings.\n\nEnabling requires a saved card (enforced server-side -> 400 otherwise).",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-openapi.json#/components/schemas/AutoRechargeUpdateRequest",
  "properties": {
    "enabled": {
      "type": "boolean",
      "title": "Enabled"
    },
    "threshold_credits": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Threshold Credits",
      "description": "Top up when balance drops below this."
    },
    "pack": {
      "type": "string",
      "enum": [
        "100_credits",
        "500_credits",
        "2000_credits"
      ],
      "title": "Pack"
    },
    "monthly_cap_usd": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Cap Usd",
      "description": "Optional monthly USD spend ceiling."
    }
  },
  "type": "object",
  "required": [
    "enabled",
    "threshold_credits",
    "pack"
  ]
}