POST api/hotel/2c/hotel/detail

酒店详细信息

Request Information

URI Parameters

None.

Body Parameters

TocHotelDetailRQContract
NameDescriptionTypeAdditional information
lang

语言

string

None.

hotelcodes

酒店编码

Collection of string

None.

customersessionid

客户sessionid

string

None.

customeripaddress

客户Ip地址

string

None.

customeruseragent

客户浏览器信息

string

None.

Request Formats

application/json, text/json

Sample:
{
  "lang": "sample string 1",
  "hotelcodes": [
    "sample string 1",
    "sample string 2"
  ],
  "customersessionid": "sample string 3",
  "customeripaddress": "sample string 4",
  "customeruseragent": "sample string 5"
}

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 'TocHotelDetailRQContract'.

Response Information

Resource Description

酒店详细信息

ReturnResultOfListOfTocHotelItemContract
NameDescriptionTypeAdditional information
data

Collection of TocHotelItemContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "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
    },
    {
      "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
    }
  ],
  "code": 1,
  "message": "sample string 2"
}