POST AIR/api/app/Air/CalanderFare

Request Information

URI Parameters

None.

Body Parameters

CalendarFareRequest
NameDescriptionTypeAdditional information
JourneyType

integer

None.

EndUserIp

string

None.

TokenId

string

None.

PreferredAirlines

Object

None.

Segments

Collection of CalendarFareRequestSegment

None.

Sources

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "JourneyType": 1,
  "EndUserIp": "sample string 2",
  "TokenId": "sample string 3",
  "PreferredAirlines": {},
  "Segments": [
    {
      "Origin": "sample string 1",
      "Destination": "sample string 2",
      "FlightCabinClass": 3,
      "PreferredArrivalTime": "2024-12-28T19:00:15.7428543+05:30",
      "PreferredDepartureTime": "2024-12-28T19:00:15.7428543+05:30"
    },
    {
      "Origin": "sample string 1",
      "Destination": "sample string 2",
      "FlightCabinClass": 3,
      "PreferredArrivalTime": "2024-12-28T19:00:15.7428543+05:30",
      "PreferredDepartureTime": "2024-12-28T19:00:15.7428543+05:30"
    }
  ],
  "Sources": {}
}

application/xml, text/xml

Sample:
<CalendarFareRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <EndUserIp>sample string 2</EndUserIp>
  <JourneyType>1</JourneyType>
  <PreferredAirlines />
  <Segments>
    <CalendarFareRequestSegment>
      <Destination>sample string 2</Destination>
      <FlightCabinClass>3</FlightCabinClass>
      <Origin>sample string 1</Origin>
      <PreferredArrivalTime>2024-12-28T19:00:15.7428543+05:30</PreferredArrivalTime>
      <PreferredDepartureTime>2024-12-28T19:00:15.7428543+05:30</PreferredDepartureTime>
    </CalendarFareRequestSegment>
    <CalendarFareRequestSegment>
      <Destination>sample string 2</Destination>
      <FlightCabinClass>3</FlightCabinClass>
      <Origin>sample string 1</Origin>
      <PreferredArrivalTime>2024-12-28T19:00:15.7428543+05:30</PreferredArrivalTime>
      <PreferredDepartureTime>2024-12-28T19:00:15.7428543+05:30</PreferredDepartureTime>
    </CalendarFareRequestSegment>
  </Segments>
  <Sources />
  <TokenId>sample string 3</TokenId>
</CalendarFareRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CalendarFareRequest'.

Response Information

Resource Description

CalanderFareVM
NameDescriptionTypeAdditional information
Version

string

None.

StatusCode

integer

None.

Content

CalanderFareContent

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "sample string 1",
  "StatusCode": 2,
  "Content": {
    "ResponseCode": 1,
    "Addinfo": {
      "ResponseStatus": 1,
      "Error": {
        "ErrorCode": 1,
        "ErrorMessage": "sample string 2"
      },
      "TraceId": "0edb7fd4-4aaf-4da5-99a3-9d618b5b9e27",
      "Origin": "sample string 3",
      "Destination": "sample string 4",
      "SearchResults": [
        {
          "AirlineCode": "sample string 1",
          "AirlineName": "sample string 2",
          "DepartureDate": "2024-12-28T19:00:15.7585075+05:30",
          "IsLowestFareOfMonth": true,
          "Fare": 5.1,
          "BaseFare": 6.1,
          "Tax": 7.1,
          "OtherCharges": 8,
          "FuelSurcharge": 9
        },
        {
          "AirlineCode": "sample string 1",
          "AirlineName": "sample string 2",
          "DepartureDate": "2024-12-28T19:00:15.7585075+05:30",
          "IsLowestFareOfMonth": true,
          "Fare": 5.1,
          "BaseFare": 6.1,
          "Tax": 7.1,
          "OtherCharges": 8,
          "FuelSurcharge": 9
        }
      ]
    }
  }
}

application/xml, text/xml

Sample:
<CalanderFareVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <Content>
    <Addinfo>
      <Destination>sample string 4</Destination>
      <Error>
        <ErrorCode>1</ErrorCode>
        <ErrorMessage>sample string 2</ErrorMessage>
      </Error>
      <Origin>sample string 3</Origin>
      <ResponseStatus>1</ResponseStatus>
      <SearchResults>
        <CalanderFareSearchResult>
          <AirlineCode>sample string 1</AirlineCode>
          <AirlineName>sample string 2</AirlineName>
          <BaseFare>6.1</BaseFare>
          <DepartureDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-12-28T13:30:15.7585075Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>330</d6p1:OffsetMinutes>
          </DepartureDate>
          <Fare>5.1</Fare>
          <FuelSurcharge>9</FuelSurcharge>
          <IsLowestFareOfMonth>true</IsLowestFareOfMonth>
          <OtherCharges>8</OtherCharges>
          <Tax>7.1</Tax>
        </CalanderFareSearchResult>
        <CalanderFareSearchResult>
          <AirlineCode>sample string 1</AirlineCode>
          <AirlineName>sample string 2</AirlineName>
          <BaseFare>6.1</BaseFare>
          <DepartureDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>2024-12-28T13:30:15.7585075Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>330</d6p1:OffsetMinutes>
          </DepartureDate>
          <Fare>5.1</Fare>
          <FuelSurcharge>9</FuelSurcharge>
          <IsLowestFareOfMonth>true</IsLowestFareOfMonth>
          <OtherCharges>8</OtherCharges>
          <Tax>7.1</Tax>
        </CalanderFareSearchResult>
      </SearchResults>
      <TraceId>0edb7fd4-4aaf-4da5-99a3-9d618b5b9e27</TraceId>
    </Addinfo>
    <ResponseCode>1</ResponseCode>
  </Content>
  <StatusCode>2</StatusCode>
  <Version>sample string 1</Version>
</CalanderFareVM>