-
Notifications
You must be signed in to change notification settings - Fork 0
CT Local Eatouts Create Intinerary
SoumyaSian edited this page Mar 15, 2018
·
5 revisions
create_eatout_itinerary
KEYWORD | DESCRIPTION |
---|---|
ITINERARY_DATA | Object with required itinerary data |
ITINERARY_DATA.DATE | Date of the activity |
ITINERARY_DATA.ACTIVITY_ID | Cleartrip ID for the activity |
ITINERARY_DATA.PRICING | Pricing type (adults / children / units) |
NO_OF_CHILDREN/ NO_OF_ADULTS / NO_OF_UNITS | No of (adults / children / units) |
ITINERARY_DATA.RATE_ID | Cleartrip ID for rate (In response of activity Details) |
ITINERARY_DATA.VARIANTID | Cleartrip ID for the variant |
ITINERARY_DATA.SCR | Currency of country ex - INR (India) |
ITINERARY_DATA.SCT | City initials ex - IN (India) |
{
"$ITINERARY_DATA":{
"date":"$DATE",
"activityId":$ACTIVITY_ID,
"pricing":"$PRICING",
"rateId":$RATE_ID,
"variantId":$VARIANTID,
"scr":"$SCR",
"sct":"$SCT",
"noOfChildren":$NO_OF_CHILDREN,
"noOfAdults":$NO_OF_ADULTS
}
}
KEY | DESCRIPTION |
---|---|
CRC | Currency in which the activity price is displayed |
DUR_H | Activity duration in hours |
DUR_M | Activity duration in mins |
DUR_D | Activity duration in days |
TT | Total tax on this activity |
ITINERARY_ID | Cleartrip ID for itinerary generated |
START_TIME | Start time of this activity |
END_TIME | End time of this activity |
TOT | Total price of this activity |
DISPLAY_NAMES | Display name for this activity |
WEB_URL | Cleartrip website page for create Itinerary |
{
bf : "$BF",
ItineraryId : "$ITINERARY_ID",
tot : "$TOT",
end_time : "$END_TIME",
start_time : "$START_TIME",
tt : "$TT",
dur_m : "$DUR_M",
dur_d : "$DUR_D",
dur_h : "$DUR_H",
crc : "$CRC",
displayNames : "$DISPLAY_NAMES",
"web_url": "$WEB_URL"
}
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 | Fields are missing | If request params are missing |
400 | Date is required field | Date is missing |
400 | Missing activity_id | Activity id is missing |
400 | One of the parameters adults or children is required | no_of_children or no_of_adults is missing |
400 | Missing pricing category | Pricing is missing |
400 | Missing rate_id | Rate id is missing |
400 | Missing variantion_id | Variant id is missing |