Blue Pillow Hotels & Stays

UCP indirect transactions — demo

The UCP lodging flow of our public test, step by step: what a platform sends, what the endpoint answers, and how the session ends by handing the buyer off to the seller.

Last updated: 2026-11-19

How to read this page

Step 1Discovery: the profile

The platform reads the business profile. It declares the dev.ucp.lodging service on the MCP endpoint, the dev.ucp.lodging.booking capability, our extension com.bluepillow.b2a.lodging.indirect_transaction, and no payment handler (payment_handlers: {}): nothing is ever paid here. The lodging capability is a UCP draft, so the profile is shared at its own address and kept out of public discovery.

GET https://b2a.bluepillow.com/ucp/profile.json

The profile
{
  "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"
  }
}

Step 2Search

UCP has no search tool for lodging, so the endpoint also exposes the comparator’s own catalog. search_stays lists stays with live per-seller prices for the dates; each property carries when it was quoted (quoted_at, valid_until), and an offer carries a cancellation_policy only when free cancellation is certain.

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 (shortened)

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "Found 2 properties (total_estimate=2) …"
      }
    ],
    "structuredContent": {
      "results": [
        {
          "id": "prop_65a0000000000000000000d1",
          "name": "Hotel Example",
          "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
            }
          },
          "web_url": "https://comparator.example/hotel-example",
          "offers": [
            {
              "ota": "Seller A",
              "amount": 146.99,
              "currency": "EUR",
              "deeplink_url": "https://seller-a.example/checkout/1",
              "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,
              "currency": "EUR",
              "deeplink_url": "https://seller-b.example/checkout/1",
              "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)."
                }
              }
            },
            "…"
          ]
        },
        {
          "id": "prop_65a0000000000000000000d2",
          "name": "Guesthouse Example",
          "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
            }
          },
          "web_url": "https://comparator.example/guesthouse-example",
          "offers": [
            {
              "ota": "Seller D",
              "amount": 71.0,
              "currency": "EUR",
              "deeplink_url": "https://seller-d.example/checkout/2"
            }
          ]
        }
      ],
      "…": "other fields omitted"
    },
    "isError": false,
    "resultType": "complete"
  }
}

Step 3Rate check

lodging_rate_check — ours, not in the spec — re-validates the price live for the property, dates and occupancy and returns each bookable rate with a stable rate_id: the id a UCP booking takes as stays[].rate_plan.id. The agent picks a rate.

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 (shortened)

{
  "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)."
            }
          }
        },
        "…"
      ],
      "requested_rate": null
    },
    "isError": false,
    "resultType": "complete"
  }
}

Step 4Booking session: create_booking_session

A call written on the UCP spec: meta["ucp-agent"].profile and a booking with the property and one stay. The platform profile is not fetched in this test. The rate is re-validated live and the session answers:

The session id is self-contained (property, dates, occupancy and rate; no personal data): nothing is stored.

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. …"
      }
    ],
    "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 5get_booking_session

Reading the session rebuilds it from its id and re-validates the rate live. Here the answer is the same session as in step 4; if the rate had gone, it would be incomplete with a recoverable message.

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 (shortened)

{
  "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. …"
      }
    ],
    "structuredContent": {
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9",
      "status": "requires_escalation",
      "continue_url": "https://seller-a.example/checkout/1",
      "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)."
        }
      ],
      "…": "the rest as in the session above"
    },
    "isError": false,
    "resultType": "complete"
  }
}

Step 6complete_booking_session — never completes

A platform that tries to complete gets the session back, still in requires_escalation, with one more message, completion_at_seller: this business takes no payment and books nothing. The session never reaches completed.

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 (shortened)

{
  "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. …"
      }
    ],
    "structuredContent": {
      "id": "bks_eyJvIjpbMiwwLDBdLCJwIjoicHJvcF82NWEwMDAwMDAwMDAwMDAwMDAwMDAwZDEiLCJyIjoicmF0ZV9tb2NrXzg3YTYxYjFlMmRkZDQ4MzIiLCJzIjpbIjIwMjYtMDctMTgiLCIyMDI2LTA3LTE5Il0sInYiOjF9",
      "status": "requires_escalation",
      "continue_url": "https://seller-a.example/checkout/1",
      "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."
        }
      ],
      "…": "the rest as in the session above"
    },
    "isError": false,
    "resultType": "complete"
  }
}

Step 7The handoff to the seller

The platform hands the buyer the continue_url. From there on everything happens on the seller’s site: the final price, the guest details, the payment, the confirmation, and later any change, cancellation or refund. Blue Pillow is not involved and cannot see or change the booking.

FieldValue in this demo
statusrequires_escalation
continue_urlhttps://seller-a.example/checkout/1
merchant_of_record.nameSeller A
payment_locationseller_checkout
business_rolecomparator
total14699 (EUR, minor units)
rate_planSeller A — room only

In this demo the link is fictitious. In the live test it is Blue Pillow’s redirect to the seller’s checkout for the chosen offer.

Offer terms

When the price was quoted and how long it is reasonably valid, and the cancellation policy — present only when free cancellation is certain, never shown as “unknown”.

TermValue in this demo
quoted_at"2026-06-03T10:00:00Z"
valid_until"2026-06-03T10:05:00Z"
validity_source"b2a_freshness"
policies[0] (cancellation){"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)."}}

Try it live

The endpoint is open: get a free anonymous key, find a stay, check a rate and open a booking session with live data. The commands are on the UCP test page, together with the deviations from the spec we declare. Opening a live continue_url takes you to the seller’s real page — a booking and a payment happen there only if you choose to go ahead.