Skip to content

CT Local Eatout Fetch Collection List

SoumyaSian edited this page Nov 25, 2017 · 6 revisions

2.2 Fetch Collections List

Intent

fetch_eatout_collections

Request Params Description

KEY DESCRIPTION
CITY_NAME Name of city

Payload

{
	"city_name":"$CITY_NAME"   
}

Response Params Description

KEY DESCRIPTION
IMAGE URL path of the image (Image can be obtained by prefixing "http://ui.cltpstatic.com/" or "http://apistaging.cleartrip.com/" as base url)
COUNT Number of eatouts available for the collections
COLLECTION_NAME Name of the collection of eatouts
COLLECTION_ID Cleartrip ID for a collection
CITY_ID Cleartrip ID for a city

Response Body

[
 {
    "image": "$IMAGE",
    "count": $COUNT,
    "collection_name": "$COLLECTION_NAME",
    "collection_id": $COLLECTION_ID,
    "city_id": $CITY_ID
  },
  ...
]

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 Please specify the city City is missing.
Clone this wiki locally