UCP indirect transactions — public test
A public, working test of a feature that is not yet part of the Universal Commerce Protocol: indirect transactions, where the business exposing a lodging offer over UCP is a comparator, not the seller, and hands the buyer off to the seller’s own checkout to pay.
In short
What an indirect transaction is
In UCP the business that serves a checkout is the seller and the merchant of record: it takes the payment and owns the order. An indirect transaction — our term, not a UCP one — is the case where the business that exposes the offer over UCP is not the seller and not the merchant of record. The UCP session verifies the offer and the rate, and then ends by handing the buyer off to the seller’s own checkout (here, an online travel agency), which takes the payment, confirms the booking and manages it from then on.
Why it matters
A large share of travel demand reaches sellers through intermediaries that never sell anything themselves: comparators, metasearch engines, affiliate and referral publishers, travel assistants. They know the offers and can verify a live price, but they are not the merchant of record and should not pretend to be. Without a way to say so, such a business either stays out of UCP or has to model a checkout it does not own. Indirect transactions let it take part honestly: the agent gets a structured, verified offer and a clear handoff, and the seller keeps the sale, the payment and the customer relationship.
What Blue Pillow does — and does not do
Blue Pillow is an accommodation comparator: it lists stays with live prices from many booking sites, verifies the rate for the buyer’s dates and guests, and hands the buyer off to the chosen seller. In this test Blue Pillow:
- does not take or process any payment, and declares no payment handler;
- is not the merchant of record — offers that Blue Pillow sells or checks out itself are excluded from the test: every rate hands the buyer off to a third-party seller’s own site;
- does not make, hold or confirm bookings;
- does not handle changes, cancellations, refunds or complaints — the seller does, under its own terms.
How it maps onto UCP
The model: the e-commerce checkout, in its lodging form
We took the UCP e-commerce checkout as the model. The session follows the state machine of
dev.ucp.shopping.checkout
(incomplete, requires_escalation, ready_for_complete,
complete_in_progress, completed, canceled) in its
lodging form,
dev.ucp.lodging.booking
of the service dev.ucp.lodging. The lodging capability is a
draft: it was merged into the UCP main branch on 24 September 2026 and is
not in any UCP release (the latest release is 2026-08-25). It reuses the checkout’s
states, message severities and continue_url rules, and it keeps the
checkout’s premise that the business is the merchant of record. That premise is the one
this test departs from.
The handoff
The spec already has the mechanism we need: when a session requires information that
cannot be provided through the API, the business returns
status: "requires_escalation" with a continue_url, and the
platform hands the buyer off to that URL. The business must also include at least one
message with severity requires_buyer_input or
requires_buyer_review. For an indirect transaction the information that cannot
go through the API is the whole purchase: the guest details and the payment, which only the
seller collects. So our sessions:
- end in
requires_escalation; -
carry a
continue_url(absolute HTTPS) that takes the buyer to the seller’s checkout for that offer — the comparator’s own outbound link, which redirects to the seller; -
carry an error message with the freeform code
payment_at_sellerand severityrequires_buyer_input, whose text names the seller that takes the payment; -
carry the object
indirect_transaction, defined by our extensioncom.bluepillow.b2a.lodging.indirect_transaction, which says it in machine-readable form.
Where the discussion is in UCP
“Indirect transaction” is a term we use for this test; it is not in the spec. The closest public pieces, all open at the time of writing:
- Buyer handoff via
continue_url— in the spec today, but designed as a handoff to the business’s own UI (lodging booking, “Continue URL”). - Aggregators — a proposal for a business that lists offers of several merchants, each with its own checkout and acting as merchant of record: issue #810 and pull request #811. It is the closest case to ours, but it assumes the seller runs its own UCP checkout.
- Who the Business is — the glossary defines the Business as the merchant of record; Appendix C of RFC #937 proposes to define it as the party that serves UCP endpoints, “usually” the merchant of record. That change would make a non-merchant business legitimate.
The flow, step by step
- Profile. The platform reads the profile, shared outside public
discovery (why) at
https://b2a.bluepillow.com/ucp/profile.json: servicedev.ucp.lodgingover MCP athttps://ucp.mcp.b2a.bluepillow.com/mcp, capabilitydev.ucp.lodging.booking, extensioncom.bluepillow.b2a.lodging.indirect_transaction,payment_handlers: {}. - Key. It calls the MCP tool
get_anonymous_key(no authentication, free, no sign-up) and sends the key asAuthorization: Bearer <key>on every other call. This is ours, not UCP: a UCP platform does not know it has to do this. - Search and rate check. Upper funnel, outside the spec:
resolve_destinationandsearch_staysfind stays with live prices;lodging_rate_checkre-validates the chosen property for the dates and guests and returns the bookable rates with their ids, and the canonical property id (prop_…), also when given a bluepillow.com link. Only offers that hand the buyer off to a third-party seller’s own site are rates. - Session.
create_booking_session, in the shape of the UCP lodging MCP binding (meta["ucp-agent"], abookingobject with property, stays, rate plan, occupancy and stay dates). The rate is re-validated live. - Handoff. The session answers
requires_escalation, withcontinue_urlset to the link to the seller’s checkout, thepayment_at_sellermessage and theindirect_transactionobject. If the rate is gone, or the offer is not a third-party seller’s (no link to the seller’s own site, or sold or checked out by Blue Pillow itself), the session isincompletewith arecoverablemessage (rate_unavailable,handoff_unavailable), and itscontinue_urlis the property page on the comparator, never a seller. - Payment at the seller. The platform sends the buyer to
continue_url. The buyer books and pays on the seller’s site. Nothing comes back to the UCP session: it never reachescompleted.complete_booking_sessionanswers the same handoff;cancel_booking_sessionanswerscanceled, with nothing to cancel.
The profile, and why it is not in public discovery
UCP has a clear rule for implementations like this one. The overview, under “Pre-release Versions”, says that pre-release implementations “MUST NOT be surfaced through public discovery”, and that platforms and businesses may coordinate on them outside it. The lodging capability is a draft, not in a dated release, so we follow the rule: the profile is shared here, for coordination with anyone who wants to try the test, and not at the public discovery path.
-
Profile:
https://b2a.bluepillow.com/ucp/profile.json -
Public discovery,
/.well-known/ucp: not published while the capability is pre-release. We plan to publish the profile there once lodging is in a dated UCP release.
A platform that wants to try it loads the profile from that URL instead of discovering it. Like any pre-release coordination, it carries no stability or compatibility guarantee.
The profile is served as application/json, readable cross-origin. It validates against the business
profile schema (profile.json#/$defs/business_schema) of UCP at commit
58c7ab9. The member com.bluepillow.b2a.notice
sits outside ucp, where the profile allows extra members; platforms ignore it.
{
"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"
}
}
The version 2026-10-31 is the date of the UCP commit we built against
(58c7ab92dcf80b3b1fc756d577b0552ec1cd503a, 31 October
2026). The spec and schema URLs under
https://ucp.dev/draft/ were the draft at the time of writing and move with
every change to the draft. UCP reserves the profile version for dated
releases; this snapshot date is only meaningful between parties coordinating outside
public discovery.
The extension
com.bluepillow.b2a.lodging.indirect_transaction extends dev.ucp.lodging.booking. Its schema is
published at https://b2a.bluepillow.com/ucp/schemas/indirect_transaction.json (JSON Schema
2020-12, in the style of the UCP schemas: a $defs entry named after the
parent capability composes the base booking with allOf). The name passes UCP’s
authority binding: the schema host b2a.bluepillow.com, reversed, is
com.bluepillow.b2a. A platform that does not know the extension drops it in
capability negotiation, with no other effect.
It adds one response-only object to the booking session:
| Field | Type | Meaning |
|---|---|---|
business_role | "comparator" | The business serving the session is a comparator / metasearch, not the seller. |
merchant_of_record.name | string | The seller that takes the payment and owns the booking (for example an online travel agency). |
payment_location | "seller_checkout" | The buyer pays on the seller’s own checkout, after the handoff; nothing is paid in the session. |
handoff_url | HTTPS URI | The link that takes the buyer to the seller’s checkout for this offer (here the comparator’s outbound link, which redirects to the seller); equal to continue_url. |
{
"indirect_transaction": {
"merchant_of_record": {
"name": "Example Travel"
},
"payment_location": "seller_checkout",
"handoff_url": "https://www.bluepillow.com/…",
"business_role": "comparator"
}
} The indirect_transaction definition from the schema
{
"type": "object",
"title": "Indirect Transaction",
"description": "Declares that this booking session is an indirect transaction: the business serving the session is not the seller, does not take payment and does not hold the booking. The buyer completes the booking and pays on the seller's own checkout, reached through `handoff_url`.",
"required": [
"business_role",
"merchant_of_record",
"payment_location",
"handoff_url"
],
"properties": {
"business_role": {
"type": "string",
"enum": [
"comparator"
],
"description": "Role of the business serving the UCP session. `comparator`: a comparator / metasearch that lists offers of third-party sellers and hands the buyer off to the seller. It is not the merchant of record."
},
"merchant_of_record": {
"$ref": "#/$defs/merchant_of_record"
},
"payment_location": {
"type": "string",
"enum": [
"seller_checkout"
],
"description": "Where the buyer pays. `seller_checkout`: on the seller's own website or app, after the handoff. No payment is collected in the UCP session and no payment handler is involved."
},
"handoff_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"description": "Absolute HTTPS URL that takes the buyer to the seller's checkout for this offer; it may be the business's own outbound link that redirects to the seller. Equal to the session's `continue_url`."
}
}
} Example: a booking session
A create_booking_session call and the structuredContent of its
answer, abridged. Ids, names and the seller link are elided or fictitious.
The property id comes from search_stays; the rate plan id is a
rate_id returned by lodging_rate_check. The comparator does not
resolve room categories, so accommodation_type.id is "any". A
rate_id is bound to the currency it was quoted in: for prices in another
currency, pass currency to lodging_rate_check and the same code
as booking.context.currency.
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $KEY" \
-d '{"jsonrpc":"2.0","id":6,"method":"tools/call",
"params":{"name":"create_booking_session","arguments":{
"meta":{"ucp-agent":{"profile":"https://platform.example/profiles/agent.json"}},
"booking":{
"property":{"id":"prop_…"},
"stays":[{
"accommodation_type":{"id":"any"},
"rate_plan":{"id":"rate_mock_…"},
"occupancy":{"adults":2,"total":2},
"stay_dates":{"start_date":"2027-03-12","end_date":"2027-03-14"}}]}}}}' {
"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_…",
"status": "requires_escalation",
"test": true,
"property": {
"id": "prop_…",
"name": "…"
},
"stays": [
{
"id": "stay_rate_mock_…",
"accommodation_type": {
"id": "any",
"title": "Room (category not resolved by the comparator)"
},
"rate_plan": {
"id": "rate_mock_…",
"title": "Example Travel — breakfast included",
"board": "breakfast_included"
},
"occupancy": {
"adults": 2,
"total": 2
},
"stay_dates": {
"start_date": "2027-03-12",
"end_date": "2027-03-14"
},
"totals": [
{
"type": "subtotal",
"amount": 24000,
"display_text": "Price quoted by Example Travel"
},
{
"type": "total",
"amount": 24000,
"display_text": "Total quoted by Example Travel; Example Travel’s site sets the final price"
}
]
}
],
"currency": "EUR",
"totals": [
{
"type": "subtotal",
"amount": 24000,
"display_text": "Price quoted by Example Travel"
},
{
"type": "total",
"amount": 24000,
"display_text": "Total quoted by Example Travel; Example Travel’s site sets the final price"
}
],
"links": [
{
"type": "terms_of_service",
"url": "https://b2a.bluepillow.com/legal/terms/",
"title": "…"
},
{
"type": "privacy_policy",
"url": "https://b2a.bluepillow.com/legal/privacy/"
},
{
"type": "documentation",
"url": "https://b2a.bluepillow.com/ucp",
"title": "…"
}
],
"messages": [
{
"type": "error",
"code": "payment_at_seller",
"severity": "requires_buyer_input",
"content": "Payment and booking are completed on Example Travel's own site; Example Travel 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 Example Travel, which sets the final price (the price here was quoted by the comparator's search and can be older)."
}
],
"continue_url": "https://www.bluepillow.com/…",
"policies": [
"… cancellation policy of the offer, when known"
],
"indirect_transaction": {
"merchant_of_record": {
"name": "Example Travel"
},
"payment_location": "seller_checkout",
"handoff_url": "https://www.bluepillow.com/…",
"business_role": "comparator"
}
}
Amounts are in minor units, as quoted by the seller through the comparator’s search; the
seller’s site sets the final price. test: true is a member of ours, outside
the UCP schema, which allows extra members. The cancellation policy appears only when the
offer states one.
Tools on the endpoint
| Tool | What it is |
|---|---|
| The MCP binding of UCP lodging (shape of the spec) | |
create_booking_session | Opens a booking session for a property and a stay (rate plan, occupancy, stay dates). Re-validates the rate live and answers requires_escalation with the handoff to the seller, or incomplete when the rate is gone or has no seller link. |
get_booking_session | Returns a session by id, re-validated live (the id is self-contained: nothing is stored). |
update_booking_session | Replaces the booking and re-validates it, like create. The id encodes the booking, so it returns a new id (message session_id_changed). |
complete_booking_session | Never completes: it answers requires_escalation with the payment_at_seller and completion_at_seller messages, because the buyer books and pays on the seller’s site. Payment data sent here is ignored. |
cancel_booking_session | Answers canceled with the message nothing_to_cancel: nothing was booked or stored here. |
| Ours, not in the spec | |
lodging_rate_check | Not in the spec (UCP has no upper-funnel tool for lodging): re-validates live price and availability of a property for dates and occupancy, and returns each bookable rate with a stable rate_id — the id that booking.stays[].rate_plan.id takes. |
lodging_checkout_create | Our earlier, non-standard session tool, kept for existing clients; it hands off to the seller too. Prefer create_booking_session. |
get_anonymous_key | Issues the free anonymous key. The only tool that needs no authentication. |
resolve_destination, discover_destinations_near, search_stays, get_property_details, check_property_availability | The comparator’s search catalog: find a destination, list stays with live per-operator prices, read a property, check live availability. |
Declared deviations from the spec
Measured on the implementation and stated here, so that nobody has to discover them on the first call:
- The Business is not the merchant of record, against the
glossary and the premise of the
checkout and lodging capabilities — this is the point of the test. And
continue_urlleads to a third party (the seller, through Blue Pillow’s outbound redirect), not to the business’s own UI. - The session never reaches
completed. Noconfirmation, no payment handler.complete_booking_sessiondoes not complete: it answersrequires_escalationwith thepayment_at_sellerandcompletion_at_sellermessages.cancel_booking_sessionanswerscanceledwithnothing_to_cancel. Nothing is stored: guest, booker and payment data are accepted by the schema and discarded, never echoed. - No negotiation. The platform profile in
meta["ucp-agent"].profilemust be an HTTPS URL but is never fetched; the response always declares our capabilities. An invalid profile URL and a refused key (401, 429) come back as a tool result withisError(invalid_profile_url,request_refused) rather than as the JSON-RPC errors -32001 / -32000. - Ids and inputs. The session id encodes the booking (property, dates,
occupancy, rate; no personal data), so
update_booking_sessionreturns a new id, with the messagesession_id_changed. One stay per session.accommodation_type.idis always"any": the comparator does not resolve room categories. Therate_plan.idvalues (rate_mock_…) come only from a tool outside UCP,lodging_rate_check, and so does the key (get_anonymous_key, sent asAuthorization: Bearer, or as anapi_keyargument). - Prices.
totalshassubtotalequal tototal, with no tax breakdown. The amount is the one quoted through the comparator; the seller sets the final price on its own site. Anincompletesession hasstays: []and zero totals. - Links and messages.
linkscarries Blue Pillow’s terms and privacy policy and a non-standard type,documentation, pointing here. No standard severity or code says “the seller takes the payment”:requires_buyer_inputis the closest severity andpayment_at_selleris a freeform code, which the spec permits. - Smaller gaps. Child ages are accepted but do not change the price;
infantsin occupancy is our addition; noexpires_atand no signatures;idempotency-keyis not required on complete and cancel. Next to the binding’s tools the endpoint also exposes our own (lodging_rate_check, the earlierlodging_checkout_create, the search catalog): the spec has no upper-funnel tools for lodging. - Version and discovery.
2026-10-31is the date of the commit we pinned, not a dated UCP release, because the lodging capability exists only as a draft. For the same reason the profile is shared outside public discovery, as the spec asks for pre-release implementations (above).
How to try it
Any MCP client works: point it at https://ucp.mcp.b2a.bluepillow.com/mcp (Streamable HTTP). With plain
curl, every request is a JSON-RPC POST; the server is stateless, so no
initialize is needed for a single call, and it answers in Server-Sent Events
format — the JSON-RPC message is on the data: line.
A guided, interactive version of the flow is on the demo page.
1. Read the profile
curl -s https://b2a.bluepillow.com/ucp/profile.json 2. Get a free anonymous key
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"get_anonymous_key","arguments":{}}}' 3. List the tools
export KEY='…' # the "key" field of the previous result
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $KEY" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' 4. Find a stay
# a place name → destination id
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $KEY" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call",
"params":{"name":"resolve_destination","arguments":{"name":"Florence"}}}'
# stays with live prices (dates in the future)
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $KEY" \
-d '{"jsonrpc":"2.0","id":4,"method":"tools/call",
"params":{"name":"search_stays","arguments":{
"location":{"type":"destination_id","value":"dest_…"},
"dates":{"check_in":"2027-03-12","check_out":"2027-03-14"},
"guests":{"adults":2}}}}' 5. Check the rate
curl -s https://ucp.mcp.b2a.bluepillow.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $KEY" \
-d '{"jsonrpc":"2.0","id":5,"method":"tools/call",
"params":{"name":"lodging_rate_check","arguments":{
"property_id":"prop_…",
"stay":{"check_in":"2027-03-12","check_out":"2027-03-14"},
"occupancy":{"adults":2}}}}' 6. Open a booking session
Use the ids returned by the rate check, as in the example above.
Then open the continue_url in a browser: it is the seller’s page, where a real
booking and a real payment would happen — only if you choose to go ahead there.
Limits
- A test, not a service: no availability commitment, and it can change or stop at any time.
- Prices and availability are live and can change between the session and the seller’s page; the seller’s page is authoritative.
- The usual rate limits of the anonymous key apply.
- Bookings, payments, changes, cancellations, refunds and complaints are between the buyer and the seller. Blue Pillow cannot see or change them.
Contact
Feedback from people working on UCP, and from anyone who tries the endpoint, is welcome. See Support or write to info@bluepillow.com.