Fare Rule
This method is used to get the fare rules and condition of a specific flight option. It contains the fare basis code and the relevant details associated with it, such as restrictions and penalties(cancellation fees).
Service URL (REST) to be used:
FareRule Request
Level | Element | Format | Comments | Mandatory |
---|---|---|---|---|
1 | EndUserIp | String | IP Address of the end user | Mandatory |
2 | ClientId | String | Client ID provided to
the agency at registration |
Mandatory |
3 | UserName | String | Username provided to the agency at registration | Mandatory |
4 | Password | String | Password provided to the agency at registration | Mandatory |
5 | SrdvType | String | Simple result data version | Mandatory |
6 | SrdvIndex | String | Simple result data version index | Mandatory |
7 | TraceId | String | Trace Id (Trace Id to be echoed back from search response. This can be used to trace particular search/ book at SRDV’s end) |
Mandatory |
8 | ResultIndex | Integer | Result Index | Mandatory |
Fare Rule Response
Level | Element | Format | Comments | Mandatory |
---|---|---|---|---|
1 | Error[] | Array | Error | Mandatory |
1.1 | ErrorCode | Integer | Code corresponding to the Error | Mandatory |
1.2 | ErrorMessage | String | Contains error message (Will contain error description corresponding to ErrorCode. Error Message would be blank in case ErrorCode =0) |
Mandatory |
2 | SrdvType | String | Simple result data version | Mandatory |
3 | ResultIndex | Integer | Result Index | Mandatory |
4 | TraceId | String | Trace Id (Trace Id to be echoed back from search response. This can be used to trace particular search/ book at SRDV’s end) |
Mandatory |
5 | SpecialRule | String | Optional | |
6 | Results[] | Array | Results | Mandatory |
6.1 | Airline | String | Airline | Mandatory |
6.2 | Origin | String | Origin | Mandatory |
6.3 | Destination | String | Destination | Mandatory |
6.4 | FareBasisCode | String | Fare basis code | Mandatory |
6.5 | FareRuleDetail | String | Fare rule detail | Mandatory |