{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldrig-dev/json-schema/coldrig-dev-checkout-result-schema.json",
  "title": "CheckoutResult",
  "description": "`mode` is `\"simulated\"` only when this environment cannot reach real vendor billing at all (no Stripe key wired, no engine armed) — a fully-unarmed test environment; otherwise `\"stripe\"`. `url` is the hosted Checkout link to open and pay. `sessionId` identifies the checkout session; it is re-validated account-scoped server-side on the return leg, never trusted as a bare credential. `forAgents` is plain-language guidance for the calling agent on how to complete this checkout (pay the hosted page itself with a browser tool, or pass the URL to whoever pays); its wording varies by `mode`.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldrig-dev-account-api-openapi.yml#/components/schemas/CheckoutResult",
  "type": "object",
  "required": [
    "mode",
    "url",
    "sessionId",
    "forAgents"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "stripe",
        "simulated"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "sessionId": {
      "type": "string"
    },
    "forAgents": {
      "type": "string"
    }
  }
}