{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bettermenu/json-schema/bettermenu-checkout-request-schema.json",
  "title": "CheckoutRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bettermenu-entitlements-api-openapi.yml#/components/schemas/CheckoutRequest",
  "properties": {
    "plan_name": {
      "type": "string",
      "title": "Plan Name",
      "description": "Internal identifier of the plan to subscribe to (e.g. 'pro')."
    },
    "success_url": {
      "type": "string",
      "title": "Success Url",
      "description": "Absolute URL Stripe redirects to after a completed checkout."
    },
    "cancel_url": {
      "type": "string",
      "title": "Cancel Url",
      "description": "Absolute URL Stripe redirects to if the customer cancels."
    }
  },
  "type": "object",
  "required": [
    "plan_name",
    "success_url",
    "cancel_url"
  ]
}