create_checkout
Create a secure checkout for a chosen hotel room and return a getmyhotels.com URL where the guest completes payment. This does NOT charge the card — the guest pays on the hosted page. Confirm the hotel, room, dates, and price with the user before calling. Call get_checkout_quote first to confirm ...
This record as markdown: /tools/com-getmyhotels-getmyhotels/create-checkout.md
What create_checkout does on GetMyHotels
AI agents use create_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'). Alternative to supplierCode + supplierHotelId. |
price | number | Yes | Total to charge 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 (YYYY-MM-DD). |
checkOut | string | Yes | Check-out date, ISO 8601 (YYYY-MM-DD). |
children | integer | — | Children (default 0). |
currency | string | Yes | ISO 4217 currency of `price`/`totalPrice` (e.g. 'USD'). |
roomName | string | Yes | Room name (from the chosen room). |
hotelName | string | Yes | Hotel name (from `search_hotels`). |
childrenAges | array | — | Age of each child. |
supplierCode | string | — | Supplier code (from `search_hotels`). Required if `ref` is omitted. |
Parameters from the server's own tool schema.
Why create_checkout is rated Critical
Initiates a financial checkout flow that leads directly to payment collection.
From the tool's definition Create a secure checkout...guest completes payment
Risk signalsHigh parameter count (14 properties)
Attacks that exploit this kind of access
The rule that runs create_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_checkout, this is the rule to start with:
Any call to create_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_checkout call is checked against it from then on.
Questions about create_checkout
Create a secure checkout for a chosen hotel room and return a getmyhotels.com URL where the guest completes payment. This does NOT charge the card — the guest pays on the hosted page. Confirm the hotel, room, dates, and price with the user before calling. Call get_checkout_quote first to confirm the live price. 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_checkout accepts 12 parameters: ref, price, rooms, adults, checkIn, checkOut, children, currency, roomName, hotelName, childrenAges, supplierCode. Required: price, checkIn, checkOut, currency, roomName, hotelName. 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_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_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_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_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_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