POST api/Flyr/SaveContract

Request Information

URI Parameters

None.

Body Parameters

DTFlyrContract
NameDescriptionTypeAdditional information
PortalID

integer

None.

FlyrContractGuid

string

None.

SearchKey

string

None.

ContractFileLocation

string

None.

Premium

decimal number

None.

ProtectedFare

decimal number

None.

Currency

string

None.

NoOfPassengers

integer

None.

PriceHoldSource

string

None.

MachineName

string

None.

InsertedOn

date

None.

SerializedContract

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PortalID": 1,
  "FlyrContractGuid": "sample string 2",
  "SearchKey": "sample string 3",
  "ContractFileLocation": "sample string 4",
  "Premium": 5.1,
  "ProtectedFare": 6.1,
  "Currency": "sample string 7",
  "NoOfPassengers": 8,
  "PriceHoldSource": "sample string 9",
  "MachineName": "sample string 10",
  "InsertedOn": "2018-02-22T23:14:58.4000421-05:00",
  "SerializedContract": "sample string 12"
}

text/html

Sample:
{"PortalID":1,"FlyrContractGuid":"sample string 2","SearchKey":"sample string 3","ContractFileLocation":"sample string 4","Premium":5.1,"ProtectedFare":6.1,"Currency":"sample string 7","NoOfPassengers":8,"PriceHoldSource":"sample string 9","MachineName":"sample string 10","InsertedOn":"2018-02-22T23:14:58.4000421-05:00","SerializedContract":"sample string 12"}

application/xml, text/xml

Sample:
<DTFlyrContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOLibrary.FlyrFareKeeper">
  <ContractFileLocation>sample string 4</ContractFileLocation>
  <Currency>sample string 7</Currency>
  <FlyrContractGuid>sample string 2</FlyrContractGuid>
  <InsertedOn>2018-02-22T23:14:58.4000421-05:00</InsertedOn>
  <MachineName>sample string 10</MachineName>
  <NoOfPassengers>8</NoOfPassengers>
  <PortalID>1</PortalID>
  <Premium>5.1</Premium>
  <PriceHoldSource>sample string 9</PriceHoldSource>
  <ProtectedFare>6.1</ProtectedFare>
  <SearchKey>sample string 3</SearchKey>
  <SerializedContract>sample string 12</SerializedContract>
</DTFlyrContract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FLyrAPIResult
NameDescriptionTypeAdditional information
Success

boolean

None.

Content

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Content": "sample string 2"
}

text/html

Sample:
{"Success":true,"Content":"sample string 2"}

application/xml, text/xml

Sample:
<FLyrAPIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOLibrary.FlyrFareKeeper">
  <Content>sample string 2</Content>
  <Success>true</Success>
</FLyrAPIResult>