Elements and Attributes

Get Product Request

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Request 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 must correspond with the time in the originating system and in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y5This number identifies a particular
request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
Criteria LanguageAlpha Lentgh 21YENLanguage in which the response will be returned. Language should be a valid language supported by Agoda. Refer to language list for languages available for use.
Property IdString Length 1-81Y123Every request must contain a valid property ID that partner has access to
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.

Get Product Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Result
Timestamp
Numeric1Y1454628391 (2016-02-04T23:26:31Z)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.
Property Id
String Length 1-81Y123Every request must contain a valid property ID that partner has access to
Property NameAlphaYSunshine Garden Resort
Property IdString Length 1-81Y123Every request must contain a valid property ID that partner has access to
CurrencyAlpha 31YTHB
LanguageAlpha Lentgh 21YENLanguage in which the response will be returned. Refer to language list for languages available for use.
Live_statusNumeric 0-11Y1 = active 0 = inactive
Occupancy_modelAlpha1YFull RateIn the 'Full Occupancy’ model there is single, double and full occupancy pricing – plus extra bed pricing based on room settings.
Rooms
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.
Room_nameAlphaunboundedYDeluxe
num_roomsNumeric Length 1-31Y52Total number of rooms for this room type set in Agoda extranet
num_personsNumeric Length 1-21YMaximum number of persons that can be accommodated in the room using existing room bedding.
num_childrenNumeric Length 11YMaximum number of children that can be accommodated in this room. This number is part of the total max occupancy number
total_personsNumeric Length 1-21YMaximum number of persons that can be accommodated in the room using existing room bedding and extra bed. Includes both adults and children.
num_extrabedNumeric Length 11YMaximum number of extra beds that accommodated in room. Each bed allows for 1 extra person.
num_baby_cotsNumeric Length 11YMaximum number of baby cots that accommodated in room.
min_rateNumeric Length 1-91YMinimum price for this room.
max_rateNumeric Length 1-91YMaximum price for this room.
rack_rateNumeric Length 1-91YRack rate for this room.
Rateplans
rateplan_id
Numeric 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.
rateplan_nameAlphaunboundedYBreakfast
master_rateNumeric Length 0-6unboundedY0 to 6If the Master rate=0 this is the master rate on which other rates can be based for discount. If the Master Rate is not =0, this is a child rate and it cannot be updated via Channel Manager. The Child Rate must derive the rate from the Master, the rate can be increased/decreased by amount/percentage from the Master Rate.
sell_startDate YYYY-MM-DDTHH:MM:SSunboundedYThe inclusive start date to sell this rate.
sell_endDate YYYY-MM-DDTHH:MM:SSunboundedYThe inclusive end date to sell this rate.
stay_startDate YYYY-MM-DDunboundedNThe inclusive start date to stay for this rate.
stay_endDate YYYY-MM-DDunboundedNThe inclusive end date to stay for this rate.
tax_includedNumeric Length 1unboundedY"0"= exc "1"= incTax settings information: the tax can be excluded (0) or included (1).
rate_typeAlphaunboundedYNet SellIf the rate type is Sell, it includes all commissions. If the rate type is Net, it excludes all commissions.
min_adv_daysNumeric Length 1-21NMinimum Days in advance that rate must be booked to be eligible for a specific rateplan. This attribute is returned in the response if min_adv_days is set at Rate Plan level.
max_adv_daysNumeric Length 1-21NMaximum Days in advance that rate must be booked to be eligible for a specific rateplan. This attribute is returned in the response if max_adv_days is set at Rate Plan level.
min_losNumeric length 1-21NMinimum length of stay that is required to search and book this room type. This attribute is returned in the response if min_los is set at Rate Plan level.
max_losNumeric length 1-21N5Maximum length of stay that is required to search and book this room type. This attribute is returned in the response if max_los is set at Rate Plan level.
cxl_codeString1YEach Agoda cancellation policy has a unique ID. This ID relates to this Agoda cancel policy. All cancellation policies contain 3 policy elements. Polices are set in order and policy 3 is always no-show policy and will list days as 0. The Policies value relates to a value or percentage
offertype_idNumeric Length 1-6YIt defines the type of offer active for a specific Rateplan.
offertype_nameAlphaYBreakfast
benefit_idNumeric Length 11 to 9Y5Denotes of all benefits to customer for a Rate Plan. Refer to benefits list for the full list of benefits available.
benefit_nameAlpha1 to 9YLunchRefer to benefits list for the full list of benefits available.
products
product 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 Rateplan 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.
channels
channel channel_id
Numeric Length 11Y1Channel represents product distribution channel. Channel in YCS5 is replacing the Rateplan in YCS4. Channles are aimed to expand or limit customer type and usually will have price discount or sale limitations:
1 Retail
2 Agoda Private Sale
6 Domestic
7 Mobile
8 Agoda Opaque
9 China
channel_nameAlpha1YRetail

Set Product Request

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Request
Timestamp
Numeric1Y1454628391 (2017-02-04T23:26:31Z)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 11Y8This number identifies a particular
request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
Criteria
Property Id
String Length 1-81Y123Every request must contain a valid agoda property ID. Every property has a unique ID in Agoda and partner must first be authorised by agoda to have access to the property ID.
currencyAlpha 31NTHBCurrency is optional attribute but it will be mandadatory if partner would like to set minimum rate in the request.
Room
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.
num_personsNumeric Length 1-2unboundedN1-30Maximum number of persons that can be accommodated in the room using existing bedding.
min_rateNumeric Length 1-9unboundedN200.0Minimum price for this room. Any value set for specified Room_id will restrict rate value set in SetAri call
Rateplan
Update
rateplan_id
Numeric 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.
min_losNumeric length 1-2unboundedN1 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’.
max_losNumeric length 1-2unboundedN0 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’.
min_adv_daysNumeric Length 1-2unboundedN0 to 90Minimum Days in advance that rate must be booked to be eligible for a specific rateplan. To remove MinAdv restriction, default value = ‘0’.
max_adv_daysNumeric Length 1-2unboundedN-1 to 90Maximum Days in advance that rate must be booked to be eligible for a specific rateplan.
To remove MinAdv restriction, default value = ‘-1’. Note: ‘0’ restricts the sale of rate plan to be same day as check in date.

Set Product Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Result
Timestamp
Numeric1Y1454628391 (2017-02-04T23:26:31Z)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.
success1NThis tag is returned when set product success without error.
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.
Error
code
Numeric Length 4unboundedNRefer to Error ListAgoda’s error code. Refer to Error List
Error
description
StringunboundedNRefer to Error ListAgoda’s error message. Refer to Error List