Delete Custom Rule API Reference

Del

book/customrule/customrules/{workbenchID}/?RuleRecordSequence={XYZ}

For {workbenchID} send the workbench identifier returned in ReservationResponse/Identifer/value in the workbench create response.

Base path:

Pre-production https://api.pp.travelport.com/11/air/

Production https://api.travelport.com/11/air/

Related Content: Custom Rules Guide

Send the Delete Custom Rule request to delete one or all custom rules from a reservation. Send it as part of a workbench session, either during the initial bookingClosed A confirmed reservation with the carrier. A held booking is a reservation that has not yet been ticketed. The terms booking and reservation are interchangeable. workflow after an offerClosed In the JSON Search APIs, an offer is a product available at a specific price under a set of terms and conditions. An offer includes the flight or connecting flights for one leg of the itinerary, plus a service level that includes the cabin class and any fare codes that may apply. At booking, the selected offer from the Search response - including the flight/s, service level, price, terms and conditions, and brand if applicable - is converted into a single Offer object that is subsequently returned for that booking. is added, or a post-commitClosed Refers to the state of a booking after the booking is created, which happens after the initial booking workbench is commited and the reservation locator code issued. workbench for an existing reservation. It must be followed at some point by a workbench commit.

Custom rules are created in a rules booking engine used by your agency. See the Custom Rules for details.

Request

Query Parameters

Parameter Description Required/Optional

RuleRecordSequence

Specify the sequence number of a single rule to remove from the booking, or all rules from the booking. Supported values:

  • {sequence number}: Send up to three digits (001-999) to specify the rule record sequence of the rule to delete. You can send a Custom Rule List request to retrieve a list of all custom rules and their sequence numbers, or a reservation retrieve with detail view requested to see the rules attached to a booking.

  • ALL: Send the value ALL to delete all custom rules for a booking.

Required

Request Body

There is no message payload.

Response

No response body.

Example Request

Send a numeric value in the RuleRecordSequence query parameter to remove the custom rule in that sequence number from a booking:

https://api.pp.travelport.com/11/air/book/customrule/customrules/cfa7a3a6-fefa-47e7-87a7-5c5cbde146cf/?RuleRecordSequence=001

Send the value ALL in the RuleRecordSequence query parameter to remove all custom rules from a booking:

https://api.pp.travelport.com/11/air/book/customrule/customrules/cfa7a3a6-fefa-47e7-87a7-5c5cbde146cf/?RuleRecordSequence=ALL

Example Response

No response body.