Skip to content

CT Local Activities Book Itinerary

SoumyaSian edited this page Mar 14, 2018 · 10 revisions

1.8 Book Itinerary

Intent

confirm_activity_booking

Request Params Description

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

Payload

{
  "itinerary_id":"$ITINERARY_ID",
  "$user_details":{
  	 	"title" : "$TITLE",
		"firstName": "$FIRST_NAME",
		"lastName" : "$LAST_NAME",
		"userName" : "$USER_NAME",
		"mobileNumber" : "$MOBILE_NUMBER",
		"bookingRef" : "$BOOKING_REF"
  }
  
}

Response Params Description

KEY DESCRIPTION
TRIP_ID Cleartrip ID for The trip
VOUCHER_NO Cleartrip voucher number

Response Body

{“success”:
 	{
	“trip_id”:“$TRIP_ID”,
	“voucher_no”:“$VOUCHER_NO”
	}
}

Error messages

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
Clone this wiki locally