Trip.com API guide
trip.com
Use Trip.com to check one-way fares and nightly hotel rates, browse tickets and experiences, and look up train times and transfers between trains.
Actions and inputs
trip flightFind one-way flights with displayed fares, times, and stops.
Inputs Origin and destination IATA codes, departure date
trip hotel-searchList hotels for a stay with guest scores and displayed nightly rates.
Inputs City ID, check-in and check-out dates
trip attractionFind tickets, tours, and experiences with ratings and displayed prices.
Inputs Destination or attraction keyword
trip trainRead a route timetable with stations, journey times, and changes.
Inputs Origin city, destination city, country slug
Hotel reservations
- Create
Reserve a room for your stay after reviewing the total, payment timing, and cancellation policy.
Inputs Hotel, room and rate, stay dates, occupancy, guest details, explicit confirmation
- Read
View your reservation status, check-in instructions, and payment terms in My Bookings.
Inputs Trip.com account, booking number
- Update
Request a guest-name correction if the booking allows it; changes may require hotel approval.
Inputs Booking number, corrected guest name
- Delete
Cancel your reservation if permitted, after reviewing the cancellation fee and any refund.
Inputs Booking number, cancellation terms, explicit confirmation