UpdateInOrder

There are two ways of updating an inorder after it has been created:

  1. You can either send in a new ProcessInOrder request with the same inorder number, or
  2. You can use this function, UpdateInOrder.

Generally speaking, you should use ProcessInOrder. The main issue is that ProcessInOrder can only update an inorder if the warehouse has not begun goods reception. So if you have a use-case where you know that you will need to update an inorder regardless of its status, then you should consider using UpdateInOrder.

Tags: UpdateInOrder, UpdateInOrder, InOrderUpdateIdentification, UpdateInOrderStatus, UpdateInOrderFreeText1, UpdateInOrderFreeText2, UpdateInOrderFreeText3, UpdateInOrderFreeBool1, UpdateInOrderInDate, UpdateInOrderAdvisedDate, UpdateInOrderGoodsOwnerOrderNumber, UpdateInOrderShipment, UpdateInOrderResponse, UpdateInOrderResult

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/UpdateInOrder"

<?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>
    <UpdateInOrder xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <updateInOrder>
        <InOrderUpdateIdentification>
          <InOrderIdentificationType>GoodsOwnerOrderNumber or SystemId</InOrderIdentificationType>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
          <InOrderId>int</InOrderId>
        </InOrderUpdateIdentification>
        <UpdateInOrderStatus>
          <InOrderStatus>int</InOrderStatus>
        </UpdateInOrderStatus>
        <UpdateInOrderFreeText1>
          <FreeText1>string</FreeText1>
        </UpdateInOrderFreeText1>
        <UpdateInOrderFreeText2>
          <FreeText2>string</FreeText2>
        </UpdateInOrderFreeText2>
        <UpdateInOrderFreeText3>
          <FreeText3>string</FreeText3>
        </UpdateInOrderFreeText3>
        <UpdateInOrderFreeBool1>
          <FreeBool1>boolean</FreeBool1>
        </UpdateInOrderFreeBool1>
        <UpdateInOrderInDate>
          <InDate>dateTime</InDate>
        </UpdateInOrderInDate>
        <UpdateInOrderAdvisedDate>
          <AdvisedDate>dateTime</AdvisedDate>
        </UpdateInOrderAdvisedDate>
        <UpdateInOrderGoodsOwnerOrderNumber>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        </UpdateInOrderGoodsOwnerOrderNumber>
        <UpdateInOrderShipment>
          <ShipmentId>int</ShipmentId>
        </UpdateInOrderShipment>
      </updateInOrder>
    </UpdateInOrder>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateInOrder
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
updateInOrder UpdateInOrder Req. An element updateInOrder.
UpdateInOrder
InOrderUpdateIdentification InOrderUpdateIdentification Req. An element of type InOrderUpdateIdentification.
UpdateInOrderStatus UpdateInOrderStatus The new status of the inorder
UpdateInOrderFreeText1 UpdateInOrderFreeText1 The new FreeText1 of the inorder
UpdateInOrderFreeText2 UpdateInOrderFreeText2 The new FreeText2 of the inorder
UpdateInOrderFreeText3 UpdateInOrderFreeText3 The new FreeText3 of the inorder
UpdateInOrderFreeBool1 UpdateInOrderFreeBool1 The new FreeBool1 of the inorder
UpdateInOrderInDate UpdateInOrderInDate The new indate of the inorder
UpdateInOrderAdvisedDate UpdateInOrderAdvisedDate The new advised date of the inorder
UpdateInOrderGoodsOwnerOrderNumber UpdateInOrderGoodsOwnerOrderNumber The new goods owner order number of the inorder
UpdateInOrderShipment UpdateInOrderShipment Add the inorder to a shipment.
InOrderUpdateIdentification
InOrderIdentificationType enum Req. Determines how you want the system to identify the inorder. Must be one of these values:
- GoodsOwnerOrderNumber
- SystemId Ongoing WMS internal id. Required if OrderIdentification = SystemId.
GoodsOwnerOrderNumber string(50) Order number. Required if OrderIdentification = GoodsOwnerOrderNumber.
InOrderId int Ongoing WMS' internal ID for the inorder
UpdateInOrderStatus
InOrderStatus int The new status of the inorder.
UpdateInOrderFreeText1
FreeText1 string(300) The new FreeText1 of the inorder
UpdateInOrderFreeText2
FreeText2 string(50) The new FreeText2 of the inorder
UpdateInOrderFreeText3
FreeText3 string(50) The new FreeText3 of the inorder
UpdateInOrderFreeBool1
FreeBool1 boolean The new FreeBool1 of the inorder
UpdateInOrderInDate
InDate dateTime The new indate of the inorder
UpdateInOrderAdvisedDate
AdvisedDate dateTime The new adviseddate of the inorder
UpdateInOrderGoodsOwnerOrderNumber
GoodsOwnerOrderNumber string The new goods owner order number of the inorder.
UpdateInOrderShipment
ShipmentId int The ShipmentId of the shipment to add the inorder to.

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>
    <UpdateInOrderResponse xmlns="http://ongoingsystems.se/WSI">
      <UpdateInOrderResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <InOrderId>int</InOrderId>
      </UpdateInOrderResult>
    </UpdateInOrderResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UpdateInOrderResponse
UpdateInOrderResult UpdateInOrderResult
UpdateInOrderResult
Success boolean True if successful, false otherwise.
Message string Error message, if the call was unsuccessful.
InOrderId int Ongoing WMS internal inorder id of the inorder.