Element and Attributes

Get BookingList 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 11Y3This number identifies a particular
request:
1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
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 booking query. The inclusive start (from) and end (to) date and time for the booking query. Time of reference is always UTC time zone +/- to identify other timezones. From date time cannot be older than 740 days. Date range allows up to 90 days per request.
statusAlpha1NAmendBookingDenotes the type of bookings to query. Options are:
ConfirmBooking
AmendBooking
CancelBooking
Property
Id
String Length1 to 20Y123Every 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. Maximum 5 property IDs can be queried in this GetBookingList request.

Get BookingList 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.
Properties
count
Numeric 1-51Y1Count indicates number of properties. In this request a maximum of 5 properties can be requested to retrieve the bookings.
Property
Id
String Length 1-201Y123Every request must contain a valid property ID that partner has access to
Booking
booking_id
Numeric Length 1-201Y4335173Agoda Booking ID for this booking. This must be used when sending GetBookingDetails request
booking_dateDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:39:00+07:00Date that booking was created on Agoda YCS5. Time of reference is always UTC time zone +/- to identify other timezones.
last_actionDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:47:33+07:00The last date that the booking was actioned: created/amended/cancelled. If booking is amended multiple times only the last amended date is listed here. Time of reference is always UTC time zone +/- to identify other timezones.
arrivalDate YYYY-MM-DD1Y10-4-2015The inclusive start date for the booking (check in date)
departureDate YYYY-MM-DD1Y10-5-2015The inclusive end date for the booking (check out date)
statusAlpha1YConfirmBookingDenotes the status type of bookings. Statuses are:
ConfirmBooking
AmendBooking
CancelBooking
acknowledge0 - 11Y0It defines if a booking is already acknowledged or not:
0= not acknowledge
1= acknowledged

Get BookingListV2 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 the XML was generated in the originating system in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y9This number identifies a particular request: 1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
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 booking query based on last action. The inclusive start (from) and end (to) date and time for the booking query. Time of reference is always UTC time zone +/- to identify other timezones. From date time cannot be older than 740 days. Date range allows up to 60 mins per request.
statusAlpha1NAmendBookingDenotes the type of bookings to query. Options are: ConfirmBooking AmendBooking CancelBooking
If no status specified, all booking status will be returned.
Result
Timestamp
Numeric11483526410357
(2017-01-04 10:40:10.357)
2015-09-15T12:39:00+07:00A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time the XML was generated in the originating system in EPOCH. System requires EPOCH timestamps in milliseconds.
Properties
count
Numeric 1-51Y1Count indicates number of properties.
Property
Id
String Length 1-201Y123Every request must contain a valid property ID that partner has access to and correspond with booking ID
Booking
booking_id
String Length 1-201Y10-5-2015Agoda Booking ID for this booking. This must be used when sending GetBookingDetails request
booking_dateAlpha1YConfirmBookingDate that booking was created on Agoda YCS5. Time of reference is always UTC time zone +/- to identify other timezones.
last_action0 - 11Y0It defines if a booking is already acknowledged or not:
0= not acknowledge
1= acknowledged
arrivalDate YYYY-MM-DD12016-10-05The inclusive start date for the booking (check in date)
departureDate YYYY-MM-DD12016-10-05The inclusive end date for the booking (check out date)
statusAlpha1ConfirmBookingDenotes the status type of bookings. Statuses are:
ConfirmBooking
AmendBooking
CancelBooking
acknowledge0 - 110It defines if a booking is already acknowledged or not:
0= not acknowledge
1= acknowledged

Get BookingListV2 Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Result
Timestamp
Numeric1Y1483526410357
(2017-01-04 10:40:10.357)
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred. Time the XML was generated in the originating system in EPOCH. System requires EPOCH timestamps in milliseconds.
Properties
count
Numeric 1-51Y1Count indicates number of properties.
Property
Id
String Length 1-201Y123Every request must contain a valid property ID that partner has access to and correspond with booking ID
Booking
booking_id
Numeric Length 1-201Y4335173Agoda Booking ID for this booking. This must be used when sending GetBookingDetails request
booking_dateDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:39:00+07:00Date that booking was created on Agoda YCS5. Time of reference is always UTC time zone +/- to identify other timezones.
last_actionDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:47:33+07:00The last date that the booking was actioned: created/amended/cancelled. If booking is amended multiple times only the last amended date is listed here. Time of reference is always UTC time zone +/- to identify other timezones.
arrivalDate YYYY-MM-DD1Y10-4-2015The inclusive start date for the booking (check in date)
departureDate YYYY-MM-DD1Y10-5-2015The inclusive end date for the booking (check out date)
statusAlpha1YConfirmBookingDenotes the status type of bookings. Statuses are:
ConfirmBooking
AmendBooking
CancelBooking
acknowledge0 - 11Y0It defines if a booking is already acknowledged or not:
0= not acknowledge
1= acknowledged

Get BookingDetails 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 the XML was generated in the originating system in EPOCH. System requires EPOCH timestamps in milliseconds.
TypeNumeric Length 11Y4This number identifies a particular request: 1 SetAri
2 GetAri
3 GetBookingList
4 GetBookingDetail
5 GetProduct
8 SetProduct
9 GetBookingListV2
Criteria
Language
Alpha Lentgh 21YENLanguage in which the response will be returned. If the language is not correct, the response will return a warning and the response in English. Refer to language list for languages available for use.
Property
Id
String Length 1-201N123Every 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.
booking_idNumeric Length 1-2011 to 50Y4335173Agoda Booking ID for this booking. This ID is required when sending GetBookingDetails request and maximum number of booking id that can be set in this request is 50.

Get BookingDetails Response

Element / Attribute
Data Type
Occurs
Required
Examples
Description
Result
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 the XML was generated in the originating system in EPOCH. System requires EPOCH timestamps in milliseconds.
Bookings
count
Numeric 1-501Y1Count indicates number of bookings returned for the requested property.
iataidNumeric1Y96637800Lists Agoda IATA number.
Booking
Property Id
String Length 1-20unboundedN123Agoda property ID. If booking ID is not returned, invalid Booking ID was not found against property ID in Request.
property_nameAlpha1YSunshine Garden ResortAgoda Booking ID for this booking. This must be used when sending GetBookingDetails request
booking_idNumeric Length 1-201Y4335173
booking_dateDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:39:00+07:00Date that booking was created on Agoda YCS. Time of reference is always UTC time zone +/- to identify other timezones.
last_actionDatetime YYYY-MM-DD HH:MM:SS1Y2015-09-15T12:47:33+07:00The last date that the booking was changed/amended. If booking is amended multiple times only the last amended date is listed here. Time of reference is always UTC time zone +/- to identify other timezones.
arrivalDate YYYY-MM-DD1Y2015-04-24The inclusive start date for the booking (check in date)
departureDate YYYY-MM-DD1Y2015-04-25The inclusive end date for the booking (check out date)
statusAlpha1YConfirmBookingDenotes the status type of bookings. Statuses are:
ConfirmBooking
AmendBooking
CancelBooking
acknowledge0 - 11Y0It defines if a booking is already acknowledged or not:
0= not acknowledged
1= acknowledged
room_idNumeric Length 1-201Y72027This is the Agoda room ID related to the property inventory element in the YCS API version 5. 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_typeAlpha1YDeluxe
channel_idNumeric Length 11Y1Channels in YCS5 are replacing the Rateplan in YCS5. Channels 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
rateplan_idNumeric Length 1-61Y1 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_nameAlpha1NBreakfast
promotion_idNumeric Length 11N1184215Defines the ID related to a Promotion activate on a specific rateplan.
promotion_nameAlpha1NEarly Booking Saver Rate includes 15% discount!
room_countNumeric Length 11Y1Number of rooms booked in the same booking ID.
adultsNumeric Length 11Y2Number of Adults booked in booking. If multiple rooms are booked this number will be total adults for all bookings
childrenNumeric Length 11Y1Number of Children booked in booking. If multiple rooms are booked this number will be total adults for all bookings
extrabedsNumeric Length 11Y1Lists the number of extra beds that are booked in the booking. Any extra bed costs will be listed in the price type = "Extrabed".
cxl_codeString1Y1D1N_1N
= cancell within 1 day 1 night charge, no show 1 night charge
365D100P_100P
= non refundable
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
customer
first_name
String1YMaryThe first name of the guest for the booking
last_nameString1YWongThe last name of the guest for the booking
nationalityString1YThailandThe nationality of the guest making the booking
emailString1N[email protected]The email address of Agoda messaging service used to facilitate communication between guest and property up to 50 characters
phoneString1N0811234567The phone number of guest if ‘customer info’ is activated for the property
benefits
benefit benefit_id
Numeric Length 11 to 9N5Denotes of upto 5 benefits linked to the Rate Plan booked. Refer to benefits list for the full list of benefits available.
benefit_nameAlpha1 to 9NLunchDenotes of upto 5 benefits linked to the Rate Plan booked. Refer to benefits list for the full list of benefits available.
requests
request request_name
AlphaunboundedNNonSmokeDenotes of special requests the customer can ask when create a booking:
NonSmoke
LateCheckIn
EarlyCheckIn
HighFloor
LargeBed
TwinBeds
AirportTransfer:{0}
AdditionalNotes:{0}
FlightNo:{0}
ArrivalFlightNo:{0}
DepartFlightNo:{0}
payment
card_type
Alpha1NMastercardCredit card type for booking – will always show as Mastercard for all bookings as this is the Agoda card type for UPC card.
card_numberNumeric Length 161N503444796022XXXXNumber of the Agoda UPC (Unique Plastic Card) used by the property to debit the amount of the booking.
card_nameAlpha1NAgoda Company Pte Ltd.Name on credit card. For all bookings will show ‘Agoda Pte Ltd.’
card_expDate MM/YYYY1N10/2017Credit card expiry date
card_cvvNumeric1N170Credit card CCV number
card_effective_dateDate MM/YYYY1N10/2017Credit card Effective Date. If you would like this attribute to appear in the API response, kindly contact Agoda Connectivity Support for further assistance.
card_current_balanceNumeric nnn.nn1N763.27Credit card Current Balance. If you would like this attribute to appear in the API response, kindly contact Agoda Connectivity Support for further assistance.
card_future_balanceNumeric nnn.nn1N763.27Credit card Future Balance. If you would like this attribute to appear in the API response, kindly contact Agoda Connectivity Support for further assistance.
card_currency_codeAlpha 31NUSDCredit card currency code. If you would like this attribute to appear in the API response, kindly contact Agoda Connectivity Support for further assistance.
card_is_vccboolean1NTRUE or 1Is Virtual credit card (VCC). If you would like this attribute to appear in the API response, kindly contact Agoda Connectivity Support for further assistance.
prices
currency
Alpha 31Y763.27Denotes type of rates is returned in the GetBookingDetails response.
Net inc = net exc + taxes + fees
net_inclusive_amtNumeric nnn.nn1Y763.27Denotes type of rates is returned in the GetBookingDetails response. Net inc = net exc + taxes + fees
net_exclusive_amtNumeric nnn.nn1N693.88Net exc = net price without taxes and commission
sell_inclusive_amtNumeric nnn.nn1N919.60Sell inc = net exc + taxes + fees + commissions
sell_exclusive_amtNumeric nnn.nn1N836.00Sell exc = net exc + commissions
tax_amtNumeric nnn.nn1N69.39
fees_amtNumeric nnn.nn1N0.00
refsell_amtNumeric nnn.nn1N919.60Refsell = net exc + taxes + fees + commissions + mandatory surcharge
type1NCancellationDenotes the type of attribute the charge is referred to. Types are:
Room
Surcharge
Extrabed
Cancellation
Other
paymentmodelNumeric0 to 1N1Payment model will be returned for channel manager participated Property Collect. Payment model can be 1 or 2
1 = Merchance booking (Agoda Collect)
2 = Agency booking (Property Collect)