POST api/Book/GetFareRule

Request Information

URI Parameters

None.

Body Parameters

FPFareRuleRQ
NameDescriptionTypeAdditional information
FlightFareRuleRQ

FlightFareRuleRQ

None.

SoapAuthentication

SoapAuthentication

None.

Request Formats

application/json, text/json

Sample:
{
  "FlightFareRuleRQ": {
    "ContractId": 1,
    "ContractLocatorKey": "sample string 2"
  },
  "SoapAuthentication": {
    "UserName": "sample string 1",
    "Password": "sample string 2"
  }
}

text/html

Sample:
{"FlightFareRuleRQ":{"ContractId":1,"ContractLocatorKey":"sample string 2"},"SoapAuthentication":{"UserName":"sample string 1","Password":"sample string 2"}}

application/xml, text/xml

Sample:
<FPFareRuleRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <FlightFareRuleRQ>
    <ContractId>1</ContractId>
    <ContractLocatorKey>sample string 2</ContractLocatorKey>
  </FlightFareRuleRQ>
  <SoapAuthentication>
    <Password>sample string 2</Password>
    <UserName>sample string 1</UserName>
  </SoapAuthentication>
</FPFareRuleRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FlightFareRuleRS
NameDescriptionTypeAdditional information
FareRules

string

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "FareRules": "sample string 1",
  "ErrorCode": "sample string 2",
  "ErrorAtNode": "sample string 3"
}

text/html

Sample:
{"FareRules":"sample string 1","ErrorCode":"sample string 2","ErrorAtNode":"sample string 3"}

application/xml, text/xml

Sample:
<FlightFareRuleRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <ErrorAtNode>sample string 3</ErrorAtNode>
  <ErrorCode>sample string 2</ErrorCode>
  <FareRules>sample string 1</FareRules>
</FlightFareRuleRS>