Air Policy Delete

Supply the universal profile ID of the account the air policy exists in and the Air Policy ID of the Air Policy you wish to delete.

Sample Air Policy Delete request data

xmlns:v1="http://www.travelport.com/schema/policy/admin/air/v1"
<v1:performCRUDRQ>
         <v1:BasePolicyRequestHeader accountId="749538" requestCategory="Delete" requestorId="DAVES" source="Web"/>
         <v1:AirPolicyRequestProfile policyId="100611"/>
</v1:performCRUDRQ>

The following elements are supplied in a Delete request:

performCRUDRQ / BasePolicyRequestHeader (requestCategory = Delete)

AirPolicyRequestProfile
attribute: policyId – Policy DB id of the Air Policy to be deleted

Sample Air Policy Delete response data

xmlns:ns2= http://www.travelport.com/schema/policy/admin/air/v1
xmlns:ns4= http://www.travelport.com/schema/policy/admin/common/v1
<ns2:performCRUDRS>
         <ns2:BasePolicyResponseHeader accountId="749538" requestorId="DAVES"/>
         <ns4:AdditionalMessage iD="100611" status="Processed">
            <ns4:Element iD="0" name="Policy" status="Processed">
               <ns4:SubElement iD="100611" name="Policy" status="Processed">Success</ns4:SubElement>
            </ns4:Element>
         </ns4:AdditionalMessage>
</ns2:performCRUDRS>

The following elements are found in a Delete response:

performCRUDRS / BasePolicyResponseHeader

AdditionalMessage – overall status of the response
attribute: iD – Policy DB id of the Air Policy for which the delete request was made
attribute: status – will be either “Processed” or “Failure”.

Element – wrapper for response information for a particular element – will contain a list of sub elements processed for this particular tag
attribute: iD – “0” / not used on an Air Policy Delete
attribute: name – name of element this information is for (Policy)
attribute: status – will be either “Processed” or “Failure”

SubElement – value Success (can also be the message associated with a failure)
attribute: iD – Policy DB id of the Air Policy for which the delete request was made
attribute: name – name of element this information is for (Policy)
attribute: status – will be either “Processed” or “Failure”

Considerations for an Air Policy 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:

AirPolicyDeleteRQ.xml

Sample response:

AirPolicyDeleteRS.xml