In our API, we handle air extra or require special service in terms of Custom Supplier Parameter. Information about air extras like baggage, speedy boarding, etc is returned as part of the RequiredParameterList in ProcessDetails response as follows:
<RequiredParameterList> <RequiredParameter> <Name>NumberOfBags</Name>
<DisplayText>Number of bags to be checked in (e.g. 2)</DisplayText> <PerPassenger>true</PerPassenger>
<IsOptional>true</IsOptional> </RequiredParameter>
<RequiredParameter> <Name>SpeedyBoarding</Name>
<DisplayText>Request speedy boarding (y/n)</DisplayText> <PerPassenger>false</PerPassenger>
<IsOptional>true</IsOptional> </RequiredParameter>
<RequiredParameterList> These parameters are then submitted in the ProcessTerms request as part of the CustomerSupplierParameterList in the Booking Profile if the PerPassenger element is false i.e. parameter to be submitted for entire booking e.g. speedy boarding for ezy.. Please find example below:
<ProcessTerms> <XmlLoginId>***</XmlLoginId> <LoginId>***</LoginId>
<Mode>Plane</Mode> <RoutingId>***</RoutingId> <BookingProfile>
<CustomSupplierParameterList> <CustomSupplierParameter>
<Name>SpeedyBoarding</Name> <Value>y</Value>
</CustomSupplierParameter> </CustomSupplierParameterList>
....... </BookingProfile> </ProcessTerms>
OR as part of the CustomerSupplierParameterList within the Traveller XML block if the PerPassenger element for that parameter is true i.e. value required per passenger for e.g. baggage for ezy. Please find example below:
<ProcessTerms> <XmlLoginId>***</XmlLoginId>
<LoginId>***</LoginId> <Mode>Plane</Mode> <RoutingId>***</RoutingId>
<BookingProfile> <TravellerList> <Traveller>
<Age>30</Age> <Name> <Title>Mr</Title>
<NamePartList> <NamePart>Thomas</NamePart>
<NamePart>Hamilton</NamePart> </NamePartList>
</Name> <CustomSupplierParameterList>
<CustomSupplierParameter> <Name>NumberOfBags</Name>
<Value>1</Value> </CustomSupplierParameter>
</CustomSupplierParameterList>
</Traveller> ....... </BookingProfile>
</ProcessTerms> You can find more information about these parameters and how to handle them in requests Format of the Name Element. |