Skip to content

CT Local Activities Book Itinerary

SoumyaSian edited this page Oct 23, 2017 · 10 revisions

1.8 Book Itinerary

Intent

confirm_activity_booking

Request Params Description

KEYWORD DESCRIPTION
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

{
  "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 for an invalid search request. The HTTP response code in this case will be 400.

Status Error message Description
400 Booking failed Booking failed
Clone this wiki locally