Price and Restrictions

The distributor fetches pricing and restrictions for a period of time,The returned result is an array, and the index sequence corresponds to the date

Request Method#

POST

uri: /ari/daily/offers

Content-Type: application/json


Request parameter description#

RequestHeader#

Common Request Header[Reference]

RequestBody#

ParameterTypeRequiredMaximum lengthExample
hotelIdStringY3212 * * 567
startDateDateY-2021-10-01
endDateDateY-2021-10-02
checkinTypeStringY16DAY
productCandidatesList<ProductCandidate>N-
echoTokenStringN647550f7497b2d4dd9beea83cd2fe8cd74

ProductCandidate#

ParameterTypeRequiredMaximum lengthExampleDescription
roomTypeCodeStringY64DR1
rateCodeStringY64Base-NTRRateCode

Response parameter description#

Common Response Parameters[Reference]

content#

ParameterTypeRequiredMaximum lengthExample
hotelIdStringY3212**567
startDateDateY-2021-10-01
endDateDateY-2021-10-02
dailyOffersList<DailyOffers>Y-

DailyOffers#

ParameterTypeRequiredMaximum lengthExampleDescription
roomTypeCodeStringY64DR1
rateCodeStringY64Base-NTRrateCode[Reference]
currencyCodeStringY8CNYThe currency corresponding to the price, refer to international standards: ISO-4217
ratesList<RateInfo >Y-Including endDate, daily pricing information
mealPlanTypeStringY8Meal Type
mealPlanCountsList<Integer>Y-Daily quantity of corresponding catering type
restrictionRestrictionInfoY-Contains information on endDate, daily restrictions
guaranteePoliciesList<GuaranteePolicy >Y-Including endDate, guarantee policy, in accordance with the rules of the scheduled check-in day to place an order
cancelPoliciesList<CancelPolicy >Y-Including endDate, cancellation policy, according to the rules of the scheduled check-in day to place an order

RateInfo#

ParameterTypeRequiredMaximum lengthExampleDescription
rackRateList<BigDecimal>N-[ 110, 130]BAR Rate, Best Available Rate Prcing, may be empty
amountBeforeTaxList<BigDecimal>N-[ 100, 120]Price excluding tax
amountAfterTaxList<BigDecimal>Y-[ 100, 130]Price including tax
maxAdultCountIntegerY-1For the maximum number of people, if only the return maxAdultCount is 3, the price of 1 2 people is the same as that of 3; if the return maxAdultCount is 1 2 3, the price of the corresponding number of people is taken
maxChildCountIntegerN-2The maximum number of children. null indicates no limit
childAgesList<Integer>N-List of length 2

GuaranteePolicy#

ParameterTypeRequiredMaximum lengthExampleDescription
codeStringY32Guarantee policy codeEnumeration Dictionary

CancelPolicy#

ParameterTypeRequiredMaximum lengthExampleDescription
codeStringY64Cancel policy code, Reference code rules

RestrictionInfo#

Reference Description Example:Restriction sample

ParameterTypeRequiredMaximum lengthExampleDescription
closeList<Boolean>Y-Open/Close stay restrictions, true: close, false: open
minStayArrivalList<Integer>Y-Minimum Length of Stay on Arrival stay restrictions
maxStayArrivalList<Integer>Y-Maximum Length of Stay on Arrival stay restrictions
minStayThroughList<Integer>Y-Minimum Length of Stay Through stay restrictions
maxStayThroughList<Integer>Y-Maximum Length of Stay Through stay restrictions
minAdvanceDayList<Integer>Y-Minimum number of Advance booking days on Arrival stay restrictions
maxAdvanceDayList<Integer>Y-Maximum number of Advance booking days on Arrival stay restrictions
ctaList<Boolean>y-Close to Arrival on arrival day, true: Active, false: Inactive
ctdList<Boolean>Y-Close to Departure on departure day, true: Active, false: Inactive
FplosList<String>Y-Full pattern length of stay, the restrictions are stored up to 31 bits per day, null or empty string indicates no limit

ResponseCode#

exception codeexception typedescription
1000Success
4201Invalid hotel IdHotel ID does not exist
4202Hotel is closedHotel closed
4203Start date and end date does not match the rulesStart end date does not comply with the rules
4204End date is invalidInvalid end date
4205Start date is invalidInvalid start date
4206No match foundNo data found matching criteria
4207Unexpected results of querying price and sales restrictionsUnexpected results for price and restrictions
OtherGlobal Exception CodeGlobal Exception Code[Reference]

Message example#

Case1: Inquire about hotels ARI#

Request Example#

{
"hotelId":"12**567",
"startDate":"2021-10-06",
"endDate":"2021-10-07",
"checkinType":"DAY"
}

Response Success Example#

{
"code":1000,
"content":{
"hotelId":"12**567",
"startDate":"2021-10-06",
"endDate":"2021-10-07",
"dailyOffers":[
{
"roomTypeCode":"ERX1",
"rateCode":"Base-NTR",
"currencyCode":"CNY",
"rates":[
{
"maxAdultCount":2,
"rackRate":[
330,
330
],
"amountAfterTax":[
328,
328
],
"amountBeforeTax":[
309,
309
]
}
],
"mealPlanType":"BB",
"mealPlanCounts":[
1,
1
],
"guaranteePolicies":[
{
"code":"PL"
},
{
"code":"PN"
}
],
"cancelPolicies":[
{
"code":"AD0_0"
},
{
"code":"AD100_6PM0D1N_1N"
}
],
"restriction":{
"close":[
false,
false
],
"cta":[
false,
false
],
"ctd":[
false,
false
],
"maxAdvanceDay":[
999,
999
],
"maxStayArrival":[
999,
999
],
"maxStayThrough":[
0,
0
],
"minAdvanceDay":[
3,
3
],
"minStayArrival":[
5,
5
],
"minStayThrough":[
0,
0
],
"fplos": [
"0000000",
"1110111"
]
}
}
]
}
}

Response Failure Example#

{
"code":4206,
"message":"No match found"
}