POST api/hotel/2c/search/{lang}

搜索

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us)

string

Required

Body Parameters

搜索数据

TocHotelSearchRQContract
NameDescriptionTypeAdditional information
citycode

城市编号

string

None.

coutrycode

国家编码

string

None.

regioncode

区域编码

string

None.

keyword

关键字

string

None.

placeid

地标编号

string

None.

nationality

国籍

string

None.

checkindate

开始时间

date

None.

checkoutdate

结束时间

date

None.

hotelcodes

酒店编码

Collection of string

None.

roomorders

房间预定列表

Collection of TocRoomOrderContract

None.

clientguid

客户端guid

string

None.

pageindex

当前页

integer

None.

pagesize

每页记录条数

integer

None.

loadModules

加载模块(酒店为固定,1.概要总计,2,酒店房间明细,3.酒店地址汇总)

Collection of integer

None.

mulitstar

星级(筛选,多个用逗号隔开)

string

None.

tripadrating

TripAdVisor 评级(筛选,多个用逗号隔开)

string

None.

facility

设施(筛选 多个用逗号隔开)

string

None.

landmarkids

路标(筛选 多个用逗号隔开)

string

None.

regionids

区域(筛选 多个用逗号隔开)

string

None.

price

价格范围(筛选 用逗号隔开)

string

None.

orderby

排序(price_asc/price_desc/star_asc/star_desc/business_desc/couples_desc/family_desc/friends_desc/solo_desc)

string

None.

searchcode

酒店编码(筛选)

string

None.

searchfromcache

搜索从缓存

boolean

None.

clientcurrency

网站币种

string

None.

isdelayload

是否延时加载菜单

boolean

None.

specialhotelids

特殊酒店Ids集合

Collection of string

None.

isspecialfilter

是否过滤(true.则从分页中排除,false 则包含)

boolean

None.

customersessionid

客户sessionid

string

None.

customeripaddress

客户Ip地址

string

None.

customeruseragent

客户Ip地址

string

None.

location

地理定位

TocHotelLocationRQContract

None.

issearchlist

是否是搜索列表

boolean

None.

isroommerge

房间是否合并

boolean

None.

searchguid

搜索Guid

string

None.

clienthotelcodes

客户端酒店编号

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "citycode": "sample string 1",
  "coutrycode": "sample string 2",
  "regioncode": "sample string 3",
  "keyword": "sample string 4",
  "placeid": "sample string 5",
  "nationality": "sample string 6",
  "checkindate": "2024-12-23T19:56:51.8152498+08:00",
  "checkoutdate": "2024-12-23T19:56:51.8152498+08:00",
  "hotelcodes": [
    "sample string 1",
    "sample string 2"
  ],
  "roomorders": [
    {
      "adultcount": 1,
      "infantcount": 2,
      "childagelist": [
        1,
        2
      ]
    },
    {
      "adultcount": 1,
      "infantcount": 2,
      "childagelist": [
        1,
        2
      ]
    }
  ],
  "clientguid": "sample string 9",
  "pageindex": 10,
  "pagesize": 11,
  "loadModules": [
    1,
    2
  ],
  "mulitstar": "sample string 12",
  "tripadrating": "sample string 13",
  "facility": "sample string 14",
  "landmarkids": "sample string 15",
  "regionids": "sample string 16",
  "price": "sample string 17",
  "orderby": "sample string 18",
  "searchcode": "sample string 19",
  "searchfromcache": true,
  "clientcurrency": "sample string 21",
  "isdelayload": true,
  "specialhotelids": [
    "sample string 1",
    "sample string 2"
  ],
  "isspecialfilter": true,
  "customersessionid": "sample string 24",
  "customeripaddress": "sample string 25",
  "customeruseragent": "sample string 26",
  "location": {
    "locationtype": 1,
    "longitude": 2.1,
    "latitude": 3.1,
    "distance": 4.1
  },
  "issearchlist": true,
  "isroommerge": true,
  "searchguid": "sample string 29",
  "clienthotelcodes": [
    "sample string 1",
    "sample string 2"
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TocHotelSearchRQContract'.

Response Information

Resource Description

搜索

ReturnResultOfTocHotelSearchPageContract
NameDescriptionTypeAdditional information
data

TocHotelSearchPageContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "pagehotellist": {
      "total_count": 1,
      "page": 2,
      "page_size": 3,
      "data_list": [
        {
          "hotelcode": "sample string 2",
          "hotelname": "sample string 3",
          "hotelengname": "sample string 4",
          "regions": [
            {
              "regionid": "sample string 1",
              "region": "sample string 2"
            },
            {
              "regionid": "sample string 1",
              "region": "sample string 2"
            }
          ],
          "star": 5.0,
          "tripadrating": 6.1,
          "tripadratingimgurl": "sample string 7",
          "tripadreviewcount": 8,
          "triptypes": [
            {
              "hotelid": "sample string 1",
              "triptype": "sample string 2",
              "reviewcount": 3
            },
            {
              "hotelid": "sample string 1",
              "triptype": "sample string 2",
              "reviewcount": 3
            }
          ],
          "address": [
            "sample string 1",
            "sample string 2"
          ],
          "descript": "sample string 9",
          "longitude": "sample string 10",
          "latitude": "sample string 11",
          "distance": 12.1,
          "paytotal": 13.0,
          "currency": "sample string 14",
          "coverpic": "sample string 15",
          "orderby": 16,
          "hotelfacilist": [
            {
              "iconname": "sample string 1",
              "facilityid": "sample string 2",
              "facility": "sample string 3",
              "notes": "sample string 4",
              "costinfo": "sample string 5"
            },
            {
              "iconname": "sample string 1",
              "facilityid": "sample string 2",
              "facility": "sample string 3",
              "notes": "sample string 4",
              "costinfo": "sample string 5"
            }
          ],
          "ispwcprice": true,
          "ispartnerhotel": true
        },
        {
          "hotelcode": "sample string 2",
          "hotelname": "sample string 3",
          "hotelengname": "sample string 4",
          "regions": [
            {
              "regionid": "sample string 1",
              "region": "sample string 2"
            },
            {
              "regionid": "sample string 1",
              "region": "sample string 2"
            }
          ],
          "star": 5.0,
          "tripadrating": 6.1,
          "tripadratingimgurl": "sample string 7",
          "tripadreviewcount": 8,
          "triptypes": [
            {
              "hotelid": "sample string 1",
              "triptype": "sample string 2",
              "reviewcount": 3
            },
            {
              "hotelid": "sample string 1",
              "triptype": "sample string 2",
              "reviewcount": 3
            }
          ],
          "address": [
            "sample string 1",
            "sample string 2"
          ],
          "descript": "sample string 9",
          "longitude": "sample string 10",
          "latitude": "sample string 11",
          "distance": 12.1,
          "paytotal": 13.0,
          "currency": "sample string 14",
          "coverpic": "sample string 15",
          "orderby": 16,
          "hotelfacilist": [
            {
              "iconname": "sample string 1",
              "facilityid": "sample string 2",
              "facility": "sample string 3",
              "notes": "sample string 4",
              "costinfo": "sample string 5"
            },
            {
              "iconname": "sample string 1",
              "facilityid": "sample string 2",
              "facility": "sample string 3",
              "notes": "sample string 4",
              "costinfo": "sample string 5"
            }
          ],
          "ispwcprice": true,
          "ispartnerhotel": true
        }
      ],
      "page_count": 1,
      "skip": 4
    },
    "specialhotellist": [
      {
        "hotelcode": "sample string 2",
        "hotelname": "sample string 3",
        "hotelengname": "sample string 4",
        "regions": [
          {
            "regionid": "sample string 1",
            "region": "sample string 2"
          },
          {
            "regionid": "sample string 1",
            "region": "sample string 2"
          }
        ],
        "star": 5.0,
        "tripadrating": 6.1,
        "tripadratingimgurl": "sample string 7",
        "tripadreviewcount": 8,
        "triptypes": [
          {
            "hotelid": "sample string 1",
            "triptype": "sample string 2",
            "reviewcount": 3
          },
          {
            "hotelid": "sample string 1",
            "triptype": "sample string 2",
            "reviewcount": 3
          }
        ],
        "address": [
          "sample string 1",
          "sample string 2"
        ],
        "descript": "sample string 9",
        "longitude": "sample string 10",
        "latitude": "sample string 11",
        "distance": 12.1,
        "paytotal": 13.0,
        "currency": "sample string 14",
        "coverpic": "sample string 15",
        "orderby": 16,
        "hotelfacilist": [
          {
            "iconname": "sample string 1",
            "facilityid": "sample string 2",
            "facility": "sample string 3",
            "notes": "sample string 4",
            "costinfo": "sample string 5"
          },
          {
            "iconname": "sample string 1",
            "facilityid": "sample string 2",
            "facility": "sample string 3",
            "notes": "sample string 4",
            "costinfo": "sample string 5"
          }
        ],
        "ispwcprice": true,
        "ispartnerhotel": true
      },
      {
        "hotelcode": "sample string 2",
        "hotelname": "sample string 3",
        "hotelengname": "sample string 4",
        "regions": [
          {
            "regionid": "sample string 1",
            "region": "sample string 2"
          },
          {
            "regionid": "sample string 1",
            "region": "sample string 2"
          }
        ],
        "star": 5.0,
        "tripadrating": 6.1,
        "tripadratingimgurl": "sample string 7",
        "tripadreviewcount": 8,
        "triptypes": [
          {
            "hotelid": "sample string 1",
            "triptype": "sample string 2",
            "reviewcount": 3
          },
          {
            "hotelid": "sample string 1",
            "triptype": "sample string 2",
            "reviewcount": 3
          }
        ],
        "address": [
          "sample string 1",
          "sample string 2"
        ],
        "descript": "sample string 9",
        "longitude": "sample string 10",
        "latitude": "sample string 11",
        "distance": 12.1,
        "paytotal": 13.0,
        "currency": "sample string 14",
        "coverpic": "sample string 15",
        "orderby": 16,
        "hotelfacilist": [
          {
            "iconname": "sample string 1",
            "facilityid": "sample string 2",
            "facility": "sample string 3",
            "notes": "sample string 4",
            "costinfo": "sample string 5"
          },
          {
            "iconname": "sample string 1",
            "facilityid": "sample string 2",
            "facility": "sample string 3",
            "notes": "sample string 4",
            "costinfo": "sample string 5"
          }
        ],
        "ispwcprice": true,
        "ispartnerhotel": true
      }
    ],
    "hoteldetail": {
      "location": "sample string 1",
      "streetnumber": "sample string 2",
      "country": "sample string 3",
      "countrycode": "sample string 4",
      "citycode": "sample string 5",
      "city": "sample string 6",
      "resort": "sample string 7",
      "postalcode": "sample string 8",
      "phone": [
        "sample string 1",
        "sample string 2"
      ],
      "fax": "sample string 9",
      "email": [
        "sample string 1",
        "sample string 2"
      ],
      "url": "sample string 10",
      "catedescripts": [
        {
          "cateid": "sample string 1",
          "catename": "sample string 2",
          "content": "sample string 3"
        },
        {
          "cateid": "sample string 1",
          "catename": "sample string 2",
          "content": "sample string 3"
        }
      ],
      "classimages": [
        {
          "classid": "sample string 1",
          "classname": "sample string 2",
          "classimages": [
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            },
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            }
          ]
        },
        {
          "classid": "sample string 1",
          "classname": "sample string 2",
          "classimages": [
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            },
            {
              "title": "sample string 1",
              "url": "sample string 2",
              "descript": "sample string 3"
            }
          ]
        }
      ],
      "roomfacilist": [
        {
          "roomtypeid": "sample string 1",
          "roomtype": "sample string 2",
          "roomfacilitys": [
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            },
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            }
          ]
        },
        {
          "roomtypeid": "sample string 1",
          "roomtype": "sample string 2",
          "roomfacilitys": [
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            },
            {
              "facilityid": "sample string 1",
              "facility": "sample string 2",
              "notes": "sample string 3",
              "costinfo": "sample string 4"
            }
          ]
        }
      ],
      "checkininstructions": "sample string 11",
      "checkinspecialinstructions": "sample string 12",
      "rooms": [
        {
          "roomid": "sample string 1",
          "roomname": "sample string 2",
          "groupid": "sample string 3",
          "groupname": "sample string 4",
          "plansid": "sample string 5",
          "status": "sample string 6",
          "description": "sample string 7",
          "allotment": 8,
          "orgtotal": 9.0,
          "markuptotal": 10.0,
          "markupdescript": "sample string 11",
          "total": 12.0,
          "currency": "sample string 13",
          "includebreakfast": true,
          "freewifi": true,
          "adultcount": 16,
          "childcount": 17,
          "promotions": [
            {
              "name": "sample string 1",
              "description": "sample string 2"
            },
            {
              "name": "sample string 1",
              "description": "sample string 2"
            }
          ],
          "warns": [
            {
              "WarnTitle": "sample string 1",
              "Descript": "sample string 2"
            },
            {
              "WarnTitle": "sample string 1",
              "Descript": "sample string 2"
            }
          ],
          "availableoptions": [
            {
              "optionid": "sample string 1",
              "optionname": "sample string 2",
              "rate": 3.0,
              "currency": "sample string 4",
              "compulsory": true
            },
            {
              "optionid": "sample string 1",
              "optionname": "sample string 2",
              "rate": 3.0,
              "currency": "sample string 4",
              "compulsory": true
            }
          ],
          "roompernights": [
            {
              "date": "sample string 1",
              "orgrate": 2.0,
              "rate": 3.0,
              "currency": "sample string 4"
            },
            {
              "date": "sample string 1",
              "orgrate": 2.0,
              "rate": 3.0,
              "currency": "sample string 4"
            }
          ],
          "roomimages": [
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            },
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            }
          ],
          "additionals": [
            {
              "AdditionalId": "sample string 1",
              "Additional": "sample string 2"
            },
            {
              "AdditionalId": "sample string 1",
              "Additional": "sample string 2"
            }
          ],
          "smokingpreferences": "sample string 18",
          "bedtypes": [
            {
              "bedtypeid": "sample string 1",
              "bedtype": "sample string 2"
            },
            {
              "bedtypeid": "sample string 1",
              "bedtype": "sample string 2"
            }
          ],
          "cancellationpolicy": "sample string 19",
          "ispackage": true,
          "ispwcprice": true
        },
        {
          "roomid": "sample string 1",
          "roomname": "sample string 2",
          "groupid": "sample string 3",
          "groupname": "sample string 4",
          "plansid": "sample string 5",
          "status": "sample string 6",
          "description": "sample string 7",
          "allotment": 8,
          "orgtotal": 9.0,
          "markuptotal": 10.0,
          "markupdescript": "sample string 11",
          "total": 12.0,
          "currency": "sample string 13",
          "includebreakfast": true,
          "freewifi": true,
          "adultcount": 16,
          "childcount": 17,
          "promotions": [
            {
              "name": "sample string 1",
              "description": "sample string 2"
            },
            {
              "name": "sample string 1",
              "description": "sample string 2"
            }
          ],
          "warns": [
            {
              "WarnTitle": "sample string 1",
              "Descript": "sample string 2"
            },
            {
              "WarnTitle": "sample string 1",
              "Descript": "sample string 2"
            }
          ],
          "availableoptions": [
            {
              "optionid": "sample string 1",
              "optionname": "sample string 2",
              "rate": 3.0,
              "currency": "sample string 4",
              "compulsory": true
            },
            {
              "optionid": "sample string 1",
              "optionname": "sample string 2",
              "rate": 3.0,
              "currency": "sample string 4",
              "compulsory": true
            }
          ],
          "roompernights": [
            {
              "date": "sample string 1",
              "orgrate": 2.0,
              "rate": 3.0,
              "currency": "sample string 4"
            },
            {
              "date": "sample string 1",
              "orgrate": 2.0,
              "rate": 3.0,
              "currency": "sample string 4"
            }
          ],
          "roomimages": [
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            },
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            }
          ],
          "additionals": [
            {
              "AdditionalId": "sample string 1",
              "Additional": "sample string 2"
            },
            {
              "AdditionalId": "sample string 1",
              "Additional": "sample string 2"
            }
          ],
          "smokingpreferences": "sample string 18",
          "bedtypes": [
            {
              "bedtypeid": "sample string 1",
              "bedtype": "sample string 2"
            },
            {
              "bedtypeid": "sample string 1",
              "bedtype": "sample string 2"
            }
          ],
          "cancellationpolicy": "sample string 19",
          "ispackage": true,
          "ispwcprice": true
        }
      ],
      "roomgroups": [
        {
          "groupid": "sample string 1",
          "groupname": "sample string 2",
          "groupdescript": "sample string 3",
          "groupimages": [
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            },
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            }
          ]
        },
        {
          "groupid": "sample string 1",
          "groupname": "sample string 2",
          "groupdescript": "sample string 3",
          "groupimages": [
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            },
            {
              "url": "sample string 1",
              "title": "sample string 2",
              "descript": "sample string 3",
              "isprimary": true
            }
          ]
        }
      ],
      "tripadvisorinfo": {
        "rating": 1.1,
        "ratingimgurl": "sample string 2",
        "reviewcount": 3,
        "reviewurl": "sample string 4",
        "nearbyrestaurants": "sample string 5",
        "nearbyattractions": "sample string 6",
        "ranking": {
          "rankingno": "sample string 1",
          "rankingnumber": "sample string 2",
          "rankinglocation": "sample string 3",
          "rankingdescript": "sample string 4"
        },
        "awards": [
          {
            "awardtype": "sample string 1",
            "displayname": "sample string 2",
            "year": "sample string 3",
            "tinyimgurl": "sample string 4",
            "smallimgurl": "sample string 5",
            "largeimgurl": "sample string 6"
          },
          {
            "awardtype": "sample string 1",
            "displayname": "sample string 2",
            "year": "sample string 3",
            "tinyimgurl": "sample string 4",
            "smallimgurl": "sample string 5",
            "largeimgurl": "sample string 6"
          }
        ]
      },
      "hotelcode": "sample string 14",
      "hotelname": "sample string 15",
      "hotelengname": "sample string 16",
      "regions": [
        {
          "regionid": "sample string 1",
          "region": "sample string 2"
        },
        {
          "regionid": "sample string 1",
          "region": "sample string 2"
        }
      ],
      "star": 17.0,
      "tripadrating": 18.1,
      "tripadratingimgurl": "sample string 19",
      "tripadreviewcount": 20,
      "triptypes": [
        {
          "hotelid": "sample string 1",
          "triptype": "sample string 2",
          "reviewcount": 3
        },
        {
          "hotelid": "sample string 1",
          "triptype": "sample string 2",
          "reviewcount": 3
        }
      ],
      "address": [
        "sample string 1",
        "sample string 2"
      ],
      "descript": "sample string 21",
      "longitude": "sample string 22",
      "latitude": "sample string 23",
      "distance": 24.1,
      "paytotal": 25.0,
      "currency": "sample string 26",
      "coverpic": "sample string 27",
      "orderby": 28,
      "hotelfacilist": [
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        },
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        }
      ],
      "ispwcprice": true,
      "ispartnerhotel": true
    },
    "hotelsummary": {
      "starlist": [
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "regionlist": [
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "tripadratinglist": [
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "facilitylist": [
        {
          "hotelcodes": [
            "sample string 1",
            "sample string 2"
          ],
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "hotelcodes": [
            "sample string 1",
            "sample string 2"
          ],
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "landmarklist": [
        {
          "hotelcodes": [
            "sample string 1",
            "sample string 2"
          ],
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "hotelcodes": [
            "sample string 1",
            "sample string 2"
          ],
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "hotellocations": [
        {
          "hotelcode": "sample string 1",
          "hotelname": "sample string 2",
          "hotelengname": "sample string 3",
          "location": "sample string 4",
          "coverpic": "sample string 5",
          "star": 6.0,
          "tripadrating": 7.1,
          "tripadratingimgurl": "sample string 8",
          "tripadreviewcount": 9,
          "lng": "sample string 10",
          "Lat": "sample string 11",
          "price": 12.0,
          "currency": "sample string 13"
        },
        {
          "hotelcode": "sample string 1",
          "hotelname": "sample string 2",
          "hotelengname": "sample string 3",
          "location": "sample string 4",
          "coverpic": "sample string 5",
          "star": 6.0,
          "tripadrating": 7.1,
          "tripadratingimgurl": "sample string 8",
          "tripadreviewcount": 9,
          "lng": "sample string 10",
          "Lat": "sample string 11",
          "price": 12.0,
          "currency": "sample string 13"
        }
      ],
      "triptypes": [
        {
          "hotelid": "sample string 1",
          "triptype": "sample string 2",
          "reviewcount": 3
        },
        {
          "hotelid": "sample string 1",
          "triptype": "sample string 2",
          "reviewcount": 3
        }
      ],
      "minprice": 1.0,
      "maxprice": 2.0
    },
    "citycode": "sample string 1",
    "cityname": "sample string 2",
    "searchguid": "sample string 3",
    "landmarkguid": "sample string 4",
    "iscompleted": true
  },
  "code": 1,
  "message": "sample string 2"
}