Agoda will send a cancellation request with a booking id to be cancelled to suppliers for cancel booking. Booking cancellations will be completed once Agoda received success response with cancellation number from suppliers.
Example OTA_CancelRQ
<OTA_CancelRQ Version="0.2" TimeStamp="2018-02-07T13:38:57+07:00" xmlns="http://www.opentravel.org/OTA/2003/05">
<POS>
<Source>
<RequestorID ID="96637800" ID_Context="IATA" Type="18" URL="Agoda.com"/>
</Source>
</POS>
<UniqueID ID="210466950" Type="4" ID_Context="Agoda"/>
<UniqueID ID="3414274153" Type="5" ID_Context="DHIL"/>
</OTA_CancelRQ>
Elements and Attributes
| OTA_CancelRQ | |||||
|---|---|---|---|---|---|
| Element or @Attribute | Data Type | No. of occur | Mandatory | Example | Description |
| OTA_CancelRQ | 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. |
| POS | numeric length 8 | 1 | Y | 96637800 | Unique identifier of the requestor. |
| Source | Agodas IATA ID is 96637800 | ||||
| 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 | Agoda.com | Used to identify the source url |
| UniqueID | 1 | Y | |||
| @ID | string | 1 | Y | 12345 | Requester will send both Agodas booking id or Supplier booking id which use for make booking. |
| length | |||||
| 1 to 20 | |||||
| @Type | numeric | 1 | Y | 4 | Reference to the type of requestor. |
| 4 = Agodas booking ID | |||||
| 5 = Suppliers booking ID | |||||
| @ID_Context | string length 1 to 50 | 1 | Y | agoda.com | Source of the booking id |
