-
Notifications
You must be signed in to change notification settings - Fork 0
CT Local Activities Book Itinerary
Akshay Tiwari edited this page Mar 22, 2018
·
10 revisions
confirm_activity_booking
KEYWORD | DESCRIPTION |
---|---|
ITINERARY_ID | Itinerary Id from create itinerary API |
USER_DETAILS | Object containing User Details |
TITLE | User Title Ex: Mr or Ms or Mrs |
FIRS_TNAME | User's first name |
LAST_NAME | User's last name |
USER_NAME | User's email. Booking confirmation will be sent to this email |
MOBILE_NUMBER | User's mobile number. SMS Confirmation will be sent to this mobile number |
BOOKING_REF | Booking reference for the Current Booking |
PAYMENT_METHOD | Mode of the payment specified by the user |
{
"itinerary_id":"$ITINERARY_ID",
"$user_details":{
"title" : "$TITLE",
"firstName": "$FIRST_NAME",
"lastName" : "$LAST_NAME",
"userName" : "$USER_NAME",
"mobileNumber" : "$MOBILE_NUMBER",
"bookingRef" : "$BOOKING_REF"
},
"payment_method":"$PAYMENT_METHOD"
}
KEY | DESCRIPTION |
---|---|
ACTIVITY | Number of the activities selected |
BOOKING_STATUS | Status of Booking.(Pass/Fail)(P/F) |
CREATED_AT | Time of booking |
CURRENCY | The currency in which the prices of activities are displayed |
END_DATE_TIME | Activities end date and time |
EXPRESS_CHECKOUT | Express Checkout availability.Returns null if not available |
HAS_WALLET_PROMOTION | Wallet promotion availability.Returns null if not available |
HOTEL | Number of hotels for the activity(if exists) |
ITINERARY_ID | Cleartrip ID for generated itinerary ID |
START_DATE_TIME | Activity start date and time |
TRIP_KEY | Cleartrip Key for the trip |
TRIP_NAME | Name of the trip |
TRIP_REF | Cleartrip Reference for the trip |
TRIP_TYPE | Type of the trip |
TRIP.CONTACT_DETAILS | Contact details Provided at itinerary creation |
TRAVELLERS_DETAILS | List of the Travellers |
ACTIVITIES_BOOKINGS | List of the Activity Locations |
ACTIVITIES_BOOKINGS.ACTIVITY_INFOS | List of activity Booking related information |
ACTIVITIES_BOOKINGS.ACTIVITY_ORGANISER_DETAILS | List of details about organizer of the activity |
{
"activity": $ACTIVITY,
"amount": "$AMOUNT",
"booking_status": "$BOOKING_STATUS",
"created_at": "$CREATED_TIME",
"currency": "$CURRENCY",
"end_date_time": "$END_DATE_TIME",
"express_checkout": $EXPRESS_CHECKOUT,
"has_wallet_promotion": $HAS_WALLET_PROMOTION,
"hotel": $HOTEL,
"itinerary_id": "$ITINERARY_ID",
"start_date_time": "$START_DATE_TIME",
"trip_key": $TRIP_KEY,
"trip_name": "$TRIP_NAME",
"trip_ref": "$TRIP_REF",
"trip_type": $TRIP_TYPE,
"contact_detail": {
"address": "$ADDRESS",
"email": "$USER_NAME",
"first_name": "$FIRST_NAME",
"landline": $LANDLINE,
"last_name": "$LAST_NAME",
"mobile": "$MOBILE_NUMBER",
"title": "$TITLE"
},
"travellerDetails": {
"ADT": $NO_OF_ADULTS,
"CHD": $NO_OF_CHILDREN
},
"gst_charged_by_supplier": $GST_CHARGED_BY_SUPPLIER,
"gst_charged_by_cleartrip": $GST_CHARGED_BY_CLEARTRIP,
"is_reviewed": ${IS_REVIEWED},
"activities_bookings": {
"address": "$ADDRESS",
"children": $NO_OF_CHILDREN,
"latitude": "$LATITUDE",
"adults":$NO_OF_ADULTS, ,
"activity_booking_infos": [
{
"booking_status": "$BOOKING_STATUS",
"pax_info_seq_no": $PAX_INFO_SEQ_NO,
"seq_no": $SEQ_NO,
"voucher_number": "$VOUCHER_NUMBER",
"class_schedules": [
]
}
],
"activity_organiser_detail": {
"first_name": "$FIRST_NAME",
"last_name": "$LAST_NAME",
"image_url": "$IMAGE",
"email": "$USER_NAME",
"phone": "$MOBILE_NUMBER"
}
"inclusions": "$INCLUSIONS",
"longitude": "$LONGITUDE"
}
}
Some error messages, you might get an invalid search request. The HTTP response code, in this case, will be 400.
Status | Error message | Description |
---|---|---|
400 | Itinerary ID not found. Invalid Itinerary ID | Invalid Itinerary Id or Itinerary id is missing |
400 | Booking failed | Booking failed |