{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ontoramp-com/json-schema/ontoramp-com-checkout-request-schema.json",
  "title": "CheckoutRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ontoramp-com-openapi.yaml#/components/schemas/CheckoutRequest",
  "type": "object",
  "required": [
    "lookup_key"
  ],
  "properties": {
    "lookup_key": {
      "type": "string",
      "description": "The plan to purchase (Stripe price lookup key).",
      "enum": [
        "knowledge_graph_org",
        "governance_evaluator_org",
        "projection_engine_org",
        "governance_intelligence_bundle",
        "architecture_pack"
      ]
    },
    "lead_id": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional assessment-lead id to join the purchase back to a lead."
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional client key; collapses a double-submit into one session."
    },
    "confirm_manual_intake": {
      "type": "boolean",
      "description": "Required (must be exactly true) when lookup_key is architecture_pack. Acknowledges that the Architecture Pack is a one-time engagement fulfilled through a human intake process after purchase — the seller contacts the checkout email to begin intake; it is not instant-provisioned like the subscription plans. Ignored for other SKUs.\n"
    },
    "utm": {
      "type": "object",
      "description": "Optional UTM attribution bundle threaded onto the session.",
      "properties": {
        "source": {
          "type": "string"
        },
        "medium": {
          "type": "string"
        },
        "campaign": {
          "type": "string"
        }
      }
    }
  }
}