Custom Rule List API Reference
GET |
book/customrule/customrules/?PCC={PCC} Base path: Pre-production https://api.pp.travelport.com/11/air/ Production https://api.travelport.com/11/air/ |
Related Content: Custom Rules Guide
The Custom Rule Return API returns a list of all custom rules associated with a PCC. 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 the Custom Rules Guide for details.
Request
Also see Authorization and Common Headers.
Query Parameters
Parameter | Description | Required/Optional |
---|---|---|
PCC |
Send the PCC for the custom rules list to retrieve. |
Required |
Request Body
There is no message payload.
Response
The response returns a list of the custom rules for the PCC send in the request.
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; all rules returned are specific to this PCC. |
RuleRecord |
Array of custom rules for this PCC. Includes RuleRecordName object. Key value pair:
|
RuleRecordName |
String. Name of this custom rule. Send this value when adding a rule to a booking or retrieving rule details. |
Example Request
Send the PCC to return a list of all rules for that PCC.
https://api.pp.travelport.com/11/air/book/customrule/customrules/?PCC=X9Z
Example Response
The response returns a list of all rules for that PCC.
{
"CustomRuleResponse": {
"CustomRule": {
"@type": "CustomRule",
"id": "customRule_1",
"Identifier": {
"value": "7cf4d3a3-b962-42ac-b0a1-141c482535a4",
"authority": "Travelport"
},
"PseudoCityCode": "DU7",
"RuleRecord": [
{
"@type": "RuleRecord",
"sequence": 1,
"RuleRecordName": "BERNAT"
},
{
"@type": "RuleRecord",
"sequence": 2,
"RuleRecordName": "CASHDI"
},
{
"@type": "RuleRecord",
"sequence": 3,
"RuleRecordName": "CASHNP"
},
{
"@type": "RuleRecord",
"sequence": 4,
"RuleRecordName": "CORP"
},
{
"@type": "RuleRecord",
"sequence": 5,
"RuleRecordName": "CTC"
},
{
"@type": "RuleRecord",
"sequence": 6,
"RuleRecordName": "DI"
},
{
"@type": "RuleRecord",
"sequence": 7,
"RuleRecordName": "DIPT"
},
{
"@type": "RuleRecord",
"sequence": 8,
"RuleRecordName": "DI2"
},
{
"@type": "RuleRecord",
"sequence": 9,
"RuleRecordName": "DI3"
},
{
"@type": "RuleRecord",
"sequence": 10,
"RuleRecordName": "DI4"
},
{
"@type": "RuleRecord",
"sequence": 11,
"RuleRecordName": "DI5"
},
{
"@type": "RuleRecord",
"sequence": 12,
"RuleRecordName": "EMAIL"
},
{
"@type": "RuleRecord",
"sequence": 13,
"RuleRecordName": "FOP"
},
{
"@type": "RuleRecord",
"sequence": 14,
"RuleRecordName": "GENERAL"
},
{
"@type": "RuleRecord",
"sequence": 15,
"RuleRecordName": "JUANICASH"
},
{
"@type": "RuleRecord",
"sequence": 16,
"RuleRecordName": "JUANICASH2"
},
{
"@type": "RuleRecord",
"sequence": 17,
"RuleRecordName": "NOCASH"
},
{
"@type": "RuleRecord",
"sequence": 18,
"RuleRecordName": "NOTKP"
},
{
"@type": "RuleRecord",
"sequence": 19,
"RuleRecordName": "OTERO"
},
{
"@type": "RuleRecord",
"sequence": 20,
"RuleRecordName": "PT"
},
{
"@type": "RuleRecord",
"sequence": 21,
"RuleRecordName": "SSRIB"
},
{
"@type": "RuleRecord",
"sequence": 22,
"RuleRecordName": "SSRTK"
},
{
"@type": "RuleRecord",
"sequence": 23,
"RuleRecordName": "SSRUX"
},
{
"@type": "RuleRecord",
"sequence": 24,
"RuleRecordName": "TCJUANI"
},
{
"@type": "RuleRecord",
"sequence": 25,
"RuleRecordName": "TCOBL"
},
{
"@type": "RuleRecord",
"sequence": 26,
"RuleRecordName": "TCROB"
},
{
"@type": "RuleRecord",
"sequence": 27,
"RuleRecordName": "TKP"
},
{
"@type": "RuleRecord",
"sequence": 28,
"RuleRecordName": "ZZZ"
}
]
}
}
}