Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The purpose of this article is to provide information regarding the use of APIv3.

...

Info
titleGeneral Information
  • When booking a child, ensure there is a child fare node supplied to the request as well as a properly formatted child {{</int1:BookingPassenger>}}. For a male child the title should be 'Master', for a female child the title should be 'Miss'. Supplying the child's title incorrectly may cause unexpected results when booking.
  • The Address 1 and Address 2 fields are limited to 50 characters. Allowing for input larger than that value will cause errors.
  • The booking request is order sensitive.

 

 Booking with an Infant

...

Code Block
languagexml
titleBookReservation w/ Infant
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:int="http://schemas.datacontract.org/2004/07/InteliSys.Amelia.API" xmlns:int1="http://schemas.datacontract.org/2004/07/InteliSys.Amelia">
  <soapenv:Header/>
   <soapenv:Body>
      <tem:BookReservation>
        <tem:bookingRequest>
           <int:Query>
           	<int1:Company>
                  <int1:Code>111111</int1:Code>
               </int1:Company>
               <int1:Legs>
                  <int1:BookingLeg>
                     <int1:AdultFares>
                        <int1:BookingClassCode>L</int1:BookingClassCode>
                        <int1:CurrencyCode>CAD</int1:CurrencyCode>
                        <int1:FareCode>L</int1:FareCode>
                        <int1:PaxCount>1</int1:PaxCount>
                        <int1:TotalCost>146.25</int1:TotalCost>
                     </int1:AdultFares>
                     <int1:Segments>
                        <int1:BookingSegment>
                           <int1:ArrivalAirportCode>YQM</int1:ArrivalAirportCode>
                           <int1:DepartureAirportCode>YHM</int1:DepartureAirportCode>
                           <int1:ETALocal>2016-12-19T17:15:00</int1:ETALocal>
                           <int1:ETDLocal>2016-12-19T14:18:00</int1:ETDLocal>
                           <int1:FlightCode>G61100</int1:FlightCode>
                        </int1:BookingSegment>
                     </int1:Segments>
                  </int1:BookingLeg>
               </int1:Legs>
               <int1:Passengers>
                  <int1:BookingPassenger>
                     <int1:Address>
                        <int1:Addr1>260 Princess Street</int1:Addr1>
                        <int1:City>Calgary</int1:City>
                        <int1:CountryCode>CDN</int1:CountryCode>
                        <int1:CountryDescription>CANADA</int1:CountryDescription>
                        <int1:PostalCode>E2L4S8</int1:PostalCode>
                        <int1:ProvinceAbbreviation>NB</int1:ProvinceAbbreviation>
                        <int1:ProvinceName>New Brunswick</int1:ProvinceName>
                     </int1:Address>
                     <int1:AgeCategory>Adult</int1:AgeCategory>
                     <int1:Firstname>Greg</int1:Firstname>
                     <int1:Gender>Male</int1:Gender>
                     <int1:Infants>
                        <int1:Infant>
                           <int1:Firstname>Greg Jr</int1:Firstname>
                           <int1:Gender>M</int1:Gender>
                           <int1:Lastname>Pert</int1:Lastname>
                        </int1:Infant>
                     </int1:Infants>
                     <int1:Lastname>Pert</int1:Lastname>
                     <int1:PersonalContact>
                        <int1:Email>support@intelisysaviation.com</int1:Email>
                     </int1:PersonalContact>
                  </int1:BookingPassenger>
               </int1:Passengers>
               <int1:Payment>
                  <int1:AccountPayment>
                     <int1:CompanyCode>111111</int1:CompanyCode>
                     <int1:PaymentMethod>ACCT</int1:PaymentMethod>
                  </int1:AccountPayment>
                  <int1:Amount>449.01</int1:Amount>
                  <int1:CurrencyCode>CAD</int1:CurrencyCode>
                  <int1:PaymentType>Account</int1:PaymentType>
                  <int1:ProcessingFee>0</int1:ProcessingFee>
                  <int1:ProcessingFeeTax>0</int1:ProcessingFeeTax>
                </int1:Payment>
            </int:Query>
         </tem:bookingRequest>
      </tem:BookReservation>
   </soapenv:Body>
</soapenv:Envelope>

 


CalculateProcessingFee

CalculateProcessingFee Request

...

Code Block
xml
xml
   <soapenv:Body>
      <tem:PurchaseItems>
         <tem:req>
            <int:Payment>
               <int1:Amount>2.5</int1:Amount>
               <int1:CreditCardPayment>
                  <int1:Address>
                     <int1:Addr1>164 Anyhere</int1:Addr1>
                     <int1:City>Saint John</int1:City>
                     <int1:CountryCode>CDN</int1:CountryCode>
                     <int1:CountryDescription>Canada</int1:CountryDescription>
                     <int1:PostalCode>e2e2e2</int1:PostalCode>
                     <int1:ProvinceAbbreviation>NB</int1:ProvinceAbbreviation>
                     <int1:ProvinceName>New Brunswick</int1:ProvinceName>
                  </int1:Address>
                   <int1:CVV>377</int1:CVV>
                  <int1:Email>email@email.com</int1:Email>
                  <int1:ExpireYear>2017</int1:ExpireYear>
                  <int1:ExpiryMonth>12</int1:ExpiryMonth>
                  <int1:Firstname>John</int1:Firstname>
                  <int1:Lastname>Doe</int1:Lastname>
                  <int1:Number>4111111111111111</int1:Number>
                  <int1:TypeCode>VI</int1:TypeCode>
  			</int1:CreditCardPayment> 
               <int1:CurrencyCode>USD</int1:CurrencyCode>
               <int1:PaymentType>CreditCard</int1:PaymentType>
               <int1:ProcessingFee>0</int1:ProcessingFee>
               <int1:ProcessingFeeTax>0</int1:ProcessingFeeTax>
            </int:Payment>
            <int:RequestedItems>
               <int2:PurchaseRequestItem>
               <int2:LegNumber>1</int2:LegNumber>
                  <int2:AirportAllocID>15263</int2:AirportAllocID> <----- Obtained through GetAirportAllocations()
				  <int2:PaxGroupID>24403</int2:PaxGroupID>         <----- Obtained through GetReservation()
               </int2:PurchaseRequestItem>
            </int:RequestedItems>
            <int:ReservationNumber>1007151</int:ReservationNumber>
         </tem:req>
      </tem:PurchaseItems>
   </soapenv:Body>

UserProfile Service

 


Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacesSDD
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "apiv3" and type = "page" and space = "SDD"
labelsAPIv3

...