POST api/hotel/rts/search?platformSource={platformSource}&isCache={isCache}

获取酒店信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
platformSource

string

Required

isCache

boolean

Default value is False

Body Parameters

HotelSearchListNet
NameDescriptionTypeAdditional information
LanguageCode

string

None.

TravelerNationality

string

None.

CityCode

string

None.

CheckInDate

string

None.

CheckOutDate

string

None.

StarRating

string

None.

LocationCode

string

None.

AvailableHotelOnly

boolean

None.

RecommendHotelOnly

boolean

None.

ClientCurrencyCode

string

None.

ItemName

string

None.

SellerMarkup

string

None.

CompareYn

boolean

None.

ItemCodeList

Collection of ItemCodeInfo

None.

RoomsList

Collection of RoomsInfo

None.

Source

string

None.

UserName

string

None.

Cid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "languageCode": "sample string 1",
  "travelerNationality": "sample string 2",
  "cityCode": "sample string 3",
  "checkInDate": "sample string 4",
  "checkOutDate": "sample string 5",
  "starRating": "sample string 6",
  "locationCode": "sample string 7",
  "availableHotelOnly": true,
  "recommendHotelOnly": true,
  "clientCurrencyCode": "sample string 10",
  "itemName": "sample string 11",
  "sellerMarkup": "sample string 12",
  "compareYn": true,
  "itemCodeList": [
    {
      "itemCode": "sample string 1",
      "itemNo": 2
    },
    {
      "itemCode": "sample string 1",
      "itemNo": 2
    }
  ],
  "roomsList": [
    {
      "bedTypeCode": "sample string 1",
      "roomCount": 2,
      "childAge1": 3,
      "childAge2": 4
    },
    {
      "bedTypeCode": "sample string 1",
      "roomCount": 2,
      "childAge1": 3,
      "childAge2": 4
    }
  ],
  "source": "sample string 14",
  "userName": "sample string 15",
  "cid": "sample string 16"
}

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

Response Information

Resource Description

获取酒店信息

ReturnResultOfGetHotelSearchListResponse
NameDescriptionTypeAdditional information
data

GetHotelSearchListResponse

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "status": 1,
    "msg": "sample string 2",
    "GetHotelSearchListResult": {
      "LanguageCode": "sample string 1",
      "LanguageName": "sample string 2",
      "NationalityCode": "sample string 3",
      "NationalityName": "sample string 4",
      "CityCode": "sample string 5",
      "CityEname": "sample string 6",
      "CityName": "sample string 7",
      "CountryCode": "sample string 8",
      "CountryEname": "sample string 9",
      "CountryName": "sample string 10",
      "StateCode": "sample string 11",
      "StateEname": "sample string 12",
      "StateName": "sample string 13",
      "CheckInDate": "sample string 14",
      "CheckInWeekday": "sample string 15",
      "CheckOutDate": "sample string 16",
      "CheckOutWeekday": "sample string 17",
      "Duration": "sample string 18",
      "CheckInLeftDays": "sample string 19",
      "ItemName": "sample string 20",
      "ItemCode": "sample string 21",
      "ItemNo": "sample string 22",
      "StarRating": "sample string 23",
      "LocationCode": "sample string 24",
      "AvailableHotelOnly": "sample string 25",
      "RecommendHotelOnly": "sample string 26",
      "TotalResultCount": "sample string 27",
      "ExchangeConvertDate": "sample string 28",
      "SellingCurrencyCode": "sample string 29",
      "ClientCurrencyCode": "sample string 30",
      "SellingConvertRate": "sample string 31",
      "CityEventList": "sample string 32",
      "Errors": "sample string 33",
      "RoomList": [
        {
          "bedTypeCode": "sample string 1",
          "roomCount": 2,
          "childAge1": 3,
          "childAge2": 4
        },
        {
          "bedTypeCode": "sample string 1",
          "roomCount": 2,
          "childAge1": 3,
          "childAge2": 4
        }
      ],
      "HotelSearchList": [
        {
          "ItemCode": "sample string 1",
          "ItemName": "sample string 2",
          "StarRating": "sample string 3",
          "TotalRoomCount": "sample string 4",
          "TotalFloorCount": "sample string 5",
          "RecommendYn": "sample string 6",
          "ExpertReportYn": "sample string 7",
          "FirstImageFileName": "sample string 8",
          "HotelDescription": "sample string 9",
          "BackpackYn": "sample string 10",
          "BusinessYn": "sample string 11",
          "HoneymoonYn": "sample string 12",
          "FairYnField": "sample string 13",
          "AirPackYn": "sample string 14",
          "BookingCount": "sample string 15",
          "LocationList": [
            {
              "LocationCode": "sample string 1",
              "DisplayOrder": "sample string 2",
              "LocationName": "sample string 3",
              "NoramlRemarks": "sample string 4",
              "GeneralLocationYn": "sample string 5",
              "LastWriteTime": "sample string 6"
            },
            {
              "LocationCode": "sample string 1",
              "DisplayOrder": "sample string 2",
              "LocationName": "sample string 3",
              "NoramlRemarks": "sample string 4",
              "GeneralLocationYn": "sample string 5",
              "LastWriteTime": "sample string 6"
            }
          ],
          "GeoCode": {
            "Latitude": "sample string 1",
            "Longitude": "sample string 2",
            "PhoneNo": "sample string 3",
            "FaxNo": "sample string 4",
            "Email": "sample string 5",
            "Address": "sample string 6",
            "HomepageUrl": "sample string 7"
          },
          "PriceList": [
            {
              "ItemNo": "sample string 1",
              "ItemCode": "sample string 2",
              "SupplierCompCode": "sample string 3",
              "RoomTypeCode": "sample string 4",
              "RoomTypeName": "sample string 5",
              "BreakfastTypeName": "sample string 6",
              "AddBreakfastTypeName": "sample string 7",
              "PriceComment": "sample string 8",
              "FareRateType": "sample string 9",
              "PriceStatus": "sample string 10",
              "NetCurrencyCode": "sample string 11",
              "NetConvertRate": "sample string 12",
              "SellerNetPrice": "sample string 13",
              "SellerMarkupPrice": "sample string 14",
              "RecommendClientPrice": "sample string 15",
              "SellerClientPrice": "sample string 16",
              "DoubleBedYn": "sample string 17",
              "PriceBreakdown": [
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                },
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                }
              ],
              "SupplierPromotion": [
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                },
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                }
              ],
              "PlatFormSellerNetPrice": 18.0,
              "PlatFormMarkUpPrice": 19.0,
              "PlatFormRecommendClientPrice": 20.0,
              "markupDescript": "sample string 21"
            },
            {
              "ItemNo": "sample string 1",
              "ItemCode": "sample string 2",
              "SupplierCompCode": "sample string 3",
              "RoomTypeCode": "sample string 4",
              "RoomTypeName": "sample string 5",
              "BreakfastTypeName": "sample string 6",
              "AddBreakfastTypeName": "sample string 7",
              "PriceComment": "sample string 8",
              "FareRateType": "sample string 9",
              "PriceStatus": "sample string 10",
              "NetCurrencyCode": "sample string 11",
              "NetConvertRate": "sample string 12",
              "SellerNetPrice": "sample string 13",
              "SellerMarkupPrice": "sample string 14",
              "RecommendClientPrice": "sample string 15",
              "SellerClientPrice": "sample string 16",
              "DoubleBedYn": "sample string 17",
              "PriceBreakdown": [
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                },
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                }
              ],
              "SupplierPromotion": [
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                },
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                }
              ],
              "PlatFormSellerNetPrice": 18.0,
              "PlatFormMarkUpPrice": 19.0,
              "PlatFormRecommendClientPrice": 20.0,
              "markupDescript": "sample string 21"
            }
          ]
        },
        {
          "ItemCode": "sample string 1",
          "ItemName": "sample string 2",
          "StarRating": "sample string 3",
          "TotalRoomCount": "sample string 4",
          "TotalFloorCount": "sample string 5",
          "RecommendYn": "sample string 6",
          "ExpertReportYn": "sample string 7",
          "FirstImageFileName": "sample string 8",
          "HotelDescription": "sample string 9",
          "BackpackYn": "sample string 10",
          "BusinessYn": "sample string 11",
          "HoneymoonYn": "sample string 12",
          "FairYnField": "sample string 13",
          "AirPackYn": "sample string 14",
          "BookingCount": "sample string 15",
          "LocationList": [
            {
              "LocationCode": "sample string 1",
              "DisplayOrder": "sample string 2",
              "LocationName": "sample string 3",
              "NoramlRemarks": "sample string 4",
              "GeneralLocationYn": "sample string 5",
              "LastWriteTime": "sample string 6"
            },
            {
              "LocationCode": "sample string 1",
              "DisplayOrder": "sample string 2",
              "LocationName": "sample string 3",
              "NoramlRemarks": "sample string 4",
              "GeneralLocationYn": "sample string 5",
              "LastWriteTime": "sample string 6"
            }
          ],
          "GeoCode": {
            "Latitude": "sample string 1",
            "Longitude": "sample string 2",
            "PhoneNo": "sample string 3",
            "FaxNo": "sample string 4",
            "Email": "sample string 5",
            "Address": "sample string 6",
            "HomepageUrl": "sample string 7"
          },
          "PriceList": [
            {
              "ItemNo": "sample string 1",
              "ItemCode": "sample string 2",
              "SupplierCompCode": "sample string 3",
              "RoomTypeCode": "sample string 4",
              "RoomTypeName": "sample string 5",
              "BreakfastTypeName": "sample string 6",
              "AddBreakfastTypeName": "sample string 7",
              "PriceComment": "sample string 8",
              "FareRateType": "sample string 9",
              "PriceStatus": "sample string 10",
              "NetCurrencyCode": "sample string 11",
              "NetConvertRate": "sample string 12",
              "SellerNetPrice": "sample string 13",
              "SellerMarkupPrice": "sample string 14",
              "RecommendClientPrice": "sample string 15",
              "SellerClientPrice": "sample string 16",
              "DoubleBedYn": "sample string 17",
              "PriceBreakdown": [
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                },
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                }
              ],
              "SupplierPromotion": [
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                },
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                }
              ],
              "PlatFormSellerNetPrice": 18.0,
              "PlatFormMarkUpPrice": 19.0,
              "PlatFormRecommendClientPrice": 20.0,
              "markupDescript": "sample string 21"
            },
            {
              "ItemNo": "sample string 1",
              "ItemCode": "sample string 2",
              "SupplierCompCode": "sample string 3",
              "RoomTypeCode": "sample string 4",
              "RoomTypeName": "sample string 5",
              "BreakfastTypeName": "sample string 6",
              "AddBreakfastTypeName": "sample string 7",
              "PriceComment": "sample string 8",
              "FareRateType": "sample string 9",
              "PriceStatus": "sample string 10",
              "NetCurrencyCode": "sample string 11",
              "NetConvertRate": "sample string 12",
              "SellerNetPrice": "sample string 13",
              "SellerMarkupPrice": "sample string 14",
              "RecommendClientPrice": "sample string 15",
              "SellerClientPrice": "sample string 16",
              "DoubleBedYn": "sample string 17",
              "PriceBreakdown": [
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                },
                {
                  "Date": "sample string 1",
                  "Price": "sample string 2"
                }
              ],
              "SupplierPromotion": [
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                },
                {
                  "PromotionDescription": "sample string 1",
                  "PromotionName": "sample string 2"
                }
              ],
              "PlatFormSellerNetPrice": 18.0,
              "PlatFormMarkUpPrice": 19.0,
              "PlatFormRecommendClientPrice": 20.0,
              "markupDescript": "sample string 21"
            }
          ]
        }
      ],
      "Msg": "sample string 34",
      "Status": 35
    }
  },
  "code": 1,
  "message": "sample string 2"
}