{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-post-billing-checkout-data-schema.json",
  "title": "PostBillingCheckoutData",
  "description": "Request body for creating a Stripe checkout session for a subscription purchase",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-billing-api-openapi.yml#/components/schemas/PostBillingCheckoutData",
  "type": "object",
  "required": [
    "plan",
    "cycle"
  ],
  "properties": {
    "plan": {
      "$ref": "#/$defs/BillingPlanData"
    },
    "cycle": {
      "$ref": "#/$defs/BillingCycleData"
    }
  },
  "$defs": {
    "BillingCycleData": {
      "type": "string",
      "description": "Billing interval that should be used for the subscription purchase",
      "enum": [
        "MONTHLY",
        "YEARLY"
      ]
    },
    "BillingPlanData": {
      "type": "string",
      "description": "Subscription plan that should be purchased through Stripe Checkout",
      "enum": [
        "PRO",
        "ULTIMATE"
      ]
    }
  }
}