Ongoing Warehouse Developer

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, 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>
      </updateInOrder>
    </UpdateInOrder>
  </soap:Body>
</soap:Envelope>
+

Request specification

UpdateInOrder
UserName str(50) Req. Your username
Password str(50) Req. Your password
GoodsOwnerCode str(400) Req. The name/code of your client
updateInOrder object Req. An element updateInOrder.
updateInOrder
InOrderUpdateIdentification object Req.
> InOrderIdentificationType enum Req. Determines how you want the system to identify the inorder. Must be one of these values:
- GoodsOwnerOrderNumber
- SystemId
> GoodsOwnerOrderNumber str(50) Req.* Order number. Required if OrderIdentification = GoodsOwnerOrderNumber.
> SystemId int Req.* Ongoing id (SystemId). Required if OrderIdentification = SystemId.
UpdateInOrderStatus object
> InOrderStatus int Req.* The new status of the inorder.

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

Response specification

UpdateInOrderResult
Success bool True if successful, false otherwise.
Message str(*) Error message, if the call was unsuccessful.
InOrderId int The internal Ongoing inorder id of the inorder.