Flight API GetTravelPolicyRules

Flight API

GetTravelPolicyRules

This API is useful to get information about Travel policy rules assigned to specific users.

Path: /api/GetTravelPolicyRules

Method Type :GET

Parameters :

  • UserID
  • ProductID : Will be always 1 for Flights
  • TripPurpose
  • TripReason

TripPurpose : There are 3 trip purposes as of now. Below are details:

  1. Monthly Ticket
  2. Discounted Ticket
  3. Business

Sample Request:

[
{
"ProductID": 1,
"ProductName": "Flight",
"RuleID": 20,
"RuleName": "Cabin Class",
"Values": "E,B",
"TripPurpose": "Monthly Ticket"
},
{
"ProductID": 1,
"ProductName": "Flight",
"RuleID": 31,
"RuleName": "Trip Type Restrictions",
"Values": "M",
"TripPurpose": "Monthly Ticket"
}
]