| Element or @Attribute |
Data Type |
No. of occur |
Mandatory |
Example |
Description |
| OTA_HotelResRS |
datetime |
1 |
Y |
2016-09-01T13 :25 :42+07:00 |
Indicates the creation date and time of the message using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ss(+/-)hh:mm with time values using the 24 hour clock (e.g. 20 November 2016, 1:59:38 pm BKK becomes 2016-11-20T13:59:38+07:00). |
| @Timestamp |
|
|
|
|
|
| @ Version |
decimal, n.n |
1 |
Y |
0.1 |
For all OTA versioned messages, the version of the message is indicated by a decimal value. |
| @ xmlns |
string |
1 |
Y |
http://www.opentravel.org/OTA/2003/05 |
Namespace for the OTA payload message. |
| @ xmlns :xsi |
string |
1 |
Y |
http://www.w3.org/2001/XMLSchema-instance |
Namespace for XML schema-instance. |
| POS |
numeric length 8 |
1 |
Y |
123456 |
Unique identifier of Supplier. |
| Source |
|
|
|
|
|
| RequestorID |
|
|
|
|
|
| @ ID |
|
|
|
|
|
| @ ID_Context |
alpha length 4 |
1 |
Y |
IATA |
Used to identify the source of the identifier |
| @ Type |
OTA_CodeType |
1 |
Y |
18 |
Reference to the type of requestor. 18 = Other |
| @ URL |
String length 1 to 50 |
1 |
Y |
ChannelManager.com |
Used to identify the source url |
| Success |
|
[0..1] |
N |
|
Success element will appear in the response when the reservation confirmed and does not appear if the reservation fail. |
| HotelReservations |
datetime |
1 |
Y |
2016-09-01T13 :25 :42+07:00 |
Indicates the booking date and time using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ss(+/-)hh:mm with time values using the 24 hour clock (e.g. 20 November 2016, 1:59:38 pm BKK becomes 2016-11-20T13:59:38+07:00). |
| HotelReservation |
|
|
|
|
|
| @CreateDateTime |
|
|
|
|
|
| ResGlobalInfo |
|
[0..1] |
N |
|
ResGlobalInfo is a container for various information that affects the Reservation as a whole. These include global comments, counts, reservation IDs, loyalty programs, and payment methods |
| HotelReservationIDs |
|
1 |
Y |
|
Detail of hotel reservation contains various unique (ReservationID) and non- unique (ConfirmationID, CancellationID) identifiers that the trading partners associate with a given reservation |
| HotelReservationID |
|
|
|
|
|
| @ResID_Value |
string |
1 |
Y |
76104819 |
Suppliers booking ID |
|
length |
|
|
|
|
|
1 to 20 |
|
|
|
|
| @ResID_Type |
Numeric |
1 |
Y |
5 |
Reference to the type of requestor. 5 = Supplier booking ID |
| @ResID_Source |
string |
1 |
Y |
<supplier name> |
Source of booking, it is supplier name. |
|
length |
|
|
|
|
|
1 to 20 |
|
|
|
|
| TPA_Extensions |
|
[0..1] |
N |
|
Error element is an element for any fault occur and will be appear when reservation fail. |
| Error |
|
|
|
|
|
| @ Code |
string |
1 |
Y |
1001 |
Generic Agoda Error Code. |
|
length |
|
|
|
Refer to Appendix D |
|
1 to 50 |
|
|
|
|
| @ Description |
string |
1 |
Y |
Room Type 1234 Not Found |
Generic Agoda Error Message. |
|
length |
|
|
|
Refer to Appendix D |
|
1 to 250 |
|
|
|
|