Ctrip API guide

ctrip.com

Find destinations on Ctrip, compare hotel quotes for your dates, and check one-way flight fares and train seat availability.

Actions and inputs

ctrip search

Find cities, landmarks, scenic spots, and railway stations by keyword.

Inputs Keyword, optional result limit

ctrip hotel-search

List hotels and view quoted prices for a city and stay dates.

Inputs City ID, check-in and checkout dates, optional result limit

ctrip flight

Find one-way flights and view schedules and quoted fares.

Inputs Origin and destination IATA codes, departure date, optional result limit

ctrip train

Find trains and check fares and seat availability by class.

Inputs Origin and destination city or station names, departure date, optional result limit

Hotel reservations

Create

Book a hotel room from your account after confirming the total price and booking terms.

Inputs Hotel, room and rate, stay dates, guest details, booking confirmation

Read

Review your reservation status, room details, and cancellation deadline.

Inputs Booking reference

Update

Request a date or guest-name change if the booking allows it; review any price difference before confirming.

Inputs Booking reference, requested changes, confirmation

Delete

Cancel your reservation if permitted after reviewing the deadline, fees, and expected refund.

Inputs Booking reference, cancellation confirmation