Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

How can we add more than 06 private fares #169

Open lipinkizakedath opened 6 years ago

lipinkizakedath commented 6 years ago

Currently, we can send only 06 Account Code in one request. So when we have more than 06, how can we add using Master Account Code.

vivekjyotipramanik commented 6 years ago

Hi lipinnambiar,

To send more than AccountCode, you have to request AirPricing again. Currently, it is only allowing 6 Account Codes. Thanks.

huzatech commented 4 years ago

Hi vivekjyotipramanik,

we are trying to use the airline provider code in LFS, AirPrice & AirCreate in travel port API but it didn't work properly. Can you please provide a sample code or assist us on it. Thanks

Mannan

huzatech commented 4 years ago

Thanks vivekjyotipramanik, for your reply but actually the problem is on How to set the attributes, I found the below in support documents but there is specifically mentioned "in the request both supplier and provider code specified in @AccountCode in the request but Kindly assist me how to add the provider code (I believe that this is the airline code). Furthermore we have a AirlinePrivateCode e.g., EK ZZZZZZZZZ

<air:AirPricingModifiers FaresIndicator="AllFares" ETicketability="Yes" ="false">

In "AllFares" modifier I only got the normal fare but when I tried with AirLinePrivate fare the system didn't display the contracted fares. 1. "Both the supplier's account code and the provider code must be specified." Can you please share the sample code using these modifier. I tried too much to find any help in support, demo & github but nothing
vivekjyotipramanik commented 4 years ago

Hi huzatech,

Please find below the sample. Thanks.

<LowFareSearchReq xmlns="http://www.travelport.com/schema/air_v42_0" TraceId="765082f4-aa1e-48c8-aac6-e770786f8ce3" TargetBranch="P3088249" ReturnUpsellFare="true">
  <BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v42_0" OriginApplication="uAPI" />
  <SearchAirLeg>
    <SearchOrigin>
      <CityOrAirport xmlns="http://www.travelport.com/schema/common_v42_0" Code="DEN" PreferCity="true" />
    </SearchOrigin>
    <SearchDestination>
      <CityOrAirport xmlns="http://www.travelport.com/schema/common_v42_0" Code="SFO" PreferCity="true" />
    </SearchDestination>
    <SearchDepTime PreferredTime="2020-02-20" />
    <AirLegModifiers>
      <PreferredCabins>
        <CabinClass xmlns="http://www.travelport.com/schema/common_v42_0" Type="Economy" />
      </PreferredCabins>
    </AirLegModifiers>
  </SearchAirLeg>
  <AirSearchModifiers>
    <PreferredProviders>
      <Provider xmlns="http://www.travelport.com/schema/common_v42_0" Code="1G" />
    </PreferredProviders>
    <PreferredCarriers>
      <Carrier xmlns="http://www.travelport.com/schema/common_v42_0" Code="DL" />
    </PreferredCarriers>
  </AirSearchModifiers>
  <SearchPassenger xmlns="http://www.travelport.com/schema/common_v42_0" Code="ADT" />
  <AirPricingModifiers>
    <AccountCodes>
      <AccountCode xmlns="http://www.travelport.com/schema/common_v42_0" Code="-" />
    </AccountCodes>
  </AirPricingModifiers>
</LowFareSearchReq>