Custom Rule Details API Reference
Get |
book/customrule/customrules/?PCC={PCC}?RuleRecordName={NAME} Base path: Use this base path if you have not yet received or not migrated to the new credentials from Travelport:
Use this base path after you have migrated to the new credentials from Travelport (using .net instead of .com):
|
Related Content:Booking Guide, Custom Rule, Custom Rule List
Send Custom Rule Details to retrieve details about a specific custom rule. This standalone request can be sent as part of a workbench session or without a workbench.
Custom rules are created in a rules booking engine used by your agency. See Custom Booking Rules in the Booking Guide for details.
Request
As part of the request requirements, also see Authentication and Common Air Headers.
Query Parameters
Parameter | Description | Required/Optional |
---|---|---|
PCC |
The PCC associated with the rule to retrieve. |
Required |
RuleRecordName |
The name of the rule to retrieve. You can send Custom Rule List to return a list of all rules associated with a specific PCC. |
Required |
Request Body
There is no message payload.
Response
The response returns details of the requested rule.

Object |
Description |
---|---|
CustomRuleResponse |
Top level object. Includes CustomRule object. |
CustomRule |
Top level object. Includes the following key value pair:
Includes Identifier, PseudoCItyCode, and RuleRecord objects. |
Identifier |
System-generated identifier for the response:
|
PseudoCItyCode |
PCC sent in the request; the rule returned is specific to this PCC. |
RuleRecord |
Rule details. Includes RuleRecordName and RuleText objects. Key value pair:
|
RuleRecordName |
String. Name of this custom rule. Send this value when adding a rule to a booking. |
RuleText |
Array of rule strings. Includes StringText object. Key value pair:
|
StringText |
String. The text of the rule as configured in the booking file management tool (see the Custom Rules for details). |
Example Request
This request has no message payload.
Example Response
The response returns details of the requested rule.

{
"CustomRuleResponse": {
"CustomRule": {
"@type": "CustomRule",
"id": "customRule_1",
"Identifier": {
"value": "14947439-09b3-436a-bb7c-c86703f59167",
"authority": "Travelport"
},
"PseudoCityCode": "DU7",
"RuleRecord": [
{
"@type": "RuleRecord",
"sequence": 1,
"RuleRecordName": "TKP",
"RuleText": [
{
"@type": "RuleText",
"sequence": 1,
"StringText": " IF EM ANDFOR FARE ANDNOT FINDCOR LIT/C/ AND OCCURS TIMES1-99 THEN SAY VERIFICAR ACUERDO DE INTERLINEA Y ANADIR ANTES EN LA TARIFA TMU"
},
{
"@type": "RuleText",
"sequence": 2,
"StringText": " IF EW ANDFOR F. AND LIT/S/ OR LIT/CK/ THEN SAY CASH OR CHEQUE FOP NOT ALLOWED IN F. ENTRY"
},
{
"@type": "RuleText",
"sequence": 3,
"StringText": " IF EW ANDFOR F. AND LIT/CC/ THEN SAY NO SE PERMITE PAGO CON TARJETAS DE CREDITO"
}
]
}
]
}
}
}