ActualizeOrder

ActualizeOrder

Order status update. This request can update order information from the WebSkyTech back-office or update the status of payment transactions.

Request parameters

  • OrderID - order number from the back office of WebSkyTech. To get the parameter value for an order, it is required to run a GetOrder request with specifying the FlightsBookingID parameter (Booking ID from API WebSkyTech).
  • ActualizePayment - allows to send a request to the payment system to update the status of the payment transaction. Possible values: true/false.
  • ActualizeFlightsBooking - initiates an UpdateBook request to API WebSkyTech. Possible values: true/false.
  • CallbackUrl - address to which callback from WebSkyTech with information on order (PNR) status after its change will be returned (booked/ticketed/cancelled). Example: http(s)://domain.
  • PaymentBackRedirectUrl - URL address for the following redirect after a successful payment. http(s)://domain/query?parameters.
  • PaymentBackRedirectUrlFailure - URL address for the following redirect after a failed payment (optional parameter).
  • AuthToken - API key issued by WebSkyTech staff.
  • UserID - user ID in the WebSkyTech system issued by WebSkyTech staff.

Response parameters

Identical to the parameters from GetOrder.

Sample request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="***">
   <soapenv:Header/>
   <soapenv:Body>
      <ver:ActualizeOrder>
         <Request>
            <RequestBody>
               <OrderID>500243</OrderID>
               <ActualizePayment>true</ActualizePayment>
               <ActualizeFlightsBooking>true</ActualizeFlightsBooking>
               <CallbackUrl>http://callbackurl.com</CallbackUrl>
               <PaymentBackRedirectUrl>http://test.com</PaymentBackRedirectUrl>
            </RequestBody>
            <Requisites>
               <AuthToken>YOUR_TOKEN</AuthToken>
            </Requisites>
            <UserID>YOUR_ID</UserID>
         </Request>
      </ver:ActualizeOrder>
   </soapenv:Body>
</soapenv:Envelope>

Sample response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="***" xmlns:xsi="***">
   <SOAP-ENV:Body>
      <ns1:ActualizeOrderResponse>
         <ResponseBin>
            <OrderID>500243</OrderID>
            <Services>
               <Service>
                  <ServicePack>
                     <Packages>
                        <Package>
                           <Items>
                              <Item>
                                 <ID>167</ID>
                                 <Price Currency="EUR">4</Price>
                                 <Name>Service 1</Name>
                                 <ShortDescription>Short description of service 1</ShortDescription>
                                 <FullDescription>Full description of service 1</FullDescription>
                              </Item>
                              <Item>
                                 <ID>168</ID>
                                 <Price Currency="EUR">0</Price>
                                 <Name>Service 2</Name>
                                 <ShortDescription>Short description of service 2</ShortDescription>
                                 <FullDescription>Full description of service 2</FullDescription>
                              </Item>
                           </Items>
                           <ID>120</ID>
                           <Price Currency="EUR">0</Price>
                           <Name>Service package 1</Name>
                           <ShortDescription>Short description of service package 1</ShortDescription>
                           <FullDescription>Full description of service package 1</FullDescription>
                        </Package>
                        <Package>
                           <Items>
                              <Item>-
                                 <ID>169</ID>
                                 <Price Currency="EUR">0</Price>
                                 <Name>Service 1</Name>
                                 <ShortDescription>Short description of service 1</ShortDescription>
                                 <FullDescription>Full description of service 1</FullDescription>
                              </Item>
                              <Item>
                                 <ID>170</ID>
                                 <Price Currency="EUR">0</Price>
                                 <Name>Service 2</Name>
                                 <ShortDescription>Short description of service 2</ShortDescription>
                                 <FullDescription>Full description of service 2</FullDescription>
                              </Item>
                           </Items>
                           <ID>121</ID>
                           <Price Currency="EUR">10</Price>
                           <Name>Service package 2</Name>
                           <ShortDescription>Short description of service package 2</ShortDescription>
                           <FullDescription>Full description of service package 2</FullDescription>
                        </Package>
                     </Packages>
                     <IsEditable>true</IsEditable>
                     <SelectedPackageId>120</SelectedPackageId>
                  </ServicePack>
               </Service>
               <Service>
                  <Flight>
                     <FlightsBookingID>90398</FlightsBookingID>
                  </Flight>
               </Service>
            </Services>
            <PriceBreakdown Type="Order">
               <Price Currency="EUR">47</Price>
               <Parts>
                  <Part Type="Service">
                     <Price Currency="EUR">46</Price>
                     <Parts>
                        <Part Type="Flight">
                           <Price Currency="EUR">46</Price>
                           <Parts/>
                        </Part>
                        <Part Type="Upsale">
                           <Price Currency="EUR">0</Price>
                           <Parts/>
                        </Part>
                     </Parts>
                  </Part>
                  <Part Type="Charge">
                     <Price Currency="EUR">1</Price>
                     <Parts>
                        <Part Type="AgencyCharge">
                           <Price Currency="EUR">1</Price>
                           <Parts/>
                        </Part>
                        <Part Type="PaymentCharge">
                           <Price Currency="EUR">0</Price>
                           <Parts/>
                        </Part>
                     </Parts>
                  </Part>
               </Parts>
            </PriceBreakdown>
            <OrderStatus>Booked</OrderStatus>
            <PaymentStatus>NotPaid</PaymentStatus>
            <PaymentTransactions>
               <Transaction>
                  <Id>117916756</Id>
                  <ClientTransactionId/>
                  <Status>Cancelled</Status>
                  <GatewayName>Card payment</GatewayName>
                  <MoneyPaid Currency="EUR">0</MoneyPaid>
                  <PaymentDateTime/>
                  <CreateDateTime>2018-06-08T19:08:23</CreateDateTime>
                  <Description/>
                  <PaymentMethodId>2308</PaymentMethodId>
               </Transaction>
               <Transaction>
                  <Id>117916755</Id>
                  <ClientTransactionId/>
                  <Status>New</Status>
                  <GatewayName>Card payment 2</GatewayName>
                  <MoneyPaid Currency="EUR">0</MoneyPaid>
                  <PaymentDateTime/>
                  <CreateDateTime>2018-06-08T19:08:23</CreateDateTime>
                  <Description/>
                  <PaymentMethodId>2340</PaymentMethodId>
               </Transaction>
            </PaymentTransactions>
         </ResponseBin>
      </ns1:ActualizeOrderResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>