All variables in the sample requests below must be replaced with the correct values:
|
Variable |
Description |
|
{KEY} |
The API key required for service access provided by your Tripadvisor Account Manager |
https://api.tripadvisor.com/api/partner/3.0/synmeta-pricing?hotel_ids=89600&key={KEY}&user_agent=Mozilla%2F5.0+%28iPhone%3B+CPU+iPhone+OS+12_2+like+Mac+OS+X%29+AppleWebKit%2F605.1.15+%28KHTML%2C+like+Gecko%29+GSA%2F71.1.241847734+Mobile%2F15E148+Safari%2F605.1&ip_address=123.100.100.100&check_in=2021-06-25&check_out=2021-06-27
{ "success": { "requestId": "827c5a26-0697-4e86-b919-ad9c1c28d0f2", "results": [ { "hotelId": "89600",
"strikeThroughDisplayPrice": "$180", "availability": "available", "offers": [ { "availability": "available", "displayName": "Tripadvisor", "displayPrice": "$178", "price": 178, "logo": "https://static.tacdn.com/img2/brand_refresh/Tripadvisor_logoset_solid_green.svg", "clickUrl": "https://www.tripadvisor.com/Hotel_Review-s1..." } ] } ], "isComplete": true }, "errors": [], "warnings": [], "completedAt": "2021-05-03T21:47:07.472Z" }
https://api.tripadvisor.com/api/partner/3.0/synmeta-pricing?hotel_ids=89600&key={KEY}&user_agent=Mozilla%2F5.0+%28iPhone%3B+CPU+iPhone+OS+12_2+like+Mac+OS+X%29+AppleWebKit%2F605.1.15+%28KHTML%2C+like+Gecko%29+GSA%2F71.1.241847734+Mobile%2F15E148+Safari%2F605.1&ip_address=123.100.100.100&check_out=2021-06-27
{ "success": null, "errors": [
{ "code": 400, "messageKey": "Invalid check in date", "message": "Invalid check in date, should not be empty!", "payload": {} }
], "warnings": [], "completedAt": "2021-05-03T21:47:07.472Z" }