{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/poof-bg/json-schema/poof-bg-account-info-schema.json",
  "title": "AccountInfo",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/poof-bg-openapi.json#/components/schemas/AccountInfo",
  "type": "object",
  "properties": {
    "organizationId": {
      "type": "string",
      "description": "Your organization ID"
    },
    "plan": {
      "type": "string",
      "description": "Current plan display name (e.g. \"Free\", \"Pro\")"
    },
    "maxCredits": {
      "type": "integer",
      "description": "Total credits available in billing cycle"
    },
    "usedCredits": {
      "type": "integer",
      "description": "Credits used in current billing cycle"
    },
    "autoRechargeThreshold": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 0.95,
      "description": "Fraction of the plan limit at which Auto Recharge triggers (e.g. 0.9 = 90%). Omitted when Auto Recharge is off."
    }
  },
  "required": [
    "organizationId",
    "plan",
    "maxCredits",
    "usedCredits"
  ]
}