{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-checkout-request-schema.json",
  "title": "CheckoutRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-billing-api-openapi.yml#/components/schemas/CheckoutRequest",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string",
      "enum": [
        "credit_pack_10",
        "credit_pack_30",
        "credit_pack_100"
      ],
      "description": "Plan tier to subscribe to."
    },
    "interval": {
      "default": "month",
      "description": "Billing interval: 'month' (monthly) or 'year' (annual, ~2 months free).",
      "type": "string",
      "enum": [
        "month",
        "year"
      ]
    }
  },
  "required": [
    "plan",
    "interval"
  ],
  "additionalProperties": false
}