Ongoing Warehouse logo

Ongoing Warehouse Developer

GetTransporterContracts

This function is used to see which transport alternatives are set up for a specific goods owner. The correct transporter codes and service codes are needed in order to specify transporter and service when creating/updating an order through ProcessOrder. Transporter Contract is specified in the object TransporterContract when calling ProcessOrder.

GetTransporterContracts can be used to dynamically display freight alternatives for the user in the system integrating with Ongoing Warehouse.

Tags: GetTransporterContracts, GetTransporterContractsResult, TransporterContract, TransporterService

Request XML

POST /xxx/service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/GetTransporterContracts"

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <GetTransporterContracts xmlns="http://ongoingsystems.se/WSI">
         <UserName>string</UserName>
         <Password>string</Password>
         <GoodsOwnerCode>string</GoodsOwnerCode>
      </GetTransporterContracts>
   </soap:Body>
</soap:Envelope>
+

Request specification

GetTransporterContracts
UserName str(50) Req. Your username
Password str(50) Req. Your password
GoodsOwnerCode str(400) Req. The name/code of your client

Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <GetTransporterContractsResponse xmlns="http://ongoingsystems.se/WSI">
         <GetTransporterContractsResult>
            <TransporterContracts>
               <TransporterContract>
                  <TransporterName>string</TransporterName>
                  <TransporterCustomerNumber>string</TransporterCustomerNumber>
                  <EDICustomerCode>string</EDICustomerCode>
                  <TransporterCode>string</TransporterCode>
                  <TransporterServiceCode>string</TransporterServiceCode>
                  <TransporterServices>
                     <TransporterService>
                        <TransporterServiceName>string</TransporterServiceName>
                        <TransporterServiceCode>string</TransporterServiceCode>
                     </TransporterService>
                     <TransporterService>
                        <TransporterServiceName>string</TransporterServiceName>
                        <TransporterServiceCode>string</TransporterServiceCode>
                     </TransporterService>
                  </TransporterServices>
               </TransporterContract>
               <TransporterContract>
                  <TransporterName>string</TransporterName>
                  <TransporterCustomerNumber>string</TransporterCustomerNumber>
                  <EDICustomerCode>string</EDICustomerCode>
                  <TransporterCode>string</TransporterCode>
                  <TransporterServiceCode>string</TransporterServiceCode>
                  <TransporterServices>
                     <TransporterService>
                        <TransporterServiceName>string</TransporterServiceName>
                        <TransporterServiceCode>string</TransporterServiceCode>
                     </TransporterService>
                     <TransporterService>
                        <TransporterServiceName>string</TransporterServiceName>
                        <TransporterServiceCode>string</TransporterServiceCode>
                     </TransporterService>
                  </TransporterServices>
               </TransporterContract>
            </TransporterContracts>
         </GetTransporterContractsResult>
      </GetTransporterContractsResponse>
   </soap:Body>
</soap:Envelope>
+

Request specification

GetTransporterContractsResult
TransporterContracts object Containing elements of TransporterContract
TransporterContract
TransporterName str(80) The name of the transporter
TransporterCustomerNumber str(50) Customer number at the transporter (not always used if defined by sender in TA-system)
EDICustomerCode str(200) Often the code defining the sender in the TA-system
TransporterCode str(50) The code of the transporter
TransporterServiceCode str(50) The code of the transporter service. Often not used, instead the different services and service codes are defined in the TransporterService elements (see below)
TransporterServices object Containing elements of TransporterService
TransporterService
TransporterServiceName str(100) The name of the transporter service
TransporterServiceCode str(50) The code of the transporter service