Availability and Rates Element and Attribute

Set Ari Request

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Request
Timestamp
Numeric1Y1483526410357
(GMT: Wed, 04 Jan 2017 10:40:10.357)
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time provided must correspond with the time in the originating system and in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y1This number identifies a particular
request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
10 SetAriV2
Criteria
Property Id
String Length 1-81Y123Every request must contain a valid property ID that partner has access to. Every property has a unique ID in Agoda and every Channel Manager partner has to have the access to this specific property via an authorized API key.
Inventory
Update room_id
Numeric Length 1-8unboundedY72027This is the Agoda room ID related to the property inventory element. Agoda active Room IDs can be returned with Getproduct request. If no room is specified in the request, all active Rooms will be returned in the response.
date_range from toDate YYYY-MM-DDunboundedY2016-04-02Date Range information for request. From = inclusive start date for the inventory request To = inclusive end date for the inventory request
dowNumeric Length 1-71 to 7N1Denotes the day of the week which needs to be updated via the SetAri request:
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday
Note: DOW can only be used in conjunction with date_range
allotmentNumeric length 1-31Y2Controls if room type is open for sale or closed to sale. Close will stop room type regular inventory being sold even if inventory is available. Guaranteed inventory is still available for sale if close is applied.
Restrictions
closed
boolean1YTRUE or 1Controls if room type is open for sale or closed to sale. Close will stop room type regular inventory being sold even if inventory is available. Guaranteed inventory is still available for sale if close is applied.
ctdboolean1NFALSE or 0Set to make room type open for departure for this date or closed for departure on this date. Customer can still stay through this date if they depart on future date. Not mandatory and if element not sent, Close to Departure status in extranet remains same as current.
ctabooleanNFALSE or 0Set to make room type open for arrival for this date or closed for arrival on this date. Customer can still stay through this date if they arrive on past date. Not mandatory and if element not sent, Close to Arrival status in extranet remains same as current.
Rate
Update room_id
Numeric Length 1-8unboundedY72027This is the Agoda room ID related to the property inventory element. Agoda active Room IDs can be returned with Getproduct request. If no room is specified in the request, all active Rooms will be returned in the response.
Rateplan_idNumeric Length 1-6unboundedY1 to 6This is the Agoda Rateplan ID related to a particular offer active on a room. Agoda active Rate Type IDs can be returned with Getproduct request. If no Rateplan ID is specified in the request, all active Rateplans will be returned in the response.
Date_values valueDate YYYY-MM-DD1 to 31YMaximum 31 date values can be set in the request. Alternatively, the date_range from/to can be used at this point of the request.
prices
currency
Alpha 31YTHBThe Currency must match with the property currency.
Normal Default
Numeric Length 1-91N250.0The rate is applied to all occupancies
Normal Occupancy PersonNumericunboundedN300.0Number of occupancies the price will applied to.
Normal Occupancy PriceNumeric Length 1-9unboundedN350.0The price for the specified occupancy.
deviation base_priceNumeric Length 1-91N400.0This price is use as the base for the deviation (amount or percentage) of each occupancy.
deviation occupancy percentageNumeric Lenght 1-9unboundedN10The deviation in percentage for the specified occupancy.
deviation occupancy ammountNumeric Lenght 1-9unboundedN10.0/td> The deviation in ammount for the specified occupancy.
Extra bedNumeric nnn.nn1N100.0/td> This rate is used as the extra bed rate and is available to all hotel occupancy models. ‘0’ extra bed rate indicates extra bed is not available for sale for the specified room, rateplan and date (closed for sale). Extra bed rate can only be set if num_extrabed is set to ‘1’ or more.
child_rates
child_rate price
Numeric nnn.nnunboundedN200.0This is the rate amount for the child pricing for the specific age band. ‘0’ child price rate indicates the child will not be charged for the specified room, rateplan and date.
child_rate age_band_codeNumericunboundedN2This is the code used to uniquely identify the child age band.
Restrictions
closed
boolean1NTRUE or 1Controls if room type is open for sale or closed to sale. Close will stop room type regular inventory being sold even if inventory is available. Guaranteed inventory is still available for sale if close is applied. Not mandatory and if element not sent, close out status in extranet remains same as current.
ctdboolean1NFALSE or 0Set to make rate type open for departure for this date or closed for departure on this date. Customer can still stay through this date if they depart on future date. Not mandatory and if element not sent, Close to Departure status in extranet remains same as current.
ctaboolean1NFALSE or 0Set to make rate type open for arrival for this date or closed for arrival on this date. Customer can still stay through this date if they arrive on past date. Not mandatory and if element not sent, Close to Arrival status in extranet remains same as current.
LOS
min
Numeric length 1-21N1 to 99Minimum length of stay that is required to search and book this room type. MinLOS cannot be greater than maxLOS. To remove minLOS restriction, default value = ‘1’.
maxNumeric length 1-21N0 to 99Minimum length of stay that is required to search and book this room type. MaxLOS cannot be less than minLOS. To remove maxLOS restriction, default value = ‘0’.
ADVANCE PURCHASE
min
Numeric length 1-30N0 to 365Minimum Advance Purchase that is required to search and book this room type. To remove min Advance Purchase restriction, default value = ‘0’.
maxNumeric length 1-30N0 to 365Maximum Advance Purchase that is required to search and book this room type. To remove max Advance Purchase restriction, default value = ‘0’.
STAYTHROUGH
min
Numeric1N0 to 30Minimum length of stay that is required to search and book this room type for stay through. Not mandatory and if element not sent, Min stay through remains same as current.
To remove min stay through restriction, set min = ‘0’.

Set Ari Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Result
TUID
String length 131Y89f66310-6718-11e5-b298-0758c951ac41A Track Unique Identifier (TUID) is an identifier which is guaranteed to be unique and it has a specific tracking purpose.
TimestampNumeric1Y1483526410357
(GMT: Wed, 04 Jan 2017 10:40:10.357)
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time provided will correspond with the time in the originating system and in EPOCH.
System requires EPOCH timestamps in milliseconds.

Get Ari Request

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Request
Timestamp
Numeric1Y1483526410357
(GMT: Wed, 04 Jan 2017 10:40:10.357)
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time provided must correspond with the time in the originating system and in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y2This number identifies a particular request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
10 SetAriV2
Criteria
from to
Datetime YYYY-MM-DD HH:MM:SS1Y2015-09-01T00:00:00+07:00The inclusive start (from) and end (to) date and time for the query. Time of reference is always UTC time zone +/- to identify other timezones. The date range cannot be longer than 31 days.
Property
Id
String Length 1-81 to 5Y123Every request must contain a valid property ID that partner has access to. Every property has a unique ID in Agoda and every Channel Manager partner must have the access to this specific property via an authorized API key. Maximum 5 property IDs can be queried in this GetARI request.
Room_idNumeric Length 1-81N85236This is the Agoda room ID related to the property inventory element. Agoda active Room IDs can be returned with Getproduct request. If no room is specified in the request, all active Rooms will be returned in the response.
Rateplan_idNumeric Length 1-61N24468This is the Agoda Rateplan ID related to a particular offer active on a room. Agoda active Rate Type IDs can be returned with Getproduct request. If no Rateplan ID is specified in the request, all active Rateplans will be returned in the response.
TypeAlpha1NInventoryThe type in the criteria>>request can be one of the following:
rate
inventory
both

Get Ari Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Request
Timestamp
Numeric1Y1483526410357
(GMT: Wed, 04 Jan 2017 10:40:10.357)
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time provided must correspond with the time in the originating system and in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y2This number identifies a particular request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
10 SetAriV2
Criteria
from to
Datetime YYYY-MM-DD HH:MM:SS1Y2015-09-01T00:00:00+07:00The inclusive start (from) and end (to) date and time for the query. Time of reference is always UTC time zone +/- to identify other timezones. The date range cannot be longer than 31 days.
Property
Id
String Length 1-81 to 5Y123Every request must contain a valid property ID that partner has access to. Every property has a unique ID in Agoda and every Channel Manager partner must have the access to this specific property via an authorized API key. Maximum 5 property IDs can be queried in this GetARI request.
Room_idNumeric Length 1-81N85236This is the Agoda room ID related to the property inventory element. Agoda active Room IDs can be returned with Getproduct request. If no room is specified in the request, all active Rooms will be returned in the response.
Rateplan_idNumeric Length 1-61N24468This is the Agoda Rateplan ID related to a particular offer active on a room. Agoda active Rate Type IDs can be returned with Getproduct request. If no Rateplan ID is specified in the request, all active Rateplans will be returned in the response.
TypeAlpha1NInventoryThe type in the criteria>>request can be one of the following:
rate
inventory
both