Ongoing Warehouse logo

Ongoing Warehouse Developer

UpdateOrder

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

  1. You can either send in a new ProcessOrder request with the same order number, or
  2. You can use this function, UpdateOrder.

Generally speaking, you should use ProcessOrder. The main issue is that ProcessOrder can only update an order if the warehouse has not begun to pick it. So if you have a use-case where you know that you will need to update an order regardless of its picking status, then you should consider using UpdateOrder.

Tags: UpdateOrder, updateOrder, UpdateOrderResult

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/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/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <updateOrder>
        <OrderUpdateIdentification>
          <OrderIdentificationType>GoodsOwnerOrderNumber or GoodsOwnerOrderId or SystemId</OrderIdentificationType>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
          <GoodsOwnerOrderId>string</GoodsOwnerOrderId>
          <OrderId>int</OrderId>
        </OrderUpdateIdentification>
        <UpdateOrderStatus>
          <OrderStatus>int</OrderStatus>
        </UpdateOrderStatus>
        <UpdateOrderDeliveryDate>
          <DeliveryDate>dateTime</DeliveryDate>
        </UpdateOrderDeliveryDate>
        <UpdateOrderGoodsOwnerOrderNumber>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        </UpdateOrderGoodsOwnerOrderNumber>
        <UpdateOrderWaybill>
          <Waybill>string</Waybill>
        </UpdateOrderWaybill>
        <UpdateOrderTransporterOrderNumber>
          <TransporterOrderNumber>string</TransporterOrderNumber>
        </UpdateOrderTransporterOrderNumber>
      </updateOrder>
    </UpdateOrder>
  </soap:Body>
</soap:Envelope>
+

Request specification

UpdateOrder
UserName str(50) Req. Your username
Password str(50) Req. Your password
GoodsOwnerCode str(400) Req. The name/code of your client
updateOrder object Req. An element updateOrder.
updateOrder
OrderUpdateIdentification object Req.
> OrderIdentificationType enum Req. Determines how you want the system to identify the order. Must be one of these values:
- GoodsOwnerOrderNumber
- GoodsOwnerOrderId
- SystemId
> GoodsOwnerOrderId str(50) Req.* Order number. Required if OrderIdentification = GoodsOwnerOrderNumber.
> GoodsOwnerOrderNumber str(50) Req.* External order id. Required if OrderIdentification = GoodsOwnerOrderNumber.
> SystemId int Req.* Ongoing id (SystemId). Required if OrderIdentification = SystemId .
UpdateOrderStatus object
> OrderStatus int Req.* The new order status of the order.
UpdateOrderDeliveryDate object
> DeliveryDate datetime Req.* The new delivery date of the order.
UpdateOrderGoodsOwnerOrderNumber object
> GoodsOwnerOrderNumber str(50) Req.* The new order number of the order.
UpdateOrderWaybill object
> Waybill str(50) Req.* The new waybill of the order.
UpdateOrderTransporterOrderNumber object
> UpdateOrderTransporterOrderNumber str(150) Req.* The new transporter order number of the order.

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

Response specification

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