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 booking workflow after an offer is added, or a post-commit 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 Guide for details.
Request
Also see Authorization and Common Headers.
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:
|
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.