{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-checkout-response-schema.json",
  "title": "CheckoutResponse",
  "description": "Response from checkout session creation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-billing-api-openapi.yml#/components/schemas/CheckoutResponse",
  "properties": {
    "checkout_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Checkout Url",
      "description": "URL to redirect user to for payment"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id",
      "description": "Checkout session ID for status polling"
    },
    "subscription_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Id",
      "description": "Internal subscription ID"
    },
    "requires_checkout": {
      "type": "boolean",
      "title": "Requires Checkout",
      "description": "Whether checkout is required",
      "default": true
    },
    "billing_disabled": {
      "type": "boolean",
      "title": "Billing Disabled",
      "description": "Whether billing is disabled on this instance",
      "default": false
    }
  },
  "type": "object"
}