UpdateOrderLines

UpdateOrderLines is used to update reported number items and/or comment of order lines.

The use cases of this function is described on the page Reported number of items.

Tags: UpdateOrderLines, UpdateOrderLines (2), UpdateOrderIdentification, UpdateOrderLine, UpdateOrderLineIdentification, UpdateOrderLinesResult

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

<?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>
    <UpdateOrderLines xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <UpdateOrderLines>
        <UpdateOrderIdentification>
          <OrderIdentificationType>GoodsOwnerOrderNumber or ReferenceNumber or SystemId or GoodsOwnerOrderId</OrderIdentificationType>
          <GoodsOwnerOrderId>string</GoodsOwnerOrderId>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
          <ReferenceNumber>string</ReferenceNumber>
          <OrderId>int</OrderId>
        </UpdateOrderIdentification>
        <OrderLines>
          <UpdateOrderLine>
            <UpdateOrderLineIdentification>
              <OrderLineIdentificationType>ExternalOrderLineCode or OrderLineId</OrderLineIdentificationType>
              <ExternalOrderLineCode>string</ExternalOrderLineCode>
              <OrderLineId>int</OrderLineId>
            </UpdateOrderLineIdentification>
            <UpdateExternalOrderLineCode>
              <ExternalOrderLineCode>string</ExternalOrderLineCode>
            </UpdateExternalOrderLineCode>
            <UpdateReportedNumberOfItems>
              <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
            </UpdateReportedNumberOfItems>
            <UpdateComment>
              <OrderLineComment>string</OrderLineComment>
            </UpdateComment>
            <UpdateOrderLineReportedReturnedNumberOfItems>
              <ReportedReturnedNumberOfItems>decimal</ReportedReturnedNumberOfItems>
            </UpdateOrderLineReportedReturnedNumberOfItems>
            <UpdateOrderLineAcknowledgedNumberOfItems>
              <AcknowledgedNumberOfItems>decimal</AcknowledgedNumberOfItems>
            </UpdateOrderLineAcknowledgedNumberOfItems>
            <UpdateOrderLineTotalCustomsValue>
              <OrderLineTotalCustomsValue>decimal</OrderLineTotalCustomsValue>
            </UpdateOrderLineTotalCustomsValue>
            <UpdateNumberOfItems>
              <NumberOfItems>decimal</NumberOfItems>
            </UpdateNumberOfItems>
            <UpdateOrderLineType>
              <OrderLineTypeId>int</OrderLineTypeId>
              <OrderLineTypeCode>string</OrderLineTypeCode>
              <UpdateOrderLineTypeIdentification>OrderLineTypeId or OrderLineTypeCode</UpdateOrderLineTypeIdentification>
            </UpdateOrderLineType>
          </UpdateOrderLine>
          <UpdateOrderLine>
            <UpdateOrderLineIdentification>
              <OrderLineIdentificationType>ExternalOrderLineCode or OrderLineId</OrderLineIdentificationType>
              <ExternalOrderLineCode>string</ExternalOrderLineCode>
              <OrderLineId>int</OrderLineId>
            </UpdateOrderLineIdentification>
            <UpdateExternalOrderLineCode>
              <ExternalOrderLineCode>string</ExternalOrderLineCode>
            </UpdateExternalOrderLineCode>
            <UpdateReportedNumberOfItems>
              <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
            </UpdateReportedNumberOfItems>
            <UpdateComment>
              <OrderLineComment>string</OrderLineComment>
            </UpdateComment>
            <UpdateOrderLineReportedReturnedNumberOfItems>
              <ReportedReturnedNumberOfItems>decimal</ReportedReturnedNumberOfItems>
            </UpdateOrderLineReportedReturnedNumberOfItems>
            <UpdateOrderLineAcknowledgedNumberOfItems>
              <AcknowledgedNumberOfItems>decimal</AcknowledgedNumberOfItems>
            </UpdateOrderLineAcknowledgedNumberOfItems>
            <UpdateOrderLineTotalCustomsValue>
              <OrderLineTotalCustomsValue>decimal</OrderLineTotalCustomsValue>
            </UpdateOrderLineTotalCustomsValue>
            <UpdateNumberOfItems>
              <NumberOfItems>decimal</NumberOfItems>
            </UpdateNumberOfItems>
            <UpdateOrderLineType>
              <OrderLineTypeId>int</OrderLineTypeId>
              <OrderLineTypeCode>string</OrderLineTypeCode>
              <UpdateOrderLineTypeIdentification>OrderLineTypeId or OrderLineTypeCode</UpdateOrderLineTypeIdentification>
            </UpdateOrderLineType>
          </UpdateOrderLine>
        </OrderLines>
      </UpdateOrderLines>
    </UpdateOrderLines>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateOrderLines
GoodsOwnerCode str(400) Req. The name/code of your client
UserName str(50) Req. Your username
Password str(50) Req. Your password
UpdateOrderLines object Req. The UpdateOrderLines object
UpdateOrderLines (2)
UpdateOrderIdentification object Req. Specifies the order identification
OrderLines object Req. Contains elements of UpdateOrderLine
UpdateOrderIdentification
OrderIdentificationType enum Req. Defines what you want to identify the order by
 - GoodsOwnerOrderNumber
 - ReferenceNumber
 - SystemId
 - GoodsOwnerOrderId
GoodsOwnerOrderId str(40) External order id. Required if OrderIdentificationType = GoodsOwnerOrderId
GoodsOwnerOrderNumber str(50) Order number. Required if OrderIdentificationType = GoodsOwnerOrderNumber
ReferenceNumber str(50) Reference number. Required if OrderIdentificationType = ReferenceNumber
OrderId int Ongoing WMS id (SystemId). Required if OrderIdentificationType = SystemId
UpdateOrderLine
UpdateOrderLineIdentification object Req. Specifies the order line identification
UpdateExternalOrderLineCode object Use to set new external order line code
> ExternalOrderLineCode string Req. The new ExternalOrderLineCode for the order line
UpdateReportedNumberOfItems object Use to set new reported number of items
> ReportedNumberOfItems decimal Req. The new ReportedNumberOfItems value for the order line
UpdateComment object Use to set new order line comment
> OrderLineComment string Req. The new OrderLineComment for the order line
UpdateOrderLineReportedReturnedNumberOfItems object Use to set the number of reported number of returned items on the orderline
> ReportedReturnedNumberOfItems decimal Req. The new ReportedReturnedNumberOfItems for the order line
UpdateOrderLineAcknowledgedNumberOfItems object Use to set the number of acknowledged number of items on the orderline
> AcknowledgedNumberOfItems decimal Req. The new AcknowledgedNumberOfItems for the order line
UpdateOrderLineTotalCustomsValue object Use to set the total customs value on the orderline
> OrderLineTotalCustomsValue decimal Req. The new OrderLineTotalCustomsValue for the order line
UpdateNumberOfItems object Use to set the number of ordered items on the orderline
> NumberOfItems decimal Req. The new NumberOfItems for the order line
UpdateOrderLineType object Use to set the orderline type on the orderline
UpdateOrderLineIdentification
OrderLineIdentificationType enum Req. Defines what you want to identify the order line by
 - ExternalOrderLineCode
 - OrderLineId
ExternalOrderLineCode str(40) External order line code. Required if OrderLineIdentificationType = ExternalOrderLineCode
OrderLineId int Ongoing WMS order line id. Required if OrderLineIdentificationType = OrderLineId

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

Response specification

UpdateOrderLinesResult
Success bool True if success
Message str(*) Process message
OrderId int Ongoing WMS id of the order