{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-auto-recharge-pref-request-schema.json",
  "title": "AutoRechargePrefRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-autorechargepreferences-api-openapi.yml#/components/schemas/AutoRechargePrefRequest",
  "properties": {
    "enabled": {
      "description": "Whether auto recharge is enabled.",
      "type": "boolean"
    },
    "invoice_enabled": {
      "type": "boolean"
    },
    "preference": {
      "description": "The payment preference for auto recharge.",
      "enum": [
        "credit_paypal",
        "ach"
      ],
      "type": "string"
    },
    "recharge_amount": {
      "description": "The amount to recharge the account, the actual recharge amount will be the amount necessary to reach the threshold amount plus the recharge amount.",
      "type": "string",
      "x-format": "decimal"
    },
    "threshold_amount": {
      "description": "The threshold amount at which the account will be recharged.",
      "type": "string",
      "x-format": "decimal"
    }
  },
  "type": "object"
}