{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vapagent-com/json-schema/vapagent-com-api-routes-vap-human-router-checkout-session-request-schema.json",
  "title": "CheckoutSessionRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vapagent-com-openapi.json#/components/schemas/api__routes__vap_human__router__CheckoutSessionRequest",
  "properties": {
    "checkout_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "room_plan",
            "room_topup",
            "api_balance",
            "code_plan"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Checkout Type"
    },
    "plan_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Plan Code"
    },
    "amount": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Amount"
    },
    "provider": {
      "type": "string",
      "enum": [
        "crypto",
        "lemonsqueezy"
      ],
      "title": "Provider"
    },
    "success_url": {
      "type": "string",
      "title": "Success Url"
    },
    "cancel_url": {
      "type": "string",
      "title": "Cancel Url"
    },
    "pending_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pending Url"
    },
    "purchase_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purchase Type"
    },
    "topup": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Topup"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "provider",
    "success_url",
    "cancel_url"
  ]
}