POST AIR/api/app/Air/CalanderFare
Request Information
URI Parameters
None.
Body Parameters
CalendarFareRequestName | Description | Type | Additional 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-26T19:50:02.4503816+05:30", "PreferredDepartureTime": "2024-12-26T19:50:02.4503816+05:30" }, { "Origin": "sample string 1", "Destination": "sample string 2", "FlightCabinClass": 3, "PreferredArrivalTime": "2024-12-26T19:50:02.4503816+05:30", "PreferredDepartureTime": "2024-12-26T19:50:02.4503816+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-26T19:50:02.4503816+05:30</PreferredArrivalTime> <PreferredDepartureTime>2024-12-26T19:50:02.4503816+05:30</PreferredDepartureTime> </CalendarFareRequestSegment> <CalendarFareRequestSegment> <Destination>sample string 2</Destination> <FlightCabinClass>3</FlightCabinClass> <Origin>sample string 1</Origin> <PreferredArrivalTime>2024-12-26T19:50:02.4503816+05:30</PreferredArrivalTime> <PreferredDepartureTime>2024-12-26T19:50:02.4503816+05:30</PreferredDepartureTime> </CalendarFareRequestSegment> </Segments> <Sources /> <TokenId>sample string 3</TokenId> </CalendarFareRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CalanderFareVMName | Description | Type | Additional 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": "f8f1e6c8-07d3-4c84-a4da-7ac3e3b242c4", "Origin": "sample string 3", "Destination": "sample string 4", "SearchResults": [ { "AirlineCode": "sample string 1", "AirlineName": "sample string 2", "DepartureDate": "2024-12-26T19:50:02.4660029+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-26T19:50:02.4660029+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-26T14:20:02.4660029Z</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-26T14:20:02.4660029Z</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>f8f1e6c8-07d3-4c84-a4da-7ac3e3b242c4</TraceId> </Addinfo> <ResponseCode>1</ResponseCode> </Content> <StatusCode>2</StatusCode> <Version>sample string 1</Version> </CalanderFareVM>