OTA_CancelRS

This section will explain about description for element, attribute and example of request for make cancel response.

Example Success Response

<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="0.0" TimeStamp="2015-04-23T18:17:54.546+02:00">

<POS>


<Source>


<RequestorID ID="13244" ID_Context="IATA" Type="18" URL="ChannelManager.com"/> </Source>


</POS>


<Success/>


<UniqueID ID="0903" Type="10" ID_Context="AGODA"/>


<UniqueID ID="62025941" Type="14" ID_Context="AGODA"/>


<UniqueID ID="0903PE1500" Type="14" ID_Context="ChannelManager"/>


<UniqueID ID ="0903PE1500" Type="15" ID_Context="ChannelManager"/>


</OTA_CancelRS>

Example Fail Response

<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="0.0" TimeStamp="2015-04-23T18:17:54.546+02:00">

<POS>


<Source>


<RequestorID ID="13244" ID_Context="IATA" Type="18" URL="ChannelManager.com"/> </Source>


</POS>


<UniqueID ID="0903" Type="10" ID_Context="AGODA"/>


<UniqueID ID="62025941" Type="14" ID_Context="AGODA"/>


<UniqueID ID="0903PE1500" Type="14" ID_Context="ChannelManager"/>


<TPA_Extensions>


<Error Code="4001" Description="Reservation “0903PE1500” Not Found "/> </TPA_Extensions>


</OTA_CancelRS>

Elements and Attributes

OTA_CancelRS
Element or @AttributeData TypeNo. of occurMandatoryExampleDescription
OTA_CancelRSdatetime1Y2016-09-01T13 :25 :42+07:00Indicates 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
@ versiondecimal, n.n1Y0.1For all OTA versioned messages, the version of the message is indicated by a decimal value.
@ xmlnsstring1Yhttp://www.opentravel.org/OTA/2003/05Namespace for the OTA payload message.
POSnumeric length 81Y123456Unique identifier of Supplier.
Source
RequestorID
@ ID
@ ID_Contextalpha length 41YIATAUsed to identify the source of the identifier
@ TypeOTA_CodeType1Y18Reference to the type of requestor. 18 = Other
@ URLstring length1YChannelManager.comUsed to identify the source url
1 to 50
Success[0..1]NSuccess element will appear in the response when the cancellation confirmed and it does not appear if the cancellation fail.
UniqueID[0..4]N
@IDstring1YID meaning is depend on @Type
length@Type = 10:@ID = hotel code
1 to 20@Type = 14:@ID = reservation number
@Type = 15:@ID = cancellation number
@Typenumeric1Y10: hotel code
14: reservation number
15: cancellation number
@ID_Contextstring length 1 to 501Y
TPA_Extensions[0..1]NError element is an element for any fault occur and will be appear when cancellation fail.
Error
@ Codestring1Y4001Generic Agoda Error Code.
lengthRefer to Appendix D
1 to 50
@ Descriptionstring1YReservation “1234” Not FoundGeneric Agoda Error Message.
lengthRefer to Appendix D
1 to 250