UpdateOrder (automation API)

This function allows you to update certain fields on orders.

Note that the goods owner SOAP API contains a function with the exact same name. So we have:

  1. UpdateOrder in the goods owner SOAP API.
  2. UpdateOrder in the automation API (the function described on this page).
These two functions are very similar. However, the UpdateOrders function in the automation API (the function described in this page) allows you to update any order regardless of which goods owner the order belongs to.

Tags: UpdateOrder, AutomationUpdateOrder, UpdateOrderWaybill, UpdateOrderTransporterOrderNumber, UpdateOrderTransporterFreightWeight, UpdateOrderFreightPrice, UpdateOrderInvoiceUrl, UpdateOrderComment, UpdateOrderStatus, UpdateOrderTransporterContract, UpdateOrderWarehouseInstruction, UpdateOrderReturnWaybill, UpdateOrderInvoiceTypeCode, UpdateOrderTermsOfDeliveryType, UpdateOrderServicePointCode, UpdateOrderWayOfDeliveryType, UpdateOrderSetTransportPrinted, UpdatePreparedTransportDocumentId, UpdateOrderSortLocation, UpdateOrderClasses, UpdateOrderShippedTime, UpdateOrderAutomationClearPersonallyIdentifiableInformation, UpdateOrderRemoveFromPickOrder, UpdateOrderCustomerAndNotification, TransporterContractClass, UpdateOrderTracking, OrderClasses, Customer, OrderNotification, OrderClass, Coordinates, InvoiceAddress, CustomerGroup, AddressClasses, CustomerAdvanced, CustomerClasses, AddressClassClass, CustomerTransportContract, CustomerClass, UpdateOrderResponse, AutomationUpdateOrderResult

Request XML

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

<?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>
    <UpdateOrder xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Order>
        <OrderId>int</OrderId>
        <UpdateOrderWaybill>
          <Waybill>string</Waybill>
        </UpdateOrderWaybill>
        <UpdateOrderTransporterOrderNumber>
          <TransporterOrderNumber>string</TransporterOrderNumber>
        </UpdateOrderTransporterOrderNumber>
        <UpdateOrderTransporterFreightWeight>
          <TransporterFreightWeight>decimal</TransporterFreightWeight>
        </UpdateOrderTransporterFreightWeight>
        <UpdateOrderFreightPrice>
          <FreightPrice>decimal</FreightPrice>
        </UpdateOrderFreightPrice>
        <UpdateOrderInvoiceUrl>
          <InvoiceUrl>string</InvoiceUrl>
        </UpdateOrderInvoiceUrl>
        <UpdateOrderComment>
          <Comment>string</Comment>
        </UpdateOrderComment>
        <UpdateOrderStatus>
          <OrderStatus>int</OrderStatus>
        </UpdateOrderStatus>
        <UpdateOrderTransporterContract>
          <TransporterContract>
            <TransporterContractIdentification>CodeAndServiceCodeAndCustomerNumber or CodeAndServiceCode or Code or ServiceCode or FiltersSpecified</TransporterContractIdentification>
            <TransporterContractOperation>Find or CreateOrUpdate</TransporterContractOperation>
            <TransportPayment>Collect or Prepaid or ThirdParty or UnKnown</TransportPayment>
            <TransporterCode>string</TransporterCode>
            <TransporterServiceCode>string</TransporterServiceCode>
            <CustomerNumber>string</CustomerNumber>
            <ConsigneePalletCustomerNumber>string</ConsigneePalletCustomerNumber>
            <EDICustomerCode>string</EDICustomerCode>
            <WaybillTemplate>string</WaybillTemplate>
          </TransporterContract>
        </UpdateOrderTransporterContract>
        <UpdateOrderWarehouseInstruction>
          <WarehouseInstruction>string</WarehouseInstruction>
        </UpdateOrderWarehouseInstruction>
        <UpdateOrderReturnWaybill>
          <ReturnWaybill>string</ReturnWaybill>
        </UpdateOrderReturnWaybill>
        <UpdateOrderInvoiceTypeCode>
          <InvoiceTypeCode>string</InvoiceTypeCode>
        </UpdateOrderInvoiceTypeCode>
        <UpdateOrderTermsOfDeliveryType>
          <Operation>Find or FindOrCreate</Operation>
          <Identification>TermsOfDeliveryTypeCode</Identification>
          <TermsOfDeliveryTypeCode>string</TermsOfDeliveryTypeCode>
          <TermsOfDeliveryTypeName>string</TermsOfDeliveryTypeName>
        </UpdateOrderTermsOfDeliveryType>
        <UpdateOrderServicePointCode>
          <ServicePointCode>string</ServicePointCode>
        </UpdateOrderServicePointCode>
        <UpdateOrderWayOfDeliveryType>
          <Operation>Find or FindOrCreate</Operation>
          <Identification>WayOfDeliveryTypeCode</Identification>
          <WayOfDeliveryTypeCode>string</WayOfDeliveryTypeCode>
          <WayOfDeliveryTypeName>string</WayOfDeliveryTypeName>
        </UpdateOrderWayOfDeliveryType>
        <SetTransportPrinted>
          <Tracking>
            <Url>string</Url>
            <Waybill>string</Waybill>
            <Operation>Create or ClearAndCreate</Operation>
          </Tracking>
        </SetTransportPrinted>
        <UpdatePreparedTransportDocumentId>
          <PreparedTransportDocumentId>string</PreparedTransportDocumentId>
        </UpdatePreparedTransportDocumentId>
        <UpdateOrderSortLocation>
          <OrderSortLocation>string</OrderSortLocation>
        </UpdateOrderSortLocation>
        <UpdateOrderSetOrderClasses>
          <OrderClasses>
            <Operation>FindOrCreate or Find</Operation>
            <Identification>Code</Identification>
            <Classes>
              <Class>
                <Name>string</Name>
                <Code>string</Code>
                <Comment>string</Comment>
                <IsPalletTypeSuggestion>boolean</IsPalletTypeSuggestion>
              </Class>
              <Class>
                <Name>string</Name>
                <Code>string</Code>
                <Comment>string</Comment>
                <IsPalletTypeSuggestion>boolean</IsPalletTypeSuggestion>
              </Class>
            </Classes>
          </OrderClasses>
        </UpdateOrderSetOrderClasses>
        <UpdateOrderAddOrderClasses>
          <OrderClasses>
            <Operation>FindOrCreate or Find</Operation>
            <Identification>Code</Identification>
            <Classes>
              <Class>
                <Name>string</Name>
                <Code>string</Code>
                <Comment>string</Comment>
                <IsPalletTypeSuggestion>boolean</IsPalletTypeSuggestion>
              </Class>
              <Class>
                <Name>string</Name>
                <Code>string</Code>
                <Comment>string</Comment>
                <IsPalletTypeSuggestion>boolean</IsPalletTypeSuggestion>
              </Class>
            </Classes>
          </OrderClasses>
        </UpdateOrderAddOrderClasses>
        <UpdateOrderShippedTime>
          <ShippedTime>dateTime</ShippedTime>
        </UpdateOrderShippedTime>
        <UpdateOrderClearPersonallyIdentifiableInformation>
          <Operation>Clear</Operation>
        </UpdateOrderClearPersonallyIdentifiableInformation>
        <UpdateOrderRemoveFromPickOrder>
          <Operation>RemoveAllOrderLinesFromPickOrder</Operation>
        </UpdateOrderRemoveFromPickOrder>
        <UpdateOrderCustomerAndNotification>
          <Customer>
            <CustomerOperation>Create or CreateOrUpdate or CreateNotUpdate or Find</CustomerOperation>
            <CustomerIdentification>ExternalCustomerCode or SystemId or CustomerNumber or FullNameAndAddress</CustomerIdentification>
            <ExternalCustomerCode>string</ExternalCustomerCode>
            <CustomerNumber>string</CustomerNumber>
            <CustomerId>int</CustomerId>
            <DeliveryAddressId>int</DeliveryAddressId>
            <InvoiceAddressId>int</InvoiceAddressId>
            <Coordinates>
              <Longitude>decimal</Longitude>
              <Latitude>decimal</Latitude>
            </Coordinates>
            <Name>string</Name>
            <Address>string</Address>
            <Address2>string</Address2>
            <Address3>string</Address3>
            <PostCode>string</PostCode>
            <City>string</City>
            <TelePhone>string</TelePhone>
            <Remark>string</Remark>
            <Email>string</Email>
            <MobilePhone>string</MobilePhone>
            <CountryCode>string</CountryCode>
            <CountryStateCode>string</CountryStateCode>
            <DeliveryInstruction>string</DeliveryInstruction>
            <IsVisible>boolean</IsVisible>
            <NotifyBySMS>boolean</NotifyBySMS>
            <NotifyByEmail>boolean</NotifyByEmail>
            <NotifyByTelephone>boolean</NotifyByTelephone>
            <InvoiceAddress>
              <Coordinates>
                <Longitude>decimal</Longitude>
                <Latitude>decimal</Latitude>
              </Coordinates>
              <Name>string</Name>
              <Address>string</Address>
              <Address2>string</Address2>
              <Address3>string</Address3>
              <PostCode>string</PostCode>
              <City>string</City>
              <TelePhone>string</TelePhone>
              <Remark>string</Remark>
              <Email>string</Email>
              <MobilePhone>string</MobilePhone>
              <CountryStateCode>string</CountryStateCode>
              <CountryCode>string</CountryCode>
              <DeliveryInstruction>string</DeliveryInstruction>
              <IsVisible>boolean</IsVisible>
              <NotifyBySMS>boolean</NotifyBySMS>
              <NotifyByEmail>boolean</NotifyByEmail>
              <NotifyByTelephone>boolean</NotifyByTelephone>
              <AddressClasses>
                <Operation>FindOrCreate or Find</Operation>
                <Identification>Code</Identification>
                <AssignAddressClassMode>NoAssign or Add or Set</AssignAddressClassMode>
                <Classes>
                  <Class>
                    <Name>string</Name>
                    <Code>string</Code>
                    <Comment>string</Comment>
                  </Class>
                  <Class>
                    <Name>string</Name>
                    <Code>string</Code>
                    <Comment>string</Comment>
                  </Class>
                </Classes>
              </AddressClasses>
            </InvoiceAddress>
            <CustomerGroup>
              <CustomerGroupOperation>Find or CreateOrFind</CustomerGroupOperation>
              <CustomerGroupIdentification>CustomerGroupCode or CustomerGroupName</CustomerGroupIdentification>
              <CustomerGroupCode>string</CustomerGroupCode>
              <CustomerGroupName>string</CustomerGroupName>
            </CustomerGroup>
            <OrganisationNumber>string</OrganisationNumber>
            <VATNumber>string</VATNumber>
            <DoorCode>string</DoorCode>
            <AddressFreeText1>string</AddressFreeText1>
            <AddressFreeText2>string</AddressFreeText2>
            <AddressClasses>
              <Operation>FindOrCreate or Find</Operation>
              <Identification>Code</Identification>
              <AssignAddressClassMode>NoAssign or Add or Set</AssignAddressClassMode>
              <Classes>
                <Class>
                  <Name>string</Name>
                  <Code>string</Code>
                  <Comment>string</Comment>
                </Class>
                <Class>
                  <Name>string</Name>
                  <Code>string</Code>
                  <Comment>string</Comment>
                </Class>
              </Classes>
            </AddressClasses>
            <Advanced>
              <CustomerTransportContracts>
                <CustomerTransportContract>
                  <TransporterCode>string</TransporterCode>
                  <CustomerNumber>string</CustomerNumber>
                  <PalletRegistrationNumber>string</PalletRegistrationNumber>
                </CustomerTransportContract>
                <CustomerTransportContract>
                  <TransporterCode>string</TransporterCode>
                  <CustomerNumber>string</CustomerNumber>
                  <PalletRegistrationNumber>string</PalletRegistrationNumber>
                </CustomerTransportContract>
              </CustomerTransportContracts>
            </Advanced>
            <CustomerClasses>
              <Operation>FindOrCreate or Find</Operation>
              <Identification>Code</Identification>
              <AssignCustomerClassMode>NoAssign or Add or Set</AssignCustomerClassMode>
              <Classes>
                <Class>
                  <Name>string</Name>
                  <Code>string</Code>
                  <Comment>string</Comment>
                </Class>
                <Class>
                  <Name>string</Name>
                  <Code>string</Code>
                  <Comment>string</Comment>
                </Class>
              </Classes>
            </CustomerClasses>
          </Customer>
          <OrderNotification>
            <Telephone>string</Telephone>
            <MobilePhone>string</MobilePhone>
            <Email>string</Email>
            <NotifyByEmail>boolean</NotifyByEmail>
            <NotifyBySms>boolean</NotifyBySms>
            <NotifyByTelephone>boolean</NotifyByTelephone>
          </OrderNotification>
        </UpdateOrderCustomerAndNotification>
      </Order>
    </UpdateOrder>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateOrder
UserName string(50) Req. Your username
Password string(50) Req. Your password
Order AutomationUpdateOrder Req.
AutomationUpdateOrder
OrderId int Req. The order id of the order which you want to update
UpdateOrderWaybill UpdateOrderWaybill An object specifying the new waybill.
UpdateOrderTransporterOrderNumber UpdateOrderTransporterOrderNumber An object specifying the new transporter order number.
UpdateOrderTransporterFreightWeight UpdateOrderTransporterFreightWeight An object specifying the new transporter freight weight.
UpdateOrderFreightPrice UpdateOrderFreightPrice An object specifying the new freight price.
UpdateOrderInvoiceUrl UpdateOrderInvoiceUrl An object specifying the new invoice URL.
UpdateOrderComment UpdateOrderComment An object specifying the new order comment.
UpdateOrderStatus UpdateOrderStatus An object specifying the new order status.
UpdateOrderTransporterContract UpdateOrderTransporterContract An object specifying the new transporter contract.
UpdateOrderWarehouseInstruction UpdateOrderWarehouseInstruction An object specifying the new warehouse instruction.
UpdateOrderReturnWaybill UpdateOrderReturnWaybill An object specifying the new return waybill.
UpdateOrderInvoiceTypeCode UpdateOrderInvoiceTypeCode An object specifying the new invoice type.
UpdateOrderTermsOfDeliveryType UpdateOrderTermsOfDeliveryType An object specifying the new terms of delivery.
UpdateOrderServicePointCode UpdateOrderServicePointCode An object specifying the new order service point code.
UpdateOrderWayOfDeliveryType UpdateOrderWayOfDeliveryType An object specifying the new way of delivery type.
SetTransportPrinted UpdateOrderSetTransportPrinted Note that inclusion of this (even if empty) will create a transport status event indicating that transport labels have been printed, which may affect other integrations.
UpdatePreparedTransportDocumentId UpdatePreparedTransportDocumentId An object specifying the new prepared transporter document id.
UpdateOrderSortLocation UpdateOrderSortLocation An object specifying the new order sort location.
UpdateOrderSetOrderClasses UpdateOrderClasses Set the order classes on the order. If a certain class is already on the order, and you _i_don'tbackslash_i include it when you make the API call, the order class will be deleted from the order.
UpdateOrderAddOrderClasses UpdateOrderClasses Add order classes to the order. If order already has some order classes, then they will be left alone.
UpdateOrderShippedTime UpdateOrderShippedTime The new time for when the order was shipped
UpdateOrderClearPersonallyIdentifiableInformation UpdateOrderAutomationClearPersonallyIdentifiableInformation Used if you want to clear personally identifiable information from an order. Note that this operation can fail, for instance if the has a status <= 400, or if the customer has another order which is not yet finished.
UpdateOrderRemoveFromPickOrder UpdateOrderRemoveFromPickOrder Used if you want to remove the order from its pick order(s). The order lines will be removed from any pick order they belong to.
UpdateOrderCustomerAndNotification UpdateOrderCustomerAndNotification An object specifying the new or updated customer and notifications, including order delivery/invoice address.
UpdateOrderWaybill
Waybill string(50) The new waybill of the order.
UpdateOrderTransporterOrderNumber
TransporterOrderNumber string(150) The new transporter order number of the order.
UpdateOrderTransporterFreightWeight
TransporterFreightWeight decimal The new freight weight of the order.
UpdateOrderFreightPrice
FreightPrice decimal The new freight price of the order.
UpdateOrderInvoiceUrl
InvoiceUrl string(200) The new invoice URL of the order.
UpdateOrderComment
Comment string(500) The new order comment.
UpdateOrderStatus
OrderStatus int The new order status.
UpdateOrderTransporterContract
TransporterContract TransporterContractClass The new transporter contract.
UpdateOrderWarehouseInstruction
WarehouseInstruction string(500) The new warehouse instruction for the order.
UpdateOrderReturnWaybill
ReturnWaybill string(50) The new return waybill of the order.
UpdateOrderInvoiceTypeCode
InvoiceTypeCode string(50) The new invoice type code of the order.
UpdateOrderTermsOfDeliveryType
Operation enum Find or FindOrCreate.
Identification enum Must be the fixed value TermsOfDeliveryTypeCode.
TermsOfDeliveryTypeCode string(50) The code of the terms of delivery.
TermsOfDeliveryTypeName string(100) The name of the terms of delivery.
UpdateOrderServicePointCode
ServicePointCode string(50) The new return service point code of the order.
UpdateOrderWayOfDeliveryType
Operation enum Find or FindOrCreate.
Identification enum Fixed value WayOfDeliveryTypeCode.
WayOfDeliveryTypeCode string(300) The code of the way of delivery type.
WayOfDeliveryTypeName string(100) The name of the way of delivery type.
UpdateOrderSetTransportPrinted
Tracking UpdateOrderTracking An object specifying the tracking number and URL.
UpdatePreparedTransportDocumentId
PreparedTransportDocumentId string(100) The new prepared transport document id of the order.
UpdateOrderSortLocation
OrderSortLocation string(100) The new order sort location of the order.
UpdateOrderClasses
OrderClasses OrderClasses Add order classes on the order. If the order already has some order classes, they will not be deleted.
UpdateOrderShippedTime
ShippedTime dateTime The new shipped time stamp on the order.
UpdateOrderAutomationClearPersonallyIdentifiableInformation
Operation enum Set to Clear if you wish to clear personally identifiable information from the order.
UpdateOrderRemoveFromPickOrder
Operation enum Set to RemoveAllOrderLinesFromPickOrder to remove all order lines connected to the order from its pick order(s)
UpdateOrderCustomerAndNotification
Customer Customer The new or updated customer for the order.
OrderNotification OrderNotification The new or updated notifications for the order.
TransporterContractClass
TransporterContractIdentification enum Req. Defines what you want to identify the transporter contract by:
 - FiltersSpecified
 - CodeAndServiceCodeAndCustomerNumber
 - CodeAndServiceCode
 - Code
 - ServiceCode
Most integrations will use FiltersSpecified, which will cause the system to try to find the best match given the filters that you have specified.
TransporterContractOperation enum Req. Defines the operation:
 - Find
 - CreateOrUpdate
Most integrations will use Find
TransportPayment enum Req. Defines who will pay for the transport:
 - Collect – the consignee pays the freight. Should include CustomerNumber, the receiver's account number with the transporter, to correctly identify the transporter contract.
 - Prepaid – the sender pays the freight. Optionally uses EDICustomerCode, WaybillTemplate and CustomerNumber for sender-specific carrier account details.
 - ThirdParty – a third party pays the freight. Should include CustomerNumber, that third party's transporter account number, to correctly identify the transporter contract.
 - UnKnown – the consignee picks up the goods themselves. No transporter contract will be set on the order.
Most integrations will use Prepaid.
TransporterCode string(50) Transporter code. See GetTransporterContracts for available codes. Required if TransporterContractIdentification = CodeAndServiceCodeAndCustomerNumber, CodeAndServiceCode or Code
TransporterServiceCode string(50) Transporter service code. See GetTransporterContracts for available codes. Required if TransporterContractIdentification = CodeAndServiceCodeAndCustomerNumber, CodeAndServiceCode or ServiceCode
CustomerNumber string(50) Customer number at the transporter. Usually not needed if TransportPayment = PrePaid
ConsigneePalletCustomerNumber string(50) Pallet reg number
EDICustomerCode string(200) Often the code defining the sender in the TA system
WaybillTemplate string(100) Waybill template
UpdateOrderTracking
Url string(300) Tracking URL for order
Waybill string(50) Waybill for order
Operation enum Determines if you want to clear existing tracking numbers before adding the new tracking number.
OrderClasses
Operation enum Req. Defines the operation for each class:
 - Find
 - FindOrCreate
Most integrations will use FindOrCreate
Identification enum Req. Defines what you want to identify each class. Currently there is only one type of valid identification:
 - Code - identifies the class using the code
Classes OrderClass[] Req. A list of Class objects, each object representing one order class.
Customer
CustomerOperation enum Req. Defines the operation:
 - Create
 - CreateOrUpdate
 - CreateNotUpdate
 - Find
CustomerIdentification enum Req. Defines what you want to identify the customer by. We recommend that you use FullNameAndAddress or CustomerNumber.
 - ExternalCustomerCode
 - SystemId
 - CustomerNumber
 - FullNameAndAddress
ExternalCustomerCode string(50) External customer code. Required if CustomerIdentification = ExternalCustomerCode
CustomerNumber string(50) Customer number. Required if CustomerIdentification = CustomerNumber
CustomerId int Ongoing WMS internal id (SystemId). Required if CustomerIdentification = SystemId
DeliveryAddressId int Only usable when the Customer tag is used within the ProcessOrder request and CustomerOperation = Find. Binds the delivery address of the order directly to the Ongoing WMS system id of the address
InvoiceAddressId int Only usable when the Customer tag is used within the ProcessOrder request and CustomerOperation = Find. Binds the invoice address of the order to the Ongoing WMS system id of the address
Coordinates Coordinates Coordinates of customer
Name string(200) Name
Address string(200) Address line 1
Address2 string(200) Address line 2
Address3 string(200) Address line 3
PostCode string(50) Post code/zip
City string(200) City
TelePhone string(50) Telephone number (non cellular)
Remark string(800) Remark/comment
Email string(300) Email address
MobilePhone string(50) Mobile phone number (cellular)
CountryCode string(2) The two-letter ISO 3166-1 alpha-2 code of the country.
CountryStateCode string(50) The two-letter ISO 3166-2 abbreviation of the state. Required for United States and Canada. See ISO 3166-2:US for United States and ISO 3166-2:CA for Canada.
DeliveryInstruction string(300) Delivery instruction
IsVisible boolean False if the address shouldn't show in the system, e.g. be re-used for manual order
NotifyBySMS boolean True if the customer should be notified by the transporter through SMS
NotifyByEmail boolean True if the customer should be notified by the transporter through email
NotifyByTelephone boolean True if the customer should be notified by the transporter through phone call
InvoiceAddress InvoiceAddress Address object defining invoice address for the customer. Fields from Coordinates to NotifyByTelephone from the Customer object apply
CustomerGroup CustomerGroup Customer group, enable grouping of customers
OrganisationNumber string(20) Organisation number
VATNumber string(20) VAT number
DoorCode string(30) Door code, may be sent to transporter for use during delivery
AddressFreeText1 string(400) A free text field for the address
AddressFreeText2 string(100) A free text field for the address
AddressClasses AddressClasses An object of type AddressClasses, which specifies which classes the delivery address on this order belongs to.
Advanced CustomerAdvanced Advanced fields for the customer
CustomerClasses CustomerClasses An object of type CustomerClasses, which specifies which classes the customer belongs to.
OrderNotification
Telephone string(50) Telephone number (non cellular) to notify by call. Required if NotifyByTelephone = True
MobilePhone string(50) Mobile phone number to notify by SMS. Required if NotifyBySMS = True
Email string(200) Email address to notify. Required if NotifyByEmail = True
NotifyByEmail boolean True if the customer should be notified by the transporter through email
NotifyBySms boolean True if the customer should be notified by the transporter through SMS
NotifyByTelephone boolean True if the customer should be notified by the transporter through phone call
OrderClass
Name string(200) The name of the class.
Code string(200) The code of the class.
Comment string(500) Comment.
IsPalletTypeSuggestion boolean Whether or not this order class is intended to be used as a hint for the type of packaging which is suitable for the order.
Coordinates
Longitude decimal Req. Longitude
Latitude decimal Req. Latitude
InvoiceAddress
Coordinates Coordinates Coordinates of the invoice address
Name string(200) Name
Address string(200) Address line 1
Address2 string(200) Address line 2
Address3 string(200) Address line 3
PostCode string(50) Post code/zip
City string(200) City
TelePhone string(50) Telephone number (non cellular)
Remark string(800) Remark/comment
Email string(300) Email address
MobilePhone string(50) Mobile phone number (cellular)
CountryStateCode string(50) The two-letter ISO 3166-2 abbreviation of the state. Mainly used for United States and Canada. See ISO 3166-2:US for United States and ISO 3166-2:CA for Canada.
CountryCode string(2) The two-letter ISO 3166-1 alpha-2 code of the country.
DeliveryInstruction string(300) Delivery instruction
IsVisible boolean False if the address shouldn't show in the system, e.g. be re-used for manual order
NotifyBySMS boolean True if the customer should be notified by the transporter through SMS
NotifyByEmail boolean True if the customer should be notified by the transporter through email
NotifyByTelephone boolean True if the customer should be notified by the transporter through phone call
AddressClasses AddressClasses An object of type AddressClasses, which specifies which classes the invoice address on this order belongs to.
CustomerGroup
CustomerGroupOperation enum Req. Defines the operation. Currently the possible values are 'Find' and 'CreateOrFind'.
CustomerGroupIdentification enum Req. Defines what you want to identify the customer group by
 - CustomerGroupCode
 - CustomerGroupName
CustomerGroupCode string
CustomerGroupName string Customer group name. Required if CustomerGroupIdentification = CustomerGroupName
AddressClasses
Operation enum Req. Defines the operation for each class:
 - Find
 - FindOrCreate
Most integrations will use FindOrCreate
Identification enum Req. Defines what you want to identify each class. Currently there is only one type of valid identification:
 - Code - identifies the class using the code
AssignAddressClassMode enum An element of type AssignAddressClassMode.
Classes AddressClassClass[] Req. A list of Class objects, each object representing one address class.
CustomerAdvanced
CustomerTransportContracts CustomerTransportContract[]
CustomerClasses
Operation enum Req. Defines the operation for each class:
 - Find
 - FindOrCreate
Most integrations will use FindOrCreate
Identification enum Req. Defines what you want to identify each class. Currently there is only one type of valid identification:
 - Code - identifies the class using the code
AssignCustomerClassMode enum An element of type AssignCustomerClassMode.
Classes CustomerClass[] Req. A list of Class objects, each object representing one customer class.
AddressClassClass
Name string(200) The name of the class.
Code string(200) The code of the class.
Comment string(500) Comment.
CustomerTransportContract
TransporterCode string
CustomerNumber string
PalletRegistrationNumber string
CustomerClass
Name string(200) The name of the class.
Code string(200) The code of the class.
Comment string(500) Comment.

Response XML

<?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>
    <UpdateOrderResponse xmlns="http://ongoingsystems.se/Automation">
      <UpdateOrderResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <OrderId>int</OrderId>
      </UpdateOrderResult>
    </UpdateOrderResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UpdateOrderResponse
UpdateOrderResult AutomationUpdateOrderResult
AutomationUpdateOrderResult
Success boolean True if successful, false otherwise.
Message string Error message, if the call was unsuccessful.
OrderId int Ongoing WMS internal order id of the order.