You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Table of contents:

Check out

Parameters

Common. 

Access. 
/Envelope /Body /AirShoppingRQ /Party /Sender /AgentUserSender

(warning) Use credentials that you received from our technical support. Check out Quick Start for how to get it
#DescriptionMandMultDefaultRef/FormatxPathExample (only for S7)
1PseudoCity(tick)(error)

PseudoCity
<PseudoCity>S7AGN8224</PseudoCity>
2AgentUserID(tick)(error)
ConstantAgentUserID
<AgentUserID>test</AgentUserID>

Replace text 'test'  with the login from the authorization to the S7 Agent API service.


3D agreement credentials. 
/Envelope /Body /AirShoppingRQ /Qualifiers /Qualifier /SpecialFareQualifiers

Available only for Corporate Program with discount scenario or Corporate Program with cashback scenario.

(warning) Use credentials that you received from our technical support. Check out Quick Start for how to get those IDs

#

Description

Mand

Mult

Default

Ref/Format

xPath

Example (only for S7)

1

IATA airline code

(tick) for Corporate Program case
(error) for other cases
(error)(error)Constant

AirlineID="S7"

<AirlineID>S7</AirlineID>
2Client ID(tick) for Corporate Program case
(error) for other cases

(error)

(error)

CompanyIndex

<CompanyIndex>QUW0000</CompanyIndex> or <CompanyIndex>QY000000</CompanyIndex>
3Agent ID(tick)  for Corporate Program case
(error) for other cases
(error)(error)
Account
<Account>12251</Account>

First slice. 

Main. 
/Envelope /Body /AirShoppingRQ

#DecriptionMandMultDefaultRef/FormatxPathExample
1Currency(error)(error)RUBRUB, USD, EUR, CNY, KZT, GBP, AMD, UZSParameters /CurrCodes /CurrCode
<CurrCodes>
<CurrCode>KZT</CurrCode>
</CurrCodes>
2Result Type(error)(error)BrandedFares
  • LowFare - used to get the cheapest solution in each offer
  • BrandedFares - used to get all available solutions in each offer
  • Include Baggage - used to get solutions with free baggage

Parameters /ServiceFilters /ServiceFilter[GroupCode="FareOut"] /SubGroupCode




for Include Baggage
Parameters /ServiceFilters /ServiceFilter[GroupCode="Baggage"] /SubGroupCode

<ServiceFilter>
<GroupCode>FareOut</GroupCode>
<SubGroupCode>LowFare</SubGroupCode>
</ServiceFilter>



for Include Baggage

<ServiceFilter>
<GroupCode>Baggage</GroupCode>
<SubGroupCode>Include</SubGroupCode>
</ServiceFilter>

3Sorting(error)(error)
  • arrival
  • carrier
  • departure
  • default
  • destination
  • origin
Parameters /ServiceFilters /ServiceFilter[GroupCode="Sort"] /SubGroupCode
<ServiceFilter>
<GroupCode>Sort</GroupCode>
<SubGroupCode>arrival</SubGroupCode>
</ServiceFilter>
4Traveler(tick)(tick)(error)Traveler types detailsTravalers /Traveler 
<Traveler>
<AnonymousTraveler>
<PTC Quantity="1">CHD</PTC>
</AnonymousTraveler>
</Traveler>
5OriginDestination(tick)(tick)(error)Journey detailsCoreQuery /OriginDestinations /OriginDestination
<OriginDestination>
<Departure>
<AirportCode>IKT</AirportCode>
<Date>2019-09-01</Date>
</Departure>
<Arrival>
<AirportCode>MOW</AirportCode>
</Arrival>
</OriginDestination>
6Aircraft Cabin(error)(error)Returns both cabin types
  • Y - for COACH and PREMIUM-COACH
  • D - for BUSINESS and FIRST
Preferences /Preference /FlightPreferences /Aircraft /Cabins /Cabin /Code
<Cabin>
<Code>Y</Code>
</Cabin>
7Flight types(error)(error)Returns all itineraries: direct, transit and transfer
  • Exclude - for all flights (direct + transfer)
  • Preferred - direct flights only
Preferences /Preference /FlightPreferences /Characteristic /DirectPreferences
<FlightPreferences>
<Characteristic>
<DirectPreferences>Preferred</DirectPreferences>
</Characteristic>
</FlightPreferences>

Treveler
/Envelope /Body /AirShoppingRQ /Travelers /Traveler (Multiple)

#DecriptionMandMultDefaultRef/FormatxPathExample
1Passenger Type Code(tick)(error)(error)
  1. ADT — Adult

  2. CHD — Child and Infant with a seat

  3. INF — Infant

AnonymousTraveler /PTC
<PTC Quantity="1">ADT</PTC>
2Passenger Quantity(tick)(error)(error)
  • ADT — 1..9
  • CHD — 1..9
  • INF — 1..9
  • ADT+CHD <= 9
  • INF <= ADT
AnonymousTraveler /PTC /@Quantity
<PTC Quantity="2">CHD</PTC>

OriginDestination. 
/Envelope /Body /AirShoppingRQ /CoreQuery /OriginDestinations /OriginDestination (Multiple)

#DecriptionMandMultDefaultRef/FormatxPathExample
1Departure IATA airport or city code(tick)(error)(error)IATA airpot/city code

Departure /AirportCode

<AirportCode>OVB</AirportCode>
2Departure Date(tick)(error)(error)YYYY-MM-DDDeparture /Date
<Date>2020-07-20</Date>
3Arrival IATA airport or city code(tick)(error)(error)IATA airpot/city codeArrival /AirportCode
<AirportCode>DME</AirportCode>
4Arrival Date(error)(error)(error)YYYY-MM-DDArrival /Date
<Date>2020-09-20</Date>

Subsequent slices

Selected solution. 
/Envelope /Body /AirShoppingRQ/CoreQuery

#DecriptionMandMultDefaultRef/FormatxPathExample
1Selected solution reference for a previous slice(tick)(error)(error)Selected fare family solution reference from previous search/ShoppingResponseIDs[ResponseID="R1"] /AssociatedIDs /AssociatedID /OfferItemID
<OfferItemID>LsB0QidQ35Xy2yN6F0sXRtPS1/
0B4H2F3Ds2V2RuJeZLTI6OR/UdhPmLQfxUQRnQ5kIEsi0F00B/
0/2</OfferItemID>
  • No labels