{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-billing-checkout-schema.json",
  "title": "BillingCheckout",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-billing-api-openapi.yml#/components/schemas/BillingCheckout",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "billing_checkout"
      ]
    },
    "funding": {
      "$ref": "#/$defs/BillingHostedCheckoutFunding"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Short-lived hosted checkout URL."
    },
    "planKey": {
      "type": "string",
      "enum": [
        "starter",
        "basic",
        "grow",
        "advanced",
        "scale",
        "enterprise"
      ],
      "description": "Self-serve plan key. enterprise is not self-serve and returns plan_not_self_serve."
    },
    "interval": {
      "type": "string",
      "enum": [
        "monthly",
        "annual"
      ]
    }
  },
  "required": [
    "object",
    "funding",
    "url",
    "planKey",
    "interval"
  ],
  "$defs": {
    "BillingHostedCheckoutFunding": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "hosted_checkout"
          ]
        }
      },
      "required": [
        "type"
      ]
    }
  }
}