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:
Fare Rule 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 | String | Result Index | Mandatory |
Fare Rule Response
| Level | Element | Format | Comments | Mandatory |
|---|---|---|---|---|
| 1 | Error{} | Object | Error | Mandatory |
| 1.1 | ErrorCode | Integer | Code corresponding to the Error | Mandatory |
| 1.2 | ErrorMessage | String | Contains error message ( Will contain error description to ErrorCode. Error Message would be blank in case ErrorCode =0 ) | Mandatory |
| 2 | SrdvType | String | Simple result data version | Mandatory |
| 3 | ResultIndex | String | 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 | Special Rule | 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 |