{
 "about": {
  "clock": "2026-06-03T10:00:00Z",
  "note": "Recorded example data: the real code of the UCP test endpoint run on fictitious hotels, sellers and links, with the clock frozen. Not live prices. In the live test, continue_url is Blue Pillow's redirect to the seller's checkout.",
  "endpoint": "https://ucp.mcp.b2a.bluepillow.com/mcp"
 },
 "discovery": {
  "request": {
   "method": "GET",
   "url": "https://b2a.bluepillow.com/ucp/profile.json"
  },
  "response": {
   "ucp": {
    "version": "2026-10-31",
    "services": {
     "dev.ucp.lodging": [
      {
       "version": "2026-10-31",
       "spec": "https://ucp.dev/draft/specification/overview/",
       "transport": "mcp",
       "schema": "https://ucp.dev/draft/services/lodging/mcp.openrpc.json",
       "endpoint": "https://ucp.mcp.b2a.bluepillow.com/mcp"
      }
     ]
    },
    "capabilities": {
     "dev.ucp.lodging.booking": [
      {
       "version": "2026-10-31",
       "spec": "https://ucp.dev/draft/specification/lodging/booking/",
       "schema": "https://ucp.dev/draft/schemas/lodging/booking.json"
      }
     ],
     "com.bluepillow.b2a.lodging.indirect_transaction": [
      {
       "version": "2026-10-31",
       "spec": "https://b2a.bluepillow.com/ucp",
       "schema": "https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json",
       "extends": "dev.ucp.lodging.booking"
      }
     ]
    },
    "payment_handlers": {}
   },
   "com.bluepillow.b2a.notice": {
    "kind": "public_test",
    "summary": "Public test of a feature not yet in UCP: indirect transactions. Blue Pillow is a comparator (metasearch), not the seller and not the merchant of record. Booking sessions verify the rate and end in status requires_escalation with continue_url pointing to the seller's own checkout (an online travel agency), where the seller takes the payment and confirms the booking. Blue Pillow takes no payment and makes, changes or cancels no booking. Working demo, open to external testers.",
    "spec_basis": "dev.ucp.lodging.booking as drafted in UCP main at commit 58c7ab92dcf80b3b1fc756d577b0552ec1cd503a (2026-10-31); a draft, not part of any UCP release. Versions 2026-10-31 refer to that snapshot; the spec and schema URLs under https://ucp.dev/draft/ were the draft at time of writing and may move.",
    "discovery": "Shared outside public UCP discovery, at https://b2a.bluepillow.com/ucp/profile.json: dev.ucp.lodging.booking is a pre-release (draft) capability, and the UCP overview (Pre-release Versions) says pre-release implementations MUST NOT be surfaced through public discovery, while platforms and businesses MAY coordinate on them outside it. No stability or compatibility guarantee.",
    "authentication": "Free anonymous key, no sign-up: call the MCP tool get_anonymous_key (no authentication) on the endpoint, then send the key as an Authorization: Bearer header on every other call.",
    "documentation": "https://b2a.bluepillow.com/ucp"
   }
  }
 },
 "steps": [
  {
   "step": "search",
   "request": {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
     "name": "search_stays",
     "arguments": {
      "location": {
       "type": "coordinates",
       "value": {
        "lat": 41.9028,
        "lon": 12.4964,
        "radius_km": 3
       }
      },
      "dates": {
       "check_in": "2026-07-18",
       "check_out": "2026-07-19"
      },
      "guests": {
       "adults": 2
      }
     }
    }
   },
   "response": {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
     "content": [
      {
       "type": "text",
       "text": "Found 2 properties (total_estimate=2)\n\n  - Hotel Example - Roma, IT (41.9, 12.5); rating=4.0, stars=-, 0 OTAs; id=prop_65a0000000000000000000d1\n    AVAILABILITY: live for requested dates (4 operator(s))\n          LIVE BEST: €146.99/night via Seller A — €146.99 total — free cancellation — 2 rooms left\n          OTHER OFFER: €146.99/night via Seller B — €146.99 total — free cancellation — 2 rooms left\n          OTHER OFFER: €147.93/night via Seller C — €147.93 total — free cancellation — 1 room left\n          OTHER OFFER: €162.0/night via Seller D — €162.0 total — free cancellation — 1 room left\n    from €146.99/night (EUR, live for the requested dates) · link: https://comparator.example/hotel-example\n    perks: free cancellation available\n  - Guesthouse Example - Roma, IT (41.895, 12.48); rating=5.0, stars=-, 0 OTAs; id=prop_65a0000000000000000000d2\n    AVAILABILITY: live for requested dates (1 operator(s))\n          LIVE BEST: €71.0/night via Seller D — €71.0 total\n    from €71.0/night (EUR, live for the requested dates) · link: https://comparator.example/guesthouse-example"
      }
     ],
     "structuredContent": {
      "results": [
       {
        "id": "prop_65a0000000000000000000d1",
        "name": "Hotel Example",
        "brand": null,
        "chain": null,
        "property_type": "hotel",
        "rating": 4.0,
        "rating_count": null,
        "stars": null,
        "location": {
         "lat": 41.9,
         "lon": 12.5,
         "address": "1 Example Street, Rome",
         "city": "Roma",
         "country": "IT",
         "neighborhood": null
        },
        "amenities": [],
        "images": [],
        "thumbnail_url": null,
        "web_url": "https://comparator.example/hotel-example",
        "description": null,
        "features": [],
        "reviews_aggregate": null,
        "reviews_sample": null,
        "reviews_meta": null,
        "ota_coverage": [],
        "offers": [
         {
          "ota": "Seller A",
          "amount": 146.99,
          "amount_per_night": 146.99,
          "currency": "EUR",
          "breakfast_included": false,
          "refundable": true,
          "is_discounted": true,
          "discount_percentage": null,
          "deeplink_url": "https://seller-a.example/checkout/1",
          "rooms_left": 2,
          "cancellation_policy": {
           "type": "dev.ucp.lodging.policy.cancellation",
           "refundability": "refundable",
           "free_cancellation_until": "2026-07-16T23:59:00+02:00",
           "description": {
            "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
           }
          }
         },
         {
          "ota": "Seller B",
          "amount": 146.99,
          "amount_per_night": 146.99,
          "currency": "EUR",
          "breakfast_included": false,
          "refundable": true,
          "is_discounted": true,
          "discount_percentage": null,
          "deeplink_url": "https://seller-b.example/checkout/1",
          "rooms_left": 2,
          "cancellation_policy": {
           "type": "dev.ucp.lodging.policy.cancellation",
           "refundability": "refundable",
           "free_cancellation_until": "2026-07-16T23:59:00+02:00",
           "description": {
            "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
           }
          }
         },
         {
          "ota": "Seller C",
          "amount": 147.93,
          "amount_per_night": 147.93,
          "currency": "EUR",
          "breakfast_included": false,
          "refundable": true,
          "is_discounted": false,
          "discount_percentage": null,
          "deeplink_url": "https://seller-c.example/checkout/1",
          "rooms_left": 1,
          "cancellation_policy": {
           "type": "dev.ucp.lodging.policy.cancellation",
           "refundability": "refundable",
           "free_cancellation_until": "2026-07-16T21:59:00Z",
           "description": {
            "plain": "Free cancellation until 2026-07-16T21:59:00+00:00 (as reported by the operator)."
           }
          }
         },
         {
          "ota": "Seller D",
          "amount": 162.0,
          "amount_per_night": 162.0,
          "currency": "EUR",
          "breakfast_included": false,
          "refundable": true,
          "is_discounted": false,
          "discount_percentage": null,
          "deeplink_url": "https://seller-d.example/checkout/1",
          "rooms_left": 1,
          "cancellation_policy": {
           "type": "dev.ucp.lodging.policy.cancellation",
           "refundability": "refundable",
           "free_cancellation_until": "2026-07-15T21:59:59Z",
           "description": {
            "plain": "Free cancellation until 2026-07-15T21:59:59+00:00 (as reported by the operator)."
           }
          }
         }
        ],
        "price": {
         "amount": 146.99,
         "amount_per_night": 146.99,
         "currency": "EUR",
         "breakfast_included": false,
         "refundable": true,
         "is_discounted": true,
         "discount_percentage": null,
         "ota": "Seller A"
        },
        "quoted_at": "2026-06-03T10:00:00Z",
        "valid_until": "2026-06-03T10:05:00Z",
        "validity_source": "b2a_freshness",
        "rate": {
         "property_id": "prop_65a0000000000000000000d1",
         "stay_dates": {
          "start_date": "2026-07-18",
          "end_date": "2026-07-19"
         },
         "occupancy": {
          "adults": 2,
          "children": 0,
          "total": 2
         }
        },
        "availability_status": "available"
       },
       {
        "id": "prop_65a0000000000000000000d2",
        "name": "Guesthouse Example",
        "brand": null,
        "chain": null,
        "property_type": "apartment",
        "rating": 5.0,
        "rating_count": null,
        "stars": null,
        "location": {
         "lat": 41.895,
         "lon": 12.48,
         "address": "2 Example Square, Rome",
         "city": "Roma",
         "country": "IT",
         "neighborhood": null
        },
        "amenities": [],
        "images": [],
        "thumbnail_url": null,
        "web_url": "https://comparator.example/guesthouse-example",
        "description": null,
        "features": [],
        "reviews_aggregate": null,
        "reviews_sample": null,
        "reviews_meta": null,
        "ota_coverage": [],
        "offers": [
         {
          "ota": "Seller D",
          "amount": 71.0,
          "amount_per_night": 71.0,
          "currency": "EUR",
          "breakfast_included": false,
          "refundable": false,
          "is_discounted": false,
          "discount_percentage": null,
          "deeplink_url": "https://seller-d.example/checkout/2",
          "rooms_left": null
         }
        ],
        "price": {
         "amount": 71.0,
         "amount_per_night": 71.0,
         "currency": "EUR",
         "breakfast_included": false,
         "refundable": false,
         "is_discounted": false,
         "discount_percentage": null,
         "ota": "Seller D"
        },
        "quoted_at": "2026-06-03T10:00:00Z",
        "valid_until": "2026-06-03T10:05:00Z",
        "validity_source": "b2a_freshness",
        "rate": {
         "property_id": "prop_65a0000000000000000000d2",
         "stay_dates": {
          "start_date": "2026-07-18",
          "end_date": "2026-07-19"
         },
         "occupancy": {
          "adults": 2,
          "children": 0,
          "total": 2
         }
        },
        "availability_status": "available"
       }
      ],
      "page": {
       "next_cursor": null,
       "total_estimate": 2
      },
      "metadata": {
       "price_as_of": "2026-06-03T10:00:00Z",
       "notes": []
      }
     },
     "isError": false,
     "resultType": "complete"
    }
   }
  },
  {
   "step": "rate_check",
   "request": {
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
     "name": "lodging_rate_check",
     "arguments": {
      "property_id": "prop_65a0000000000000000000d1",
      "stay": {
       "check_in": "2026-07-18",
       "check_out": "2026-07-19"
      },
      "occupancy": {
       "adults": 2
      }
     }
    }
   },
   "response": {
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
     "content": [
      {
       "type": "text",
       "text": "TEST — 4 live rate(s); nothing booked or stored."
      }
     ],
     "structuredContent": {
      "mock": true,
      "capability": "dev.ucp.lodging.booking",
      "property_id": "prop_65a0000000000000000000d1",
      "stay": {
       "check_in": "2026-07-18",
       "check_out": "2026-07-19"
      },
      "occupancy": {
       "adults": 2,
       "children": 0,
       "infants": 0
      },
      "available": true,
      "quoted_at": "2026-06-03T10:00:00Z",
      "valid_until": "2026-06-03T10:05:00Z",
      "validity_source": "b2a_freshness",
      "rates": [
       {
        "rate_id": "rate_mock_87a61b1e2ddd4832",
        "operator": "Seller A",
        "room_category": {
         "id": "any",
         "name": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "board": "room_only",
         "refundable": true
        },
        "stay": {
         "check_in": "2026-07-18",
         "check_out": "2026-07-19"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "infants": 0
        },
        "total": {
         "amount": 146.99,
         "currency": "EUR"
        },
        "per_night": {
         "amount": 146.99,
         "currency": "EUR"
        },
        "rooms_left": 2,
        "cancellation_policy": {
         "type": "dev.ucp.lodging.policy.cancellation",
         "refundability": "refundable",
         "free_cancellation_until": "2026-07-16T23:59:00+02:00",
         "description": {
          "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
         }
        }
       },
       {
        "rate_id": "rate_mock_bbe355ee7c77e2a9",
        "operator": "Seller B",
        "room_category": {
         "id": "any",
         "name": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "board": "room_only",
         "refundable": true
        },
        "stay": {
         "check_in": "2026-07-18",
         "check_out": "2026-07-19"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "infants": 0
        },
        "total": {
         "amount": 146.99,
         "currency": "EUR"
        },
        "per_night": {
         "amount": 146.99,
         "currency": "EUR"
        },
        "rooms_left": 2,
        "cancellation_policy": {
         "type": "dev.ucp.lodging.policy.cancellation",
         "refundability": "refundable",
         "free_cancellation_until": "2026-07-16T23:59:00+02:00",
         "description": {
          "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
         }
        }
       },
       {
        "rate_id": "rate_mock_298d97dab6ccb0bd",
        "operator": "Seller C",
        "room_category": {
         "id": "any",
         "name": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "board": "room_only",
         "refundable": true
        },
        "stay": {
         "check_in": "2026-07-18",
         "check_out": "2026-07-19"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "infants": 0
        },
        "total": {
         "amount": 147.93,
         "currency": "EUR"
        },
        "per_night": {
         "amount": 147.93,
         "currency": "EUR"
        },
        "rooms_left": 1,
        "cancellation_policy": {
         "type": "dev.ucp.lodging.policy.cancellation",
         "refundability": "refundable",
         "free_cancellation_until": "2026-07-16T21:59:00Z",
         "description": {
          "plain": "Free cancellation until 2026-07-16T21:59:00+00:00 (as reported by the operator)."
         }
        }
       },
       {
        "rate_id": "rate_mock_342cb608cc173707",
        "operator": "Seller D",
        "room_category": {
         "id": "any",
         "name": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "board": "room_only",
         "refundable": true
        },
        "stay": {
         "check_in": "2026-07-18",
         "check_out": "2026-07-19"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "infants": 0
        },
        "total": {
         "amount": 162.0,
         "currency": "EUR"
        },
        "per_night": {
         "amount": 162.0,
         "currency": "EUR"
        },
        "rooms_left": 1,
        "cancellation_policy": {
         "type": "dev.ucp.lodging.policy.cancellation",
         "refundability": "refundable",
         "free_cancellation_until": "2026-07-15T21:59:59Z",
         "description": {
          "plain": "Free cancellation until 2026-07-15T21:59:59+00:00 (as reported by the operator)."
         }
        }
       }
      ],
      "requested_rate": null
     },
     "isError": false,
     "resultType": "complete"
    }
   }
  },
  {
   "step": "create",
   "request": {
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
     "name": "create_booking_session",
     "arguments": {
      "meta": {
       "ucp-agent": {
        "profile": "https://platform.example/profiles/lodging-agent.json"
       }
      },
      "booking": {
       "property": {
        "id": "prop_65a0000000000000000000d1"
       },
       "stays": [
        {
         "accommodation_type": {
          "id": "any"
         },
         "rate_plan": {
          "id": "rate_mock_87a61b1e2ddd4832"
         },
         "occupancy": {
          "adults": 2,
          "total": 2
         },
         "stay_dates": {
          "start_date": "2026-07-18",
          "end_date": "2026-07-19"
         }
        }
       ]
      }
     }
    }
   },
   "response": {
    "jsonrpc": "2.0",
    "id": 3,
    "result": {
     "content": [
      {
       "type": "text",
       "text": "TEST — booking session is requires_escalation (hand the user continue_url to book and pay on Seller A's site); no payment taken, no booking made, nothing stored.\n{\"ucp\":{\"version\":\"2026-10-31\",\"capabilities\":{\"dev.ucp.lodging.booking\":[{\"version\":\"2026-10-31\"}],\"com.bluepillow.b2a.lodging.indirect_transaction\":[{\"version\":\"2026-10-31\",\"extends\":\"dev.ucp.lodging.booking\",\"spec\":\"https://b2a.bluepillow.com/ucp\",\"schema\":\"https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json\"}]},\"payment_handlers\":{}},\"id\":\"bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9\",\"status\":\"requires_escalation\",\"test\":true,\"property\":{\"id\":\"prop_65a0000000000000000000d1\",\"name\":\"Hotel Example\"},\"stays\":[{\"id\":\"stay_rate_mock_87a61b1e2ddd4832\",\"accommodation_type\":{\"id\":\"any\",\"title\":\"Room (category not resolved by the comparator)\"},\"rate_plan\":{\"id\":\"rate_mock_87a61b1e2ddd4832\",\"title\":\"Seller A — room only\",\"board\":\"room_only\"},\"occupancy\":{\"adults\":2,\"children\":0,\"total\":2},\"stay_dates\":{\"start_date\":\"2026-07-18\",\"end_date\":\"2026-07-19\"},\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}]}],\"currency\":\"EUR\",\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}],\"links\":[{\"type\":\"terms_of_service\",\"url\":\"https://b2a.bluepillow.com/legal/terms/\",\"title\":\"Blue Pillow B2A terms (the seller's own terms govern the booking)\"},{\"type\":\"privacy_policy\",\"url\":\"https://b2a.bluepillow.com/legal/privacy/\"},{\"type\":\"documentation\",\"url\":\"https://b2a.bluepillow.com/ucp\",\"title\":\"About this public UCP test: the indirect transaction\"}],\"messages\":[{\"type\":\"error\",\"code\":\"payment_at_seller\",\"severity\":\"requires_buyer_input\",\"content\":\"Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older).\"}],\"continue_url\":\"https://seller-a.example/checkout/1\",\"policies\":[{\"type\":\"dev.ucp.lodging.policy.cancellation\",\"refundability\":\"refundable\",\"free_cancellation_until\":\"2026-07-16T23:59:00+02:00\",\"description\":{\"plain\":\"Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator).\"}}],\"indirect_transaction\":{\"merchant_of_record\":{\"name\":\"Seller A\"},\"payment_location\":\"seller_checkout\",\"handoff_url\":\"https://seller-a.example/checkout/1\",\"business_role\":\"comparator\"}}"
      }
     ],
     "structuredContent": {
      "ucp": {
       "version": "2026-10-31",
       "capabilities": {
        "dev.ucp.lodging.booking": [
         {
          "version": "2026-10-31"
         }
        ],
        "com.bluepillow.b2a.lodging.indirect_transaction": [
         {
          "version": "2026-10-31",
          "extends": "dev.ucp.lodging.booking",
          "spec": "https://b2a.bluepillow.com/ucp",
          "schema": "https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json"
         }
        ]
       },
       "payment_handlers": {}
      },
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9",
      "status": "requires_escalation",
      "test": true,
      "property": {
       "id": "prop_65a0000000000000000000d1",
       "name": "Hotel Example"
      },
      "stays": [
       {
        "id": "stay_rate_mock_87a61b1e2ddd4832",
        "accommodation_type": {
         "id": "any",
         "title": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "id": "rate_mock_87a61b1e2ddd4832",
         "title": "Seller A — room only",
         "board": "room_only"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "total": 2
        },
        "stay_dates": {
         "start_date": "2026-07-18",
         "end_date": "2026-07-19"
        },
        "totals": [
         {
          "type": "subtotal",
          "amount": 14699,
          "display_text": "Price quoted by Seller A"
         },
         {
          "type": "total",
          "amount": 14699,
          "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
         }
        ]
       }
      ],
      "currency": "EUR",
      "totals": [
       {
        "type": "subtotal",
        "amount": 14699,
        "display_text": "Price quoted by Seller A"
       },
       {
        "type": "total",
        "amount": 14699,
        "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
       }
      ],
      "links": [
       {
        "type": "terms_of_service",
        "url": "https://b2a.bluepillow.com/legal/terms/",
        "title": "Blue Pillow B2A terms (the seller's own terms govern the booking)"
       },
       {
        "type": "privacy_policy",
        "url": "https://b2a.bluepillow.com/legal/privacy/"
       },
       {
        "type": "documentation",
        "url": "https://b2a.bluepillow.com/ucp",
        "title": "About this public UCP test: the indirect transaction"
       }
      ],
      "messages": [
       {
        "type": "error",
        "code": "payment_at_seller",
        "severity": "requires_buyer_input",
        "content": "Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older)."
       }
      ],
      "continue_url": "https://seller-a.example/checkout/1",
      "policies": [
       {
        "type": "dev.ucp.lodging.policy.cancellation",
        "refundability": "refundable",
        "free_cancellation_until": "2026-07-16T23:59:00+02:00",
        "description": {
         "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
        }
       }
      ],
      "indirect_transaction": {
       "merchant_of_record": {
        "name": "Seller A"
       },
       "payment_location": "seller_checkout",
       "handoff_url": "https://seller-a.example/checkout/1",
       "business_role": "comparator"
      }
     },
     "isError": false,
     "resultType": "complete"
    }
   }
  },
  {
   "step": "get",
   "request": {
    "jsonrpc": "2.0",
    "id": 4,
    "method": "tools/call",
    "params": {
     "name": "get_booking_session",
     "arguments": {
      "meta": {
       "ucp-agent": {
        "profile": "https://platform.example/profiles/lodging-agent.json"
       }
      },
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9"
     }
    }
   },
   "response": {
    "jsonrpc": "2.0",
    "id": 4,
    "result": {
     "content": [
      {
       "type": "text",
       "text": "TEST — booking session is requires_escalation (hand the user continue_url to book and pay on Seller A's site); no payment taken, no booking made, nothing stored.\n{\"ucp\":{\"version\":\"2026-10-31\",\"capabilities\":{\"dev.ucp.lodging.booking\":[{\"version\":\"2026-10-31\"}],\"com.bluepillow.b2a.lodging.indirect_transaction\":[{\"version\":\"2026-10-31\",\"extends\":\"dev.ucp.lodging.booking\",\"spec\":\"https://b2a.bluepillow.com/ucp\",\"schema\":\"https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json\"}]},\"payment_handlers\":{}},\"id\":\"bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9\",\"status\":\"requires_escalation\",\"test\":true,\"property\":{\"id\":\"prop_65a0000000000000000000d1\",\"name\":\"Hotel Example\"},\"stays\":[{\"id\":\"stay_rate_mock_87a61b1e2ddd4832\",\"accommodation_type\":{\"id\":\"any\",\"title\":\"Room (category not resolved by the comparator)\"},\"rate_plan\":{\"id\":\"rate_mock_87a61b1e2ddd4832\",\"title\":\"Seller A — room only\",\"board\":\"room_only\"},\"occupancy\":{\"adults\":2,\"children\":0,\"total\":2},\"stay_dates\":{\"start_date\":\"2026-07-18\",\"end_date\":\"2026-07-19\"},\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}]}],\"currency\":\"EUR\",\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}],\"links\":[{\"type\":\"terms_of_service\",\"url\":\"https://b2a.bluepillow.com/legal/terms/\",\"title\":\"Blue Pillow B2A terms (the seller's own terms govern the booking)\"},{\"type\":\"privacy_policy\",\"url\":\"https://b2a.bluepillow.com/legal/privacy/\"},{\"type\":\"documentation\",\"url\":\"https://b2a.bluepillow.com/ucp\",\"title\":\"About this public UCP test: the indirect transaction\"}],\"messages\":[{\"type\":\"error\",\"code\":\"payment_at_seller\",\"severity\":\"requires_buyer_input\",\"content\":\"Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older).\"}],\"continue_url\":\"https://seller-a.example/checkout/1\",\"policies\":[{\"type\":\"dev.ucp.lodging.policy.cancellation\",\"refundability\":\"refundable\",\"free_cancellation_until\":\"2026-07-16T23:59:00+02:00\",\"description\":{\"plain\":\"Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator).\"}}],\"indirect_transaction\":{\"merchant_of_record\":{\"name\":\"Seller A\"},\"payment_location\":\"seller_checkout\",\"handoff_url\":\"https://seller-a.example/checkout/1\",\"business_role\":\"comparator\"}}"
      }
     ],
     "structuredContent": {
      "ucp": {
       "version": "2026-10-31",
       "capabilities": {
        "dev.ucp.lodging.booking": [
         {
          "version": "2026-10-31"
         }
        ],
        "com.bluepillow.b2a.lodging.indirect_transaction": [
         {
          "version": "2026-10-31",
          "extends": "dev.ucp.lodging.booking",
          "spec": "https://b2a.bluepillow.com/ucp",
          "schema": "https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json"
         }
        ]
       },
       "payment_handlers": {}
      },
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9",
      "status": "requires_escalation",
      "test": true,
      "property": {
       "id": "prop_65a0000000000000000000d1",
       "name": "Hotel Example"
      },
      "stays": [
       {
        "id": "stay_rate_mock_87a61b1e2ddd4832",
        "accommodation_type": {
         "id": "any",
         "title": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "id": "rate_mock_87a61b1e2ddd4832",
         "title": "Seller A — room only",
         "board": "room_only"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "total": 2
        },
        "stay_dates": {
         "start_date": "2026-07-18",
         "end_date": "2026-07-19"
        },
        "totals": [
         {
          "type": "subtotal",
          "amount": 14699,
          "display_text": "Price quoted by Seller A"
         },
         {
          "type": "total",
          "amount": 14699,
          "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
         }
        ]
       }
      ],
      "currency": "EUR",
      "totals": [
       {
        "type": "subtotal",
        "amount": 14699,
        "display_text": "Price quoted by Seller A"
       },
       {
        "type": "total",
        "amount": 14699,
        "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
       }
      ],
      "links": [
       {
        "type": "terms_of_service",
        "url": "https://b2a.bluepillow.com/legal/terms/",
        "title": "Blue Pillow B2A terms (the seller's own terms govern the booking)"
       },
       {
        "type": "privacy_policy",
        "url": "https://b2a.bluepillow.com/legal/privacy/"
       },
       {
        "type": "documentation",
        "url": "https://b2a.bluepillow.com/ucp",
        "title": "About this public UCP test: the indirect transaction"
       }
      ],
      "messages": [
       {
        "type": "error",
        "code": "payment_at_seller",
        "severity": "requires_buyer_input",
        "content": "Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older)."
       }
      ],
      "continue_url": "https://seller-a.example/checkout/1",
      "policies": [
       {
        "type": "dev.ucp.lodging.policy.cancellation",
        "refundability": "refundable",
        "free_cancellation_until": "2026-07-16T23:59:00+02:00",
        "description": {
         "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
        }
       }
      ],
      "indirect_transaction": {
       "merchant_of_record": {
        "name": "Seller A"
       },
       "payment_location": "seller_checkout",
       "handoff_url": "https://seller-a.example/checkout/1",
       "business_role": "comparator"
      }
     },
     "isError": false,
     "resultType": "complete"
    }
   }
  },
  {
   "step": "complete",
   "request": {
    "jsonrpc": "2.0",
    "id": 5,
    "method": "tools/call",
    "params": {
     "name": "complete_booking_session",
     "arguments": {
      "meta": {
       "ucp-agent": {
        "profile": "https://platform.example/profiles/lodging-agent.json"
       },
       "idempotency-key": "550e8400-e29b-41d4-a716-446655440000"
      },
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9"
     }
    }
   },
   "response": {
    "jsonrpc": "2.0",
    "id": 5,
    "result": {
     "content": [
      {
       "type": "text",
       "text": "TEST — booking session is requires_escalation (hand the user continue_url to book and pay on Seller A's site); no payment taken, no booking made, nothing stored.\n{\"ucp\":{\"version\":\"2026-10-31\",\"capabilities\":{\"dev.ucp.lodging.booking\":[{\"version\":\"2026-10-31\"}],\"com.bluepillow.b2a.lodging.indirect_transaction\":[{\"version\":\"2026-10-31\",\"extends\":\"dev.ucp.lodging.booking\",\"spec\":\"https://b2a.bluepillow.com/ucp\",\"schema\":\"https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json\"}]},\"payment_handlers\":{}},\"id\":\"bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9\",\"status\":\"requires_escalation\",\"test\":true,\"property\":{\"id\":\"prop_65a0000000000000000000d1\",\"name\":\"Hotel Example\"},\"stays\":[{\"id\":\"stay_rate_mock_87a61b1e2ddd4832\",\"accommodation_type\":{\"id\":\"any\",\"title\":\"Room (category not resolved by the comparator)\"},\"rate_plan\":{\"id\":\"rate_mock_87a61b1e2ddd4832\",\"title\":\"Seller A — room only\",\"board\":\"room_only\"},\"occupancy\":{\"adults\":2,\"children\":0,\"total\":2},\"stay_dates\":{\"start_date\":\"2026-07-18\",\"end_date\":\"2026-07-19\"},\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}]}],\"currency\":\"EUR\",\"totals\":[{\"type\":\"subtotal\",\"amount\":14699,\"display_text\":\"Price quoted by Seller A\"},{\"type\":\"total\",\"amount\":14699,\"display_text\":\"Total quoted by Seller A; Seller A's site sets the final price\"}],\"links\":[{\"type\":\"terms_of_service\",\"url\":\"https://b2a.bluepillow.com/legal/terms/\",\"title\":\"Blue Pillow B2A terms (the seller's own terms govern the booking)\"},{\"type\":\"privacy_policy\",\"url\":\"https://b2a.bluepillow.com/legal/privacy/\"},{\"type\":\"documentation\",\"url\":\"https://b2a.bluepillow.com/ucp\",\"title\":\"About this public UCP test: the indirect transaction\"}],\"messages\":[{\"type\":\"error\",\"code\":\"payment_at_seller\",\"severity\":\"requires_buyer_input\",\"content\":\"Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older).\"},{\"type\":\"info\",\"code\":\"completion_at_seller\",\"content\":\"This business does not complete bookings and takes no payment: the buyer completes the booking and pays on the seller's own site, through continue_url.\"}],\"continue_url\":\"https://seller-a.example/checkout/1\",\"policies\":[{\"type\":\"dev.ucp.lodging.policy.cancellation\",\"refundability\":\"refundable\",\"free_cancellation_until\":\"2026-07-16T23:59:00+02:00\",\"description\":{\"plain\":\"Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator).\"}}],\"indirect_transaction\":{\"merchant_of_record\":{\"name\":\"Seller A\"},\"payment_location\":\"seller_checkout\",\"handoff_url\":\"https://seller-a.example/checkout/1\",\"business_role\":\"comparator\"}}"
      }
     ],
     "structuredContent": {
      "ucp": {
       "version": "2026-10-31",
       "capabilities": {
        "dev.ucp.lodging.booking": [
         {
          "version": "2026-10-31"
         }
        ],
        "com.bluepillow.b2a.lodging.indirect_transaction": [
         {
          "version": "2026-10-31",
          "extends": "dev.ucp.lodging.booking",
          "spec": "https://b2a.bluepillow.com/ucp",
          "schema": "https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json"
         }
        ]
       },
       "payment_handlers": {}
      },
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9",
      "status": "requires_escalation",
      "test": true,
      "property": {
       "id": "prop_65a0000000000000000000d1",
       "name": "Hotel Example"
      },
      "stays": [
       {
        "id": "stay_rate_mock_87a61b1e2ddd4832",
        "accommodation_type": {
         "id": "any",
         "title": "Room (category not resolved by the comparator)"
        },
        "rate_plan": {
         "id": "rate_mock_87a61b1e2ddd4832",
         "title": "Seller A — room only",
         "board": "room_only"
        },
        "occupancy": {
         "adults": 2,
         "children": 0,
         "total": 2
        },
        "stay_dates": {
         "start_date": "2026-07-18",
         "end_date": "2026-07-19"
        },
        "totals": [
         {
          "type": "subtotal",
          "amount": 14699,
          "display_text": "Price quoted by Seller A"
         },
         {
          "type": "total",
          "amount": 14699,
          "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
         }
        ]
       }
      ],
      "currency": "EUR",
      "totals": [
       {
        "type": "subtotal",
        "amount": 14699,
        "display_text": "Price quoted by Seller A"
       },
       {
        "type": "total",
        "amount": 14699,
        "display_text": "Total quoted by Seller A; Seller A's site sets the final price"
       }
      ],
      "links": [
       {
        "type": "terms_of_service",
        "url": "https://b2a.bluepillow.com/legal/terms/",
        "title": "Blue Pillow B2A terms (the seller's own terms govern the booking)"
       },
       {
        "type": "privacy_policy",
        "url": "https://b2a.bluepillow.com/legal/privacy/"
       },
       {
        "type": "documentation",
        "url": "https://b2a.bluepillow.com/ucp",
        "title": "About this public UCP test: the indirect transaction"
       }
      ],
      "messages": [
       {
        "type": "error",
        "code": "payment_at_seller",
        "severity": "requires_buyer_input",
        "content": "Payment and booking are completed on Seller A's own site; Seller A is the merchant of record. This business takes no payment and does not handle the booking, changes, refunds or cancellations. Open continue_url to book with Seller A, which sets the final price (the price here was quoted by the comparator's search and can be older)."
       },
       {
        "type": "info",
        "code": "completion_at_seller",
        "content": "This business does not complete bookings and takes no payment: the buyer completes the booking and pays on the seller's own site, through continue_url."
       }
      ],
      "continue_url": "https://seller-a.example/checkout/1",
      "policies": [
       {
        "type": "dev.ucp.lodging.policy.cancellation",
        "refundability": "refundable",
        "free_cancellation_until": "2026-07-16T23:59:00+02:00",
        "description": {
         "plain": "Free cancellation until 2026-07-16T23:59:00+02:00 (as reported by the operator)."
        }
       }
      ],
      "indirect_transaction": {
       "merchant_of_record": {
        "name": "Seller A"
       },
       "payment_location": "seller_checkout",
       "handoff_url": "https://seller-a.example/checkout/1",
       "business_role": "comparator"
      }
     },
     "isError": false,
     "resultType": "complete"
    }
   }
  }
 ]
}
