UpdateProductionOrder

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

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

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

Tags: UpdateProductionOrder, UpdateProductionOrder, UpdateProductionOrderIdentification, UpdateProductionOrderNumber, UpdateProductionOrderComment, UpdateProductionOrderFreeBoolean1, UpdateProductionOrderFreeBoolean2, UpdateProductionOrderResponse, UpdateProductionOrderResult, UpdateProductionOrderError

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

<?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>
    <UpdateProductionOrder xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <UpdateProductionOrder>
        <UpdateProductionOrderIdentification>
          <ProductionOrderIdentificationType>ProductionOrderNumber or ProductionOrderId</ProductionOrderIdentificationType>
          <ProductionOrderNumber>string</ProductionOrderNumber>
          <ProductionOrderId>int</ProductionOrderId>
        </UpdateProductionOrderIdentification>
        <UpdateProductionOrderNumber>
          <ProductionOrderNumber>string</ProductionOrderNumber>
        </UpdateProductionOrderNumber>
        <UpdateProductionOrderComment>
          <ProductionOrderComment>string</ProductionOrderComment>
        </UpdateProductionOrderComment>
        <UpdateProductionOrderFreeBoolean1>
          <ProductionOrderFreeBoolean1>boolean</ProductionOrderFreeBoolean1>
        </UpdateProductionOrderFreeBoolean1>
        <UpdateProductionOrderFreeBoolean2>
          <ProductionOrderFreeBoolean2>boolean</ProductionOrderFreeBoolean2>
        </UpdateProductionOrderFreeBoolean2>
      </UpdateProductionOrder>
    </UpdateProductionOrder>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateProductionOrder
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
UpdateProductionOrder UpdateProductionOrder Req.
UpdateProductionOrder
UpdateProductionOrderIdentification UpdateProductionOrderIdentification An element of type UpdateProductionOrderIdentification.
UpdateProductionOrderNumber UpdateProductionOrderNumber The new order number for the production order.
UpdateProductionOrderComment UpdateProductionOrderComment The new comment for the production order.
UpdateProductionOrderFreeBoolean1 UpdateProductionOrderFreeBoolean1 The new free boolean 2 for the production order.
UpdateProductionOrderFreeBoolean2 UpdateProductionOrderFreeBoolean2 The new free boolean 2 for the production order.
UpdateProductionOrderIdentification
ProductionOrderIdentificationType enum Req. Defines what you want to identify the production order by
 - ProductionOrderNumber
 - ProductionOrderId
ProductionOrderNumber string Production order number. Required if ProductionOrderIdentificationType = ProductionOrderNumber
ProductionOrderId int Production order id. Required if ProductionOrderIdentificationType = ProductionOrderId
UpdateProductionOrderNumber
ProductionOrderNumber string The new order number for the production order.
UpdateProductionOrderComment
ProductionOrderComment string The new comment for the production order.
UpdateProductionOrderFreeBoolean1
ProductionOrderFreeBoolean1 boolean The new value for production order free boolean 1.
UpdateProductionOrderFreeBoolean2
ProductionOrderFreeBoolean2 boolean The new value for production order free boolean 2.

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>
    <UpdateProductionOrderResponse xmlns="http://ongoingsystems.se/WSI">
      <UpdateProductionOrderResult>
        <Errors>
          <UpdateProductionOrderError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InvalidIdentification or ProductionOrderNotFound or ErrorUpdating</ErrorType>
          </UpdateProductionOrderError>
          <UpdateProductionOrderError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InvalidIdentification or ProductionOrderNotFound or ErrorUpdating</ErrorType>
          </UpdateProductionOrderError>
        </Errors>
        <Success>boolean</Success>
        <ProductionOrderId>int</ProductionOrderId>
      </UpdateProductionOrderResult>
    </UpdateProductionOrderResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UpdateProductionOrderResponse
UpdateProductionOrderResult UpdateProductionOrderResult
UpdateProductionOrderResult
Errors UpdateProductionOrderError[] Error details
Success boolean True if successful, false otherwise.
ProductionOrderId int The internal Ongoing WMS shipment id of the shipment.
UpdateProductionOrderError
Message string Message explaining the error.
ErrorType enum An element of type UpdateProductionOrderErrorType.