{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recruitmcp-com/json-schema/recruitmcp-com-auto-refill-schema.json",
  "title": "AutoRefill",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recruitmcp-com-billing-api-openapi.yml#/components/schemas/AutoRefill",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "auto_refill"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "threshold_credits": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Refill when the balance is below this. Null until it is set."
    },
    "max_refills_per_month": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Maximum charges in a UTC month."
    },
    "max_eur_per_month": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Euro cap for a UTC month."
    },
    "card_on_file": {
      "type": "boolean",
      "description": "True after a pack checkout saves a card."
    },
    "refills_this_month": {
      "type": "integer",
      "description": "Succeeded refills this UTC month. An in-flight charge is not counted until it is granted."
    },
    "amount_eur_this_month": {
      "type": "integer"
    },
    "disabled_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why a failed charge turned auto-refill off."
    }
  },
  "required": [
    "object",
    "enabled",
    "card_on_file",
    "refills_this_month",
    "amount_eur_this_month"
  ]
}