{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/investormatch-pro/json-schema/investormatch-pro-auto-refill-settings-schema.json",
  "title": "AutoRefillSettings",
  "description": "Null when the user has never configured auto-refill.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/investormatch-pro-api-openapi.json#/components/schemas/AutoRefillSettings",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "refill_threshold": {
      "type": "integer",
      "description": "Trigger a top-up when the balance drops to/below this."
    },
    "refill_amount": {
      "type": "integer",
      "description": "Credits added per top-up."
    },
    "stripe_payment_method_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Masked saved card, e.g. '****4242'. Never the raw payment-method ID."
    },
    "monthly_limit": {
      "type": "integer",
      "description": "Max credits auto-refilled per month."
    },
    "monthly_used": {
      "type": "integer",
      "description": "Credits auto-refilled so far this month."
    }
  }
}