create_one_click_checkout
Create a checkout for the signed-in user with a saved card pre-selected, and return a getmyhotels.com URL where they confirm + pay in one click. Does NOT charge the card — the user confirms on the hosted page. Get the savedPaymentMethodPublicId from list_payment_methods. Confirm the hotel, room, ...
This record as markdown: /tools/com-getmyhotels-getmyhotels/create-one-click-checkout.md
What create_one_click_checkout does on GetMyHotels
AI agents use create_one_click_checkout to commit financial operations through GetMyHotels, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | — | Hotel `ref` from `search_hotels` (e.g. 'TBO:1402689'). |
price | number | Yes | Total for the WHOLE stay (use `grandTotal` from `get_checkout_quote` verbatim — do not multiply it by the number of nights). |
rooms | integer | — | Rooms (default 1). |
adults | integer | — | Adults (default 2). |
checkIn | string | Yes | Check-in date, ISO 8601. |
checkOut | string | Yes | Check-out date, ISO 8601. |
children | integer | — | Children (default 0). |
currency | string | Yes | ISO 4217 currency (e.g. 'USD'). |
roomName | string | Yes | Room name. |
hotelName | string | Yes | Hotel name. |
supplierCode | string | — | Supplier code (if `ref` omitted). |
supplierRoomId | string | Yes | Bookable room/rate id from `search_hotels`. |
Parameters from the server's own tool schema.
Why create_one_click_checkout is rated Critical
Initiates a hotel payment checkout flow committing financial obligations for the user.
From the tool's definition Create a checkout... confirm + pay... saved card pre-selected
Risk signalsHigh parameter count (14 properties)
Attacks that exploit this kind of access
The rule that runs create_one_click_checkout safely
PolicyLayer is an MCP gateway: it sits between your AI agents and GetMyHotels, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For create_one_click_checkout, this is the rule to start with:
Any call to create_one_click_checkout is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect GetMyHotels, apply this rule, and every create_one_click_checkout call is checked against it from then on.
Questions about create_one_click_checkout
Create a checkout for the signed-in user with a saved card pre-selected, and return a getmyhotels.com URL where they confirm + pay in one click. Does NOT charge the card — the user confirms on the hosted page. Get the savedPaymentMethodPublicId from list_payment_methods. Confirm the hotel, room, dates, and price with the user first. It is categorised as a Financial tool in the GetMyHotels MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
create_one_click_checkout accepts 12 parameters: ref, price, rooms, adults, checkIn, checkOut, children, currency, roomName, hotelName, supplierCode, supplierRoomId. Required: price, checkIn, checkOut, currency, roomName, hotelName, supplierRoomId. The full parameter table on this page comes from the server's own tool schema.
Register the GetMyHotels MCP server in PolicyLayer and add a rule for create_one_click_checkout: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches GetMyHotels. Nothing to install.
create_one_click_checkout is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the create_one_click_checkout rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for create_one_click_checkout. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
create_one_click_checkout is provided by the GetMyHotels MCP server (https://mcp.getmyhotels.com). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on GetMyHotels, and thousands of servers like it.
Across the catalogue