# 价格查询

1.根据入住,退房日期等参数获取酒店缓存或实时价格信息。

2.默认情况下,Lowest price searchCache rate search 将返回基于 2 人的价格。

3.如果您使用 Lowest price searchcache rate search 来构建您本地未来 30 天的缓存,您需要单独调用 api 30 次,因为我们的缓存报价是基于每天的报价来构建的,所以在拉取我们报价的时候也只能一天一天拉取 (CheckIn = Today.AddDays(i), CheckOut = Today.AddDays(i + 1), 循环 i 从 0 到 30)。

4.当使用多酒店查询报价时建议用缓存报价。

5.在 PriceSearch 步骤中,DidaAPI 只返回 1 间房间的价格。如果您搜索多于 1 间的房间,比如 3 间房间,并且需要计算订单的总价,请使用1间房间的价格乘以 3。在 PriceConfirm 步骤中,我们返回的是所有房间的价格,即总金额。这部分非常重要,如果您需要详细解释,请联系您的专属 API 经理。

6.Dida API 支持单个请求包含多个房间,但仅限于相同房型的房间,也就是相同的 rateplanID。Dida API 不支持单个请求包含不同房型的多个房间。

7.在 PriceSearch 阶段,Dida 不支持不同房间含有不同的入住人数。对于需要2个或2个以上的房间,但是每个房间有不同入住人数的需求,Dida 不推荐拆成不同的请求发送到Dida,否则可能会出现第其中1个订单成功,其他订单失败的情况,从而产生争议单。 建议您还是发送一个请求,对于如何输入成人入住人数以及小孩入住人数,您应组合输入不同房间中的最大成人人数以及最大小孩人数。请注意,因为有的酒店可能不支持小孩入住,所以成人入住人数和小孩入住人数,应分别看待,请准确的输入成人入住人数和小孩入住人数。请参考下表中提供的示例,以获取具体指导。关于这一点,非常重要,有任何疑惑,请联系您的专属 API 客户经理。


Example:
Scene Room1 Room2 RealTimeOccupancy
1 1 Adult 2 Adult 2 Adult
2 1 Adult 1 Adult 1 Child 1 Adult 1 Child
3 2 Adult 1 Adult 1 Child 2 Adult 1 Child
4 2 Adult 1 Child 2 Adult 2 Child 2 Adult 2 Child

8.关于餐型,Dida 有两个字段可以获取餐型信息。第一个是 BreakfastType,在 Response 里面,Dida 只返回是否含早或者不含早,不能显示具体的餐型份数,对于新开发 DidaAPI 的客户,不推荐使用这个字段。第二个是 MealType,在 Response 里面,不仅有 MealType 可以表示具体的餐型,还有 MealAmount 表示含餐的份数,如果您使用了 MealType,那么请一定要同时解析 MealAmount 字段,以免出现解析错误或者未来产生关于餐型份数的争议。 且理论上来说,MealAmount 的数量总是小于或者等于入住人数。例如,如果有两个客人入住,MealAmount 为 0,则表示不含早。MealAmount 为 1,表示只含1份早餐,这种情况是存在的,有些酒店2人入住,只包含1份免费早餐,如果需要2份早餐的话,另外一份需要在线或者到店额外付费购买。MealAmount 为 2,表示入住的2个人买,都含有早餐。

9.关于 IncludedFeeList 与 ExcludedFeeList 的详细说明:

  • 理论上来说,IncludedFeeList 节点里面展示的税费,是包含在 TotalPrice 节点中的,例如 Tax and Fee,需要客人在线随着 TotalPrice 一起付款。ExcludedFeeList 结点里面展示的税费,是不包含在节点中的,例如 Resort Fee、City Fee 等等,这种一般是需要客人到达酒店后,直接付款给到酒店。
  • IncludedFee 以及 ExcludedFee 的信息一般来自 Dida 供应商或者酒店,并不是每一个酒店都会包含着两个节点。
  • 对于存在 IncludedFee 或者 ExcludedFee 的酒店,如果您需要在 Response 中看到这两个节点的信息,需要在 Dida 这边进行额外的配置后,才能看到,如果有需要,请联系您的专属 API 客户经理。
POST
https://api.didatravel.com/api/rate/pricesearch?$format=json

返回酒店的最低价

  • 使用地区码取到该地区酒店的最低价
    如果贵方需要使用 Destination filter, 您可能需要先做 city mapping。
    这是我们 不推荐 的用法。
    因为城市匹配其实是比酒店匹配要难得多。各个渠道或供应商在对地区码的大小级别的定义很难做到统一,总会有地区是匹配不上的。
    当您完成了酒店匹配后,您可以使用下面的方法以达到相同的目的,见 "Get hotel lowest price by specified hotel id list"。
    完成了酒店匹配后,您可以用贵方的 city code 取到道旅的 hotel id 列表,再将其作为 "HotelIDList" 输入。
    这样您可以绕过城市匹配这个难题,同时,也无须下载道旅的地区码了。
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "CheckInDate": "2023-08-26",
    "CheckOutDate": "2023-08-27",
    "Destination": {
        "CityCode": "602651"
    },
    "LowestPriceOnly": true,
    "Nationality": "CN",
    "Currency": "CNY"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <Destination CityCode="602651" />
    <CheckInDate>2023-08-26</CheckInDate>
    <CheckOutDate>2023-08-27</CheckOutDate>
    <Nationality>CN</Nationality>
    <LowestPriceOnly>true</LowestPriceOnly>
    <Currency>CNY</Currency>
</PriceSearchRequest>

  • 使用指定的酒店 id 列表取到酒店的最低价
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "CheckInDate": "2023-08-23",
    "CheckOutDate": "2023-08-24",
    "HotelIDList": [5982,11,7017,239133,1672],
    "LowestPriceOnly": true,
    "Nationality": "CN",
    "Currency": "USD"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>5982</HotelID>
        <HotelID>11</HotelID>
        <HotelID>7017</HotelID>
        <HotelID>239133</HotelID>
        <HotelID>1672</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-23</CheckInDate>
    <CheckOutDate>2023-08-24</CheckOutDate>
    <Nationality>CN</Nationality>
    <LowestPriceOnly>true</LowestPriceOnly>
    <Currency>USD</Currency>
</PriceSearchRequest>
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "CheckInDate": "2023-08-23",
    "CheckOutDate": "2023-08-24",
    "HotelIDList": [5982,11,7017,239133,1672],
    "LowestPriceOnly": true,
    "Nationality": "CN",
    "Currency": "USD"
}
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>5982</HotelID>
        <HotelID>11</HotelID>
        <HotelID>7017</HotelID>
        <HotelID>239133</HotelID>
        <HotelID>1672</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-23</CheckInDate>
    <CheckOutDate>2023-08-24</CheckOutDate>
    <Nationality>CN</Nationality>
    <LowestPriceOnly>true</LowestPriceOnly>
    <Currency>USD</Currency>
</PriceSearchRequest>



  • 拉取多酒店缓存报价,当多酒店搜索报价时推荐使用缓存(最多支持50家酒店)
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [76458,1250,512,251448,146962],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": false,
        "RoomCount": 1
    },
    "Currency": "USD",
    "Nationality": "CN"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>76458</HotelID>
        <HotelID>1250</HotelID>
        <HotelID>512</HotelID>
        <HotelID>251448</HotelID>
        <HotelID>146962</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">false</IsRealTime>
    <Currency>USD</Currency>
</PriceSearchRequest>

  • 拉取单酒店缓存报价
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [76458],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": false,
        "RoomCount": 1
    },
    "Currency": "USD",
    "Nationality": "CN"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>76458</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">false</IsRealTime>
    <Currency>USD</Currency>
</PriceSearchRequest>
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [76458],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": false,
        "RoomCount": 1
    },
    "Currency": "USD",
    "Nationality": "CN"
}
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>76458</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">false</IsRealTime>
    <Currency>USD</Currency>
</PriceSearchRequest>



  • 拉取多酒店实时报价
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [
        76458,1250,512,251448,146962
    ],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": true,
        "RoomCount": 1
    },
    "RealTimeOccupancy": {
        "AdultCount": 2,
        "ChildCount": 0,
        "ChildAgeDetails": []
    },
    "Currency": "USD",
    "Nationality": "CN"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>76458</HotelID>
        <HotelID>1250</HotelID>
        <HotelID>512</HotelID>
        <HotelID>251448</HotelID>
        <HotelID>146962</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">true</IsRealTime>
    <RealTimeOccupancy AdultCount="2" ChildCount="0">
        <ChildAgeDetails />
    </RealTimeOccupancy>
    <Currency>USD</Currency>
</PriceSearchRequest>

  • 拉取单酒店实时报价,当单酒店搜索报价时推荐使用这个。
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [
        512
    ],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": true,
        "RoomCount": 1
    },
    "RealTimeOccupancy": {
        "AdultCount": 2,
        "ChildCount": 0,
        "ChildAgeDetails": []
    },
    "Currency": "USD",
    "Nationality": "CN"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>512</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">true</IsRealTime>
    <RealTimeOccupancy AdultCount="2" ChildCount="0">
        <ChildAgeDetails/>
    </RealTimeOccupancy>
    <Currency>USD</Currency>
</PriceSearchRequest>

  • 如果入住人数中带有小孩,请参考下面的代码示例。请注意,Dida 理论上对于小孩的年龄不做任何的限制,支持 0 岁,如果有报价返回,说明支持您在 Request 发送的年龄的小孩入住。
{
	"Header": {
		"ClientID": "DidaApiTestID",
		"LicenseKey": "TestKey"
	},
	"HotelIDList": [512],
	"CheckInDate": "2023-08-01",
	"CheckOutDate": "2023-08-02",
	"IsRealTime": {
		"Value": true,
		"RoomCount": 1
	},
	"RealTimeOccupancy": {
		"AdultCount": 2,
		"ChildCount": 2,
		"ChildAgeDetails": [1, 2]
	},
	"Currency": "USD",
	"Nationality": "CN"
}
<PriceSearchRequest>
    <Header>
        <ClientID>DidaApiTestID</ClientID>
        <LicenseKey>TestKey</LicenseKey>
    </Header>
    <HotelIDList>
        <HotelID>512</HotelID>
    </HotelIDList>
    <CheckInDate>2023-08-01</CheckInDate>
    <CheckOutDate>2023-08-02</CheckOutDate>
    <Nationality>CN</Nationality>
    <IsRealTime RoomCount="1">true</IsRealTime>
    <RealTimeOccupancy AdultCount="2" ChildCount="2">
        <ChildAgeDetails>
			<ChildAge>1</ChildAge>
            <ChildAge>2</ChildAge>
		</ChildAgeDetails>
    </RealTimeOccupancy>
    <Currency>USD</Currency>
</PriceSearchRequest>

In the following example, the code parameters inside are modifiable.
Use the following method to test API:
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [
        512
    ],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": true,
        "RoomCount": 1
    },
    "RealTimeOccupancy": {
        "AdultCount": 2,
        "ChildCount": 2,
		"ChildAgeDetails": [1, 2]
    },
    "Currency": "USD",
    "Nationality": "CN"
}
In the following example, the code parameters inside are modifiable.
Use the following method to test API:
<PriceSearchRequest>
  <Header>
    <ClientID>DidaApiTestID</ClientID>
    <LicenseKey>TestKey</LicenseKey>
  </Header>
  <HotelIDList>
    <HotelID>512</HotelID>
  </HotelIDList>
  <CheckInDate>2023-08-01</CheckInDate>
  <CheckOutDate>2023-08-02</CheckOutDate>
  <Nationality>CN</Nationality>
  <IsRealTime RoomCount="1">true</IsRealTime>
  <RealTimeOccupancy AdultCount="2" ChildCount="2">
    <ChildAgeDetails>
      <ChildAge>1</ChildAge>
      <ChildAge>2</ChildAge>
    </ChildAgeDetails>
  </RealTimeOccupancy>
  <Currency>USD</Currency>
</PriceSearchRequest>
   [
    {
        "name": "Header",
        "description": "机构账号信息",
        "children": [
            {
                "name": "ClientID",
                "description": "机构账号"
            },
            {
                "name": "LicenseKey",
                "description": "机构账号密码"
            }
        ]
    },
    {
        "name": "Destination",
        "description": "用指定的 Region id 取指定地区每个酒店的最低价. 只用于 LowestPriceOnly=true 这个场景",
        "children": [
            {
                "name": "CityCode",
                "description": "Region code"
            }
        ]
    },
    {
        "name": "HotelIDList",
        "description": "HotelID 列表"
    },
    {
        "name": "CheckInDate",
        "description": "Check-indate"
    },
    {
        "name": "CheckOutDate",
        "description": "Check-outdate"
    },
    {
        "name": "Nationality",
        "description": "ISO 3166-1 alpha-2, 2个字母的地区代码. 如果不提供, 默认是 CN"
    },
    {
        "name": "LowestPriceOnly",
        "description": "是否只返回酒店最低价"
    },
    {
        "name": "IsRealTime",
        "description": "是否返回实时报价",
        "children": [
            {
                "name": "RoomCount",
                "description": "房间数量 filter, 这只是一个 filter, 返回报价的时候, 不会返回房间数量的总价. 默认最大值是 4, 如果你需要大于 4, 请联系我们, 不然有可能会收到 &#39;Incorrect room count&#39; 的报错"
            },
            {
                "name": "Value",
                "description": ""
            }
        ]
    },
    {
        "name": "RealTimeOccupancy",
        "description": "IsRealTime = true 时必填, 并且只在 IsRealTime = true 时此节点才有效。该字段仅仅是针对每间房的客人分布,不是指所有房间的客人。如果您需要调整每间房的客人分布,可以在下一步Price Confirm进行操作。",
        "children": [
            {
                "name": "ChildAgeDetails",
                "description": "儿童年龄列表。没有数字限制,哪怕填的是 80岁。只要报价有返回,就说明输入是合法的。"
            },
            {
                "name": "AdultCount",
                "description": "Adult count"
            },
            {
                "name": "ChildCount",
                "description": "Child count"
            }
        ]
    },
    {
        "name": "Currency",
        "description": "报价币种"
    }
]
Request Parameters
Header HeaderType
机构账号信息HeaderType
Destination PriceSearchRequestDestination
用指定的 Region id 取指定地区每个酒店的最低价. 只用于 LowestPriceOnly=true 这个场景PriceSearchRequestDestination
HotelIDList List<Int32> HotelID 列表List<Int32>
CheckInDate DateTime Check-indateDateTime
CheckOutDate DateTime Check-outdateDateTime
Nationality String ISO 3166-1 alpha-2, 2个字母的地区代码. 如果不提供, 默认是 CNString
LowestPriceOnly Boolean 是否只返回酒店最低价Boolean
IsRealTime PriceSearchRequestIsRealTime
是否返回实时报价PriceSearchRequestIsRealTime
RealTimeOccupancy PriceSearchRequestRealTimeOccupancy
IsRealTime = true 时必填, 并且只在 IsRealTime = true 时此节点才有效。该字段仅仅是针对每间房的客人分布,不是指所有房间的客人。如果您需要调整每间房的客人分布,可以在下一步Price Confirm进行操作。PriceSearchRequestRealTimeOccupancy
Currency String 报价币种String
Request Sample
{
    "Header": {
        "ClientID": "DidaApiTestID",
        "LicenseKey": "TestKey"
    },
    "HotelIDList": [
        512
    ],
    "CheckInDate": "2023-08-01",
    "CheckOutDate": "2023-08-02",
    "IsRealTime": {
        "Value": true,
        "RoomCount": 1
    },
    "RealTimeOccupancy": {
        "AdultCount": 2,
        "ChildCount": 0,
        "ChildAgeDetails": []
    },
    "Currency": "USD",
    "Nationality": "CN"
}
Request Sample
<PriceSearchRequest>
  <Header>
    <ClientID>DidaApiTestID</ClientID>
    <LicenseKey>TestKey</LicenseKey>
  </Header>
  <HotelIDList>
    <HotelID>512</HotelID>
  </HotelIDList>
  <CheckInDate>2023-08-01</CheckInDate>
  <CheckOutDate>2023-08-02</CheckOutDate>
  <Nationality>CN</Nationality>
  <IsRealTime RoomCount="1">true</IsRealTime>
  <RealTimeOccupancy AdultCount="2" ChildCount="0">
    <ChildAgeDetails />
  </RealTimeOccupancy>
  <Currency>USD</Currency>
</PriceSearchRequest>
   [
    {
        "name": "Error",
        "description": "",
        "children": [
            {
                "name": "Code",
                "description": "Erro rcode"
            },
            {
                "name": "Message",
                "description": "Error message"
            }
        ]
    },
    {
        "name": "Success",
        "description": "",
        "children": [
            {
                "name": "PriceDetails",
                "description": "Pricedetails",
                "children": [
                    {
                        "name": "CheckInDate",
                        "description": "Check-indate"
                    },
                    {
                        "name": "CheckOutDate",
                        "description": "Check-outdate"
                    },
                    {
                        "name": "HotelList",
                        "description": "HotelinfoCollection",
                        "children": [
                            {
                                "name": "HotelID",
                                "description": "Hotel ID"
                            },
                            {
                                "name": "HotelName",
                                "description": "Hotel Name"
                            },
                            {
                                "name": "Destination",
                                "description": "Hotel destination",
                                "children": [
                                    {
                                        "name": "CityCode",
                                        "description": "Citycode"
                                    }
                                ]
                            },
                            {
                                "name": "TotalPrice",
                                "description": "此报价计划的价格"
                            },
                            {
                                "name": "TotalSupplement",
                                "description": "已经废弃"
                            },
                            {
                                "name": "TotalPriceWithoutSupplement",
                                "description": "已经废弃"
                            },
                            {
                                "name": "LowestPrice",
                                "description": "酒店最低价",
                                "children": [
                                    {
                                        "name": "Currency",
                                        "description": "最低价币种"
                                    },
                                    {
                                        "name": "RatePlanID",
                                        "description": "RateplanID"
                                    },
                                    {
                                        "name": "Value",
                                        "description": "Lowest price"
                                    }
                                ]
                            },
                            {
                                "name": "RatePlanList",
                                "description": "Rateplan Collection",
                                "children": [
                                    {
                                        "name": "RoomOccupancy",
                                        "description": "跟 Request 里的 RealTimeOccupancy 对应",
                                        "children": [
                                            {
                                                "name": "ChildAgeDetails",
                                                "description": ""
                                            },
                                            {
                                                "name": "RoomNum",
                                                "description": "房间号, 从 1 开始"
                                            },
                                            {
                                                "name": "AdultCount",
                                                "description": ""
                                            },
                                            {
                                                "name": "ChildCount",
                                                "description": ""
                                            }
                                        ]
                                    },
                                    {
                                        "name": "RoomTypeID",
                                        "description": "RoomTypeID"
                                    },
                                    {
                                        "name": "RoomName",
                                        "description": "RoomName"
                                    },
                                    {
                                        "name": "RoomName_CN",
                                        "description": ""
                                    },
                                    {
                                        "name": "RatePlanID",
                                        "description": "RateplanID"
                                    },
                                    {
                                        "name": "RecommendIndex",
                                        "description": "RecommendIndex = 1 的时候,这个报价是我们推荐的"
                                    },
                                    {
                                        "name": "RatePlanName",
                                        "description": "Rateplan name"
                                    },
                                    {
                                        "name": "BedType",
                                        "description": "BedtypeID"
                                    },
                                    {
                                        "name": "BreakfastType",
                                        "description": "BreakfasttypeID. 已经过时了, 可以使用 MealType + MealAmount 组合. 当然, 这个字段的值会跟 MealType + MealAmount 保持一致。但有一种场景不一样。例如 入住 2 人, MealType = Breakfast, MealAmount = 1 (只含单早),此字段会表现为无早。如果人数跟餐数对不齐,就会认为是无早。"
                                    },
                                    {
                                        "name": "MaxOccupancy",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "InventoryCount",
                                        "description": "Inventory count. 仅供参考,不准的。供应商自身就无法提供准确的数字"
                                    },
                                    {
                                        "name": "RoomStatus",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "Currency",
                                        "description": "最低价币种"
                                    },
                                    {
                                        "name": "TotalPrice",
                                        "description": "Total booking price"
                                    },
                                    {
                                        "name": "PriceWithoutSupplement",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "PriceList",
                                        "description": "PriceinfoCollection",
                                        "children": [
                                            {
                                                "name": "Price",
                                                "description": "Price"
                                            },
                                            {
                                                "name": "InventoryCount",
                                                "description": "Inventory count. 仅供参考,不准的。供应商自身就无法提供准确的数字"
                                            },
                                            {
                                                "name": "StayDate",
                                                "description": "Staydate"
                                            },
                                            {
                                                "name": "MealType",
                                                "description": "MealType"
                                            },
                                            {
                                                "name": "MealAmount",
                                                "description": "关于餐型,Dida 有两个字段可以获取餐型信息。第一个是 BreakfastType,在 Response 里面,Dida 只返回是否含早或者不含早,不能显示具体的餐型份数,对于新开发 DidaAPI 的客户,不推荐使用这个字段。第二个是 MealType,在 Response 里面,不仅有 MealType 可以表示具体的餐型,还有 MealAmount 表示含餐的份数,如果您使用了 MealType,那么请一定要同时解析 MealAmount 字段,以免出现解析错误或者未来产生关于餐型份数的争议。 且理论上来说,MealAmount 的数量总是小于或者等于入住人数。例如,如果有两个客人入住,MealAmount 为 0,则表示不含早。MealAmount 为 1,表示只含1份早餐,这种情况是存在的,有些酒店2人入住,只包含1份免费早餐,如果需要2份早餐的话,另外一份需要在线或者到店额外付费购买。MealAmount 为 2,表示入住的2个人买,都含有早餐。"
                                            }
                                        ]
                                    },
                                    {
                                        "name": "RatePlanCancellationPolicyList",
                                        "description": "Cancellation policy info Collection",
                                        "children": [
                                            {
                                                "name": "FromDate",
                                                "description": "此取消政策生效的起始日期。注意了,是北京时间,不是酒店的当地时间"
                                            },
                                            {
                                                "name": "Amount",
                                                "description": "Cancellation penalty amount"
                                            }
                                        ]
                                    },
                                    {
                                        "name": "StandardOccupancy",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "IsOnRequest",
                                        "description": "是否是非即时确认的报价"
                                    },
                                    {
                                        "name": "IncludedFeeList",
                                        "description": "此报价包含了的税费,仅供参考。实现的时候不要再把此税费列表里的价格跟 TotalPrice 运算, TotalPrice 就已经包含.",
                                        "children": [
                                            {
                                                "name": "FeeTypeName",
                                                "description": "Fee type name"
                                            },
                                            {
                                                "name": "Currency",
                                                "description": "Fee Currency"
                                            },
                                            {
                                                "name": "Amount",
                                                "description": "Cancellation penalty amount"
                                            }
                                        ]
                                    },
                                    {
                                        "name": "ExcludedFeeList",
                                        "description": "此报价不包含的税费,这些税费是客人需要到酒店后付的。",
                                        "children": [
                                            {
                                                "name": "FeeTypeName",
                                                "description": "Fee type name"
                                            },
                                            {
                                                "name": "Currency",
                                                "description": "Fee Currency"
                                            },
                                            {
                                                "name": "Amount",
                                                "description": "Cancellation penalty amount"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "name": "LowestRateRatePlanInfo",
                                "description": "Lowest prie rateplan info",
                                "children": [
                                    {
                                        "name": "RatePlanID",
                                        "description": "RateplanID"
                                    },
                                    {
                                        "name": "BedType",
                                        "description": "BedtypeID"
                                    },
                                    {
                                        "name": "Breakfast",
                                        "description": "Lowest price breakfast type ID"
                                    },
                                    {
                                        "name": "MaxOccupancy",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "RatePlanName",
                                        "description": "Rateplan name"
                                    },
                                    {
                                        "name": "StandardOccupancy",
                                        "description": "已经废弃"
                                    },
                                    {
                                        "name": "RoomTypeID",
                                        "description": "RoomTypeID"
                                    },
                                    {
                                        "name": "RatePlanCancellationPolicyList",
                                        "description": "Cancellation policy info Collection",
                                        "children": [
                                            {
                                                "name": "FromDate",
                                                "description": "此取消政策生效的起始日期。注意了,是北京时间,不是酒店的当地时间"
                                            },
                                            {
                                                "name": "Amount",
                                                "description": "Cancellation penalty amount"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
]
Response Parameters
Error ErrorType
ErrorType
Success PriceSearchResponseSuccess
PriceSearchResponseSuccess
Response Sample
{
    "Success": {
        "PriceDetails": {
            "CheckOutDate": "2023-08-02 00:00:00",
            "CheckInDate": "2023-08-01 00:00:00",
            "HotelList": [
                {
                    "HotelID": 512,
                    "Destination": {
                        "CityCode": "179900"
                    },
                    "RatePlanList": [
                        {
                            "TotalPrice": 299.13,
                            "RoomStatus": 1,
                            "BreakfastType": 1,
                            "BedType": 2,
                            "RoomOccupancy": {
                                "ChildCount": 0,
                                "AdultCount": 2,
                                "RoomNum": 1
                            },
                            "PriceList": [
                                {
                                    "StayDate": "2023-08-01 00:00:00",
                                    "Price": 299.13,
                                    "MealAmount": 0,
                                    "MealType": 1
                                }
                            ],
                            "RatePlanCancellationPolicyList": [
                                {
                                    "Amount": 299.13,
                                    "FromDate": "2023-07-29T14:00:00+08:00"
                                }
                            ],
                            "StandardOccupancy": 2,
                            "InventoryCount": 5,
                            "MaxOccupancy": 2,
                            "Currency": "USD",
                            "RatePlanName": "Double Standard Floor 19-30F (28-31sqm)",
                            "RatePlanID": "1494507509528725623",
                            "RoomName": "Queen Room"
                        },
                        {
                            "TotalPrice": 299.97,
                            "RoomStatus": 1,
                            "BreakfastType": 1,
                            "BedType": 2,
                            "RoomOccupancy": {
                                "ChildCount": 0,
                                "AdultCount": 2,
                                "RoomNum": 1
                            },
                            "PriceList": [
                                {
                                    "StayDate": "2023-08-01 00:00:00",
                                    "Price": 299.97,
                                    "MealAmount": 0,
                                    "MealType": 1
                                }
                            ],
                            "RatePlanCancellationPolicyList": [
                                {
                                    "Amount": 299.97,
                                    "FromDate": "2023-07-28T00:00:00+08:00"
                                }
                            ],
                            "StandardOccupancy": 2,
                            "InventoryCount": 99,
                            "MaxOccupancy": 2,
                            "Currency": "USD",
                            "RatePlanName": "Double room",
                            "RatePlanID": "577357982090047961",
                            "RoomName": "Double Room"
                        },
                        {
                            "TotalPrice": 307.01,
                            "RoomStatus": 1,
                            "BreakfastType": 1,
                            "BedType": 3,
                            "RoomOccupancy": {
                                "ChildCount": 0,
                                "AdultCount": 2,
                                "RoomNum": 1
                            },
                            "PriceList": [
                                {
                                    "StayDate": "2023-08-01 00:00:00",
                                    "Price": 307.01,
                                    "MealAmount": 0,
                                    "MealType": 1
                                }
                            ],
                            "RatePlanCancellationPolicyList": [
                                {
                                    "Amount": 307.01,
                                    "FromDate": "2023-07-29T14:00:00+08:00"
                                }
                            ],
                            "StandardOccupancy": 2,
                            "InventoryCount": 16,
                            "MaxOccupancy": 2,
                            "Currency": "USD",
                            "RatePlanName": "Twin Standard Floor 19-30F (37sqm)",
                            "RatePlanID": "-1640554577150004365",
                            "RoomName": "Twin Room"
                        }
                    ],
                    "HotelName": "Cerulean Tower Tokyu Hotel"
                }
            ]
        }
    }
}
Response Sample
<PriceSearchResponse>
  <Success>
    <PriceDetails>
      <CheckInDate>2023-08-01</CheckInDate>
      <CheckOutDate>2023-08-02</CheckOutDate>
      <HotelList>
        <Hotel>
          <HotelID>512</HotelID>
          <HotelName>Cerulean Tower Tokyu Hotel</HotelName>
          <Destination CityCode="179900" />
          <RatePlanList>
            <RatePlan>
              <RoomOccupancy RoomNum="1" AdultCount="2" />
              <RoomName>Queen Room</RoomName>
              <RatePlanID>1494507509528725623</RatePlanID>
              <RatePlanName>Double Standard Floor 19-30F (28-31sqm)</RatePlanName>
              <BedType>2</BedType>
              <BreakfastType>1</BreakfastType>
              <MaxOccupancy>2</MaxOccupancy>
              <InventoryCount>5</InventoryCount>
              <RoomStatus>1</RoomStatus>
              <Currency>USD</Currency>
              <TotalPrice>299.13</TotalPrice>
              <PriceList>
                <PriceInfo>
                  <Price>299.13</Price>
                  <StayDate>2023-08-01</StayDate>
                  <MealType>1</MealType>
                  <MealAmount>0</MealAmount>
                </PriceInfo>
              </PriceList>
              <RatePlanCancellationPolicyList>
                <CancellationPolicy>
                  <FromDate>2023-07-29T14:00:00+08:00</FromDate>
                  <Amount>299.13</Amount>
                </CancellationPolicy>
              </RatePlanCancellationPolicyList>
              <StandardOccupancy>2</StandardOccupancy>
            </RatePlan>
            <RatePlan>
              <RoomOccupancy RoomNum="1" AdultCount="2" />
              <RoomName>Double Room</RoomName>
              <RatePlanID>577357982090047961</RatePlanID>
              <RatePlanName>Double room</RatePlanName>
              <BedType>2</BedType>
              <BreakfastType>1</BreakfastType>
              <MaxOccupancy>2</MaxOccupancy>
              <InventoryCount>99</InventoryCount>
              <RoomStatus>1</RoomStatus>
              <Currency>USD</Currency>
              <TotalPrice>299.97</TotalPrice>
              <PriceList>
                <PriceInfo>
                  <Price>299.97</Price>
                  <StayDate>2023-08-01</StayDate>
                  <MealType>1</MealType>
                  <MealAmount>0</MealAmount>
                </PriceInfo>
              </PriceList>
              <RatePlanCancellationPolicyList>
                <CancellationPolicy>
                  <FromDate>2023-07-28T00:00:00+08:00</FromDate>
                  <Amount>299.97</Amount>
                </CancellationPolicy>
              </RatePlanCancellationPolicyList>
              <StandardOccupancy>2</StandardOccupancy>
            </RatePlan>
            <RatePlan>
              <RoomOccupancy RoomNum="1" AdultCount="2" />
              <RoomName>King Room</RoomName>
              <RatePlanID>919428518517313278</RatePlanID>
              <RatePlanName>King Standard Floor 19-30F (34sqm)</RatePlanName>
              <BedType>2</BedType>
              <BreakfastType>1</BreakfastType>
              <MaxOccupancy>2</MaxOccupancy>
              <InventoryCount>16</InventoryCount>
              <RoomStatus>1</RoomStatus>
              <Currency>USD</Currency>
              <TotalPrice>307.01</TotalPrice>
              <PriceList>
                <PriceInfo>
                  <Price>307.01</Price>
                  <StayDate>2023-08-01</StayDate>
                  <MealType>1</MealType>
                  <MealAmount>0</MealAmount>
                </PriceInfo>
              </PriceList>
              <RatePlanCancellationPolicyList>
                <CancellationPolicy>
                  <FromDate>2023-07-29T14:00:00+08:00</FromDate>
                  <Amount>307.01</Amount>
                </CancellationPolicy>
              </RatePlanCancellationPolicyList>
              <StandardOccupancy>2</StandardOccupancy>
            </RatePlan>
            <RatePlan>
              <RoomOccupancy RoomNum="1" AdultCount="2" />
              <RoomName>Twin Room</RoomName>
              <RatePlanID>-1640554577150004365</RatePlanID>
              <RatePlanName>Twin Standard Floor 19-30F (37sqm)</RatePlanName>
              <BedType>3</BedType>
              <BreakfastType>1</BreakfastType>
              <MaxOccupancy>2</MaxOccupancy>
              <InventoryCount>16</InventoryCount>
              <RoomStatus>1</RoomStatus>
              <Currency>USD</Currency>
              <TotalPrice>307.01</TotalPrice>
              <PriceList>
                <PriceInfo>
                  <Price>307.01</Price>
                  <StayDate>2023-08-01</StayDate>
                  <MealType>1</MealType>
                  <MealAmount>0</MealAmount>
                </PriceInfo>
              </PriceList>
              <RatePlanCancellationPolicyList>
                <CancellationPolicy>
                  <FromDate>2023-07-29T14:00:00+08:00</FromDate>
                  <Amount>307.01</Amount>
                </CancellationPolicy>
              </RatePlanCancellationPolicyList>
              <StandardOccupancy>2</StandardOccupancy>
            </RatePlan>
          </RatePlanList>
        </Hotel>
      </HotelList>
    </PriceDetails>
  </Success>
</PriceSearchResponse>