{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/griffnode-com/json-schema/griffnode-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/griffnode-com-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "tier": {
          "$ref": "#/$defs/PlanTier"
        },
        "billing_cycle": {
          "type": "string"
        },
        "auto_renewal": {
          "type": "boolean"
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "monthly_transactions_used": {
          "type": "integer"
        },
        "monthly_transaction_limit": {
          "type": [
            "integer",
            "null"
          ],
          "description": "null = unlimited."
        },
        "overage_cost_per_tx": {
          "type": "number",
          "deprecated": true,
          "description": "Always 0. Plans have a hard monthly limit and no overage."
        }
      }
    },
    "limits": {
      "type": "object",
      "properties": {
        "api_rate_limit_per_minute": {
          "type": "integer"
        },
        "api_rate_limit_per_hour": {
          "type": "integer"
        },
        "webhook_support": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "PlanTier": {
      "type": "string",
      "enum": [
        "starter",
        "business",
        "professional",
        "enterprise"
      ]
    }
  }
}