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

Compare with Current View Page History

« Previous Version 2 Next »

Table of contents:

Check out

  • Operation overview, its main purpose and use cases
  • Response message with detailed explanation of output parameters
  • Variety of request and response samples

Parameters

Access. 
/Envelope /Body /SeatAvailabilityRQ /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.


Main. 
/Envelope /Body /SeatAvailabilityRQ 

#

Description

Mand

Mult

Default

Ref/Format/Desc

xPath

Example

1

Version

(tick)

(error)

(error)

Use empty value. Do not affect results. Required by NDC Scheme validation only.

@Version

<ServicePriceRQ Version="">
2

Document

(tick)

(error)

(error)

Use closed tag. Do not affect results. Required by NDC Scheme validation only.

Document

<Document/>
3Currency(error)(error)(tick)

Currency of seat ancillaries 

By default used RUB

Parameters/CurrCodes/CurrCode<Parameters>
    <CurrCodes>
        <CurrCode>UZS</CurrCode>
    </CurrCodes>
</Parameters>
4PTC(tick)(tick)(error)

Passenger types specified in reservation (some services depend on passenger type in booking and their combination)

Possible values:

  • ADT — adult
  • CHD — child
  • INF — infant in a lap

Not case-sensitive

Travelers /Traveler<Traveler>
   <AnonymousTraveler>
      <PTC>ADT</PTC>
   </AnonymousTraveler>
</Traveler>
5Aircraft Cabin(tick)(error)(error)
  • Y - for Economy
  • D - for Business

DataList/ClassOfServiceList/ServiceClass/

MarketingName

<ClassOfServiceList>
    <ServiceClass ListKey="Cabin">
        <MarketingName>Y</MarketingName>
    </ServiceClass>
</ClassOfServiceList>
6

Flight Segment

(tick)

(error)

(error)

Info for flight segment:

  • Departure airport IATA code and date
  • Arrival airport IATA code
  • Marketing carrier code and flight number
  • Operation carrier code and flight number
  • ClassOfService (code RBD)
  • FareFamily


DataList/FlightSegmentList/

FlightSegment

<FlightSegment SegmentKey="SEG1">
      ...
</FlightSegment>


Flight (Segment). 
/Envelope /Body /SeatAvailabilityRQ/DataList/FlightSegmentList/FlightSegment


#

Description

Mand

Mult

Default

Ref/Format/Desc

xPath

Example

1

Departure IATA airport code

(tick)

(error)

(error)

IATA airport code

Departure /AirportCode

<AirportCode>DME</AirportCode>
2

Departure Date (local)

(tick)

(error)

(error)

Format: YYYY-MM-DD

Departure /Date

<Date>2023-12-15</Date>
3

Departure time (local)

(error)

(error)

(error)

Format: HH:MM    

Departure /Time

<Time>12:55</Time>
4

Arrival IATA airport code

(tick)

(error)

(error)

IATA airport code

Arrival /AirportCode

<AirportCode>DME</AirportCode>
5

Arrival Date (local)

(error)

(error)

(error)

Format: YYYY-MM-DD

Arrival /Date

<Date>2023-12-15</Date>
6

Arrival time (local)

(error)

(error)

(error)

Format: HH:MM  

Departure/Time

<Time>14:35</Time>
7

Marketing carrier IATA airline ID

(tick)

(error)

(error)

IATA airline code

MarketingCarrier /AirlineID

<AirlineID>S7</AirlineID>
8

Marketing carrier flight number

(tick)

(error)

(error)

Use: 0-9

"0"s before number are accepted

MarketingCarrier/FlightNumber

<FlightNumber>1011</FlightNumber>
9

Operating carrier IATA airline ID

(tick)

(error)

(error)

IATA airline code

OperatingCarrier/AirlineID

<AirlineID>S7</AirlineID>
10

Operating carrier flight number

(tick)

(error)

(error)

Use: 0-9

"0"s before number are accepted

MarketingCarrier/FlightNumber

<FlightNumber>1011</FlightNumber>
11

ClassOfServise

(tick)

(error)

(error)

RBD 1 letter 

ClassOfService/Code

<ClassOfService>
  <Code>Y</Code>
</ClassOfService>

FareInfo

/Envelope /Body /ServicePriceRQ /DataList/FareList/FareGroup(Multiple)

Specify FareGroup for each segment

FareGroup include reference refs on Flight (Segment), for example, refs="SEG1"

FareGroup include attribute ListKey with index number of FareGroup, for example, ListKey="FG1"

#

Description

Mand

Mult

Default

Ref/Format/Desc

xPath

Example

1

FareFamily

(tick)

(error)

(error)

Available FareFamily:

  • BASICECONOMY
  • STANDARDECONOMY
  • PLUSECONOMY
  • BASICBUSINESS
  • STANDARDBUSINESS
  • PLUSBUSINESS

FareGroup/Fare/FareCode/Code

<Code>BASICECONOMY</Code>
2

FareBasisCode

(tick)

(error)

(error)

FareBasisCode

FareGroup/FareBasis/Code/

<Code>YBSOW</Code>


  • No labels