Call it
curl https://api.peume.com/v1/call/request-price-match \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product": "hotel",
"trip_item_token": "your trip item token",
"reference": "your reference"
}
}'const res = await fetch("https://api.peume.com/v1/call/request-price-match", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"product": "hotel",
"trip_item_token": "your trip item token",
"reference": "your reference"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/request-price-match",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"product": "hotel",
"trip_item_token": "your trip item token",
"reference": "your reference"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: request-price-match.
Parameters
productRequiredstringThe kind of product the request is about. Only `hotel` exists today.
hotel
objectivestringWhat is asked for. `price_parity` (the default, and the only value today) asks for the reference price, nothing lower.
price_parity
trip_item_tokenRequiredstringThe hotel offer the traveller compared: `hotels[].offers[].trip_item_token` from `/hotels/search`. It names the hotel, the dates, the party and the rate. An offer is kept for 75 minutes after the search that returned it.
referenceRequiredobjectwait_secondsintegerHow long this call waits for the review before answering, 0 to 20 seconds (default 20). A call that waited without a result answers `pending`.
