POST AIR/api/app/Air/FareRule?TraceId={TraceId}&ResultIndex={ResultIndex}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
TraceId

string

Required

ResultIndex

string

Required

Body Parameters

None.

Response Information

Resource Description

FareRuleVM
NameDescriptionTypeAdditional information
Version

string

None.

StatusCode

integer

None.

Content

FareRuleContent

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "sample string 1",
  "StatusCode": 2,
  "Content": {
    "ResponseCode": 1,
    "Addinfo": {
      "Error": {
        "ErrorCode": 1,
        "ErrorMessage": "sample string 2"
      },
      "FareRules": [
        {
          "Origin": "sample string 1",
          "Destination": "sample string 2",
          "Airline": "sample string 3",
          "FareBasisCode": "sample string 4",
          "FareRuleDetail": "sample string 5",
          "FareRestriction": "sample string 6"
        },
        {
          "Origin": "sample string 1",
          "Destination": "sample string 2",
          "Airline": "sample string 3",
          "FareBasisCode": "sample string 4",
          "FareRuleDetail": "sample string 5",
          "FareRestriction": "sample string 6"
        }
      ],
      "ResponseStatus": 1,
      "TraceId": "sample string 2"
    }
  }
}

application/xml, text/xml

Sample:
<FareRuleVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <Content>
    <Addinfo>
      <Error>
        <ErrorCode>1</ErrorCode>
        <ErrorMessage>sample string 2</ErrorMessage>
      </Error>
      <FareRules>
        <FareRule>
          <Airline>sample string 3</Airline>
          <Destination>sample string 2</Destination>
          <FareBasisCode>sample string 4</FareBasisCode>
          <FareRestriction>sample string 6</FareRestriction>
          <FareRuleDetail>sample string 5</FareRuleDetail>
          <Origin>sample string 1</Origin>
        </FareRule>
        <FareRule>
          <Airline>sample string 3</Airline>
          <Destination>sample string 2</Destination>
          <FareBasisCode>sample string 4</FareBasisCode>
          <FareRestriction>sample string 6</FareRestriction>
          <FareRuleDetail>sample string 5</FareRuleDetail>
          <Origin>sample string 1</Origin>
        </FareRule>
      </FareRules>
      <ResponseStatus>1</ResponseStatus>
      <TraceId>sample string 2</TraceId>
    </Addinfo>
    <ResponseCode>1</ResponseCode>
  </Content>
  <StatusCode>2</StatusCode>
  <Version>sample string 1</Version>
</FareRuleVM>