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, UpdateOrderIdentification, UpdateOrderLine, UpdateOrderLineIdentification, UpdateOrderLineExternalOrderLineCode, UpdateOrderLineReportedNumberOfItems, UpdateOrderLineComment, UpdateOrderLineReportedReturnedNumberOfItems, UpdateOrderLineAcknowledgedNumberOfItems, UpdateOrderLineTotalCustomsValue, UpdateOrderLineNumberOfItems, UpdateOrderLineType, UpdateOrderLineCustomerLinePrice, UpdateOrderLineLinePrice, UpdateOrderLinesResponse, 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>
              <Identification>OrderLineTypeId or OrderLineTypeCode</Identification>
            </UpdateOrderLineType>
            <UpdateOrderLineCustomerLinePrice>
              <CustomerLinePrice>decimal</CustomerLinePrice>
            </UpdateOrderLineCustomerLinePrice>
            <UpdateOrderLinePrice>
              <LinePrice>decimal</LinePrice>
            </UpdateOrderLinePrice>
          </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>
              <Identification>OrderLineTypeId or OrderLineTypeCode</Identification>
            </UpdateOrderLineType>
            <UpdateOrderLineCustomerLinePrice>
              <CustomerLinePrice>decimal</CustomerLinePrice>
            </UpdateOrderLineCustomerLinePrice>
            <UpdateOrderLinePrice>
              <LinePrice>decimal</LinePrice>
            </UpdateOrderLinePrice>
          </UpdateOrderLine>
        </OrderLines>
      </UpdateOrderLines>
    </UpdateOrderLines>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateOrderLines
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
UpdateOrderLines UpdateOrderLines Req. The UpdateOrderLines object
UpdateOrderLines
UpdateOrderIdentification UpdateOrderIdentification An element of type UpdateOrderIdentification.
OrderLines UpdateOrderLine[]
UpdateOrderIdentification
OrderIdentificationType enum Req. Defines what you want to identify the order by
 - GoodsOwnerOrderNumber
 - ReferenceNumber
 - SystemId
 - GoodsOwnerOrderId
GoodsOwnerOrderId string(40) External order id. Required if OrderIdentificationType = GoodsOwnerOrderId
GoodsOwnerOrderNumber string(50) Order number. Required if OrderIdentificationType = GoodsOwnerOrderNumber
ReferenceNumber string(50) Reference number. Required if OrderIdentificationType = ReferenceNumber
OrderId int Ongoing WMS id (SystemId). Required if OrderIdentificationType = SystemId
UpdateOrderLine
UpdateOrderLineIdentification UpdateOrderLineIdentification Req. Specifies the order line identification
UpdateExternalOrderLineCode UpdateOrderLineExternalOrderLineCode Use to set new external order line code
UpdateReportedNumberOfItems UpdateOrderLineReportedNumberOfItems Use to set new reported number of items
UpdateComment UpdateOrderLineComment Use to set new order line comment
UpdateOrderLineReportedReturnedNumberOfItems UpdateOrderLineReportedReturnedNumberOfItems Use to set the number of reported number of returned items on the order line
UpdateOrderLineAcknowledgedNumberOfItems UpdateOrderLineAcknowledgedNumberOfItems Use to set the number of acknowledged number of items on the order line
UpdateOrderLineTotalCustomsValue UpdateOrderLineTotalCustomsValue Use to set the total customs value on the order line
UpdateNumberOfItems UpdateOrderLineNumberOfItems Use to set the number of ordered items on the order line
UpdateOrderLineType UpdateOrderLineType Use to set the order line type on the order line
UpdateOrderLineCustomerLinePrice UpdateOrderLineCustomerLinePrice Use to set the customer line price on the order line
UpdateOrderLinePrice UpdateOrderLineLinePrice Use to set the line price on the order line
UpdateOrderLineIdentification
OrderLineIdentificationType enum Req. Defines what you want to identify the order line by
 - ExternalOrderLineCode
 - OrderLineId
ExternalOrderLineCode string(40) External order line code. Required if OrderLineIdentificationType = ExternalOrderLineCode
OrderLineId int Ongoing WMS order line id. Required if OrderLineIdentificationType = OrderLineId
UpdateOrderLineExternalOrderLineCode
ExternalOrderLineCode string Req. The new ExternalOrderLineCode for the order line
UpdateOrderLineReportedNumberOfItems
ReportedNumberOfItems decimal Req. The new ReportedNumberOfItems value for the order line
UpdateOrderLineComment
OrderLineComment string Req. The new OrderLineComment for the order line
UpdateOrderLineReportedReturnedNumberOfItems
ReportedReturnedNumberOfItems decimal Req. The new ReportedReturnedNumberOfItems for the order line
UpdateOrderLineAcknowledgedNumberOfItems
AcknowledgedNumberOfItems decimal Req. The new AcknowledgedNumberOfItems for the order line
UpdateOrderLineTotalCustomsValue
OrderLineTotalCustomsValue decimal Req. The new OrderLineTotalCustomsValue for the order line
UpdateOrderLineNumberOfItems
NumberOfItems decimal Req. The new NumberOfItems for the order line
UpdateOrderLineType
OrderLineTypeId int Ongoing WMS order line id. Required if OrderLineIdentificationType = OrderLineId
OrderLineTypeCode string External order line code. Required if OrderLineIdentificationType = ExternalOrderLineCode
Identification enum Defines what you want to identify the order line by
UpdateOrderLineCustomerLinePrice
CustomerLinePrice decimal Req. The new CustomerLinePrice for the order line
UpdateOrderLineLinePrice
LinePrice decimal Req. The new CustomerLinePrice for the order line

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

Response specification

UpdateOrderLinesResponse
UpdateOrderLinesResult UpdateOrderLinesResult
UpdateOrderLinesResult
Success boolean True if success
Message string Process message
OrderId int Ongoing WMS id of the order