Hotel Policy Rooms and More Delete
Supply the universal profile ID of the agency from which you wish to delete Rooms and More locations (this will delete all configured location for the specified agency).
Sample Hotel Policy Rooms and More Delete request data
xmlns:v1="http://www.travelport.com/schema/policy/admin/roomsandmore/v1"
<v1:performCRUDRQ>
<v1:BasePolicyRequestHeader source="Web" requestorId="DaveS" accountId="451698" requestCategory="Delete"/>
</v1:performCRUDRQ>
The following elements are supplied in a Delete request:
performCRUDRQ / BasePolicyRequestHeader (requestCategory = Delete)
Sample Hotel Policy Rooms and More Delete response data
xmlns:ns4=http://www.travelport.com/schema/policy/admin/roomsandmore/v1
xmlns:ns5="http://www.travelport.com/schema/policy/admin/common/v1
<ns4:performCRUDRS>
<ns4:BasePolicyResponseHeader accountId="451698" requestorId="DaveS"/>
<ns5:AdditionalMessage iD="0" status="Processed">
<ns5:Element iD="0" name="Rooms And More" status="Processed">
<ns5:SubElement iD="451698" name="Rooms And More" status="Processed">All Records Deleted</ns5:SubElement>
</ns5:Element>
</ns5:AdditionalMessage>
<ns4:GeoTRMSummary/>
</ns4:performCRUDRS>
The following elements are found in a Delete response:
performCRUDRS / BasePolicyResponseHeader
AdditionalMessage – overall status of the response
attribute: iD –“0” / not used on a Rooms and More Delete
attribute: status – will be either “Processed” or “Failure”.
Element – wrapper for a grouping of response items
attribute: iD –“0” / not used on a Rooms and More Delete
attribute: name – name of the wrapper tag to which this response element applies (Rooms And More)
attribute: status – overall status of this particular grouping - will be either “Processed” or “Failure”
SubElement – individual response for an item within the grouping – value will contain All Records Deleted if the request was successful.
attribute: iD – usage depends on the type of SubElement being returned. Rooms And More = the ID of the Agency from which Rooms and More locations were deleted.
attribute: name – name of the wrapper tag to which this response element applies (Rooms And More).
attribute: status – overall status of this particular element - will be either “Processed” or “Failure”
Considerations for a Hotel Policy Rooms and More Delete
A valid response will return status information in the AdditionalMessage section.
Sample Request and Response
See the Downloads page to download a zip file containing the following XML files.
Sample request:
HotelPolicyTRMDeleteRQ.xml
Sample response:
HotelPolicyTRMDeleteRS.xml