Ongoing Warehouse logo

Ongoing Warehouse Developer

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>
                  <UpdateReportedNumberOfItems>
                     <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  </UpdateReportedNumberOfItems>
                  <UpdateComment>
                     <OrderLineComment>string</OrderLineComment>
                  </UpdateComment>
                 <UpdateOrderLineReportedReturnedNumberOfItems>
                   <ReportedReturnedNumberOfItems>decimal</ReportedReturnedNumberOfItems>
                 </UpdateOrderLineReportedReturnedNumberOfItems>
                 <UpdateOrderLineAcknowledgedNumberOfItems>
                   <AcknowledgedNumberOfItems>decimal</AcknowledgedNumberOfItems>
                 </UpdateOrderLineAcknowledgedNumberOfItems>
               </UpdateOrderLine>
               <UpdateOrderLine>
                  <UpdateOrderLineIdentification>
                     <OrderLineIdentificationType>ExternalOrderLineCode or OrderLineId</OrderLineIdentificationType>
                     <ExternalOrderLineCode>string</ExternalOrderLineCode>
                     <OrderLineId>int</OrderLineId>
                  </UpdateOrderLineIdentification>
                  <UpdateReportedNumberOfItems>
                     <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  </UpdateReportedNumberOfItems>
                  <UpdateComment>
                     <OrderLineComment>string</OrderLineComment>
                  </UpdateComment>
                 <UpdateOrderLineReportedReturnedNumberOfItems>
                   <ReportedReturnedNumberOfItems>decimal</ReportedReturnedNumberOfItems>
                 </UpdateOrderLineReportedReturnedNumberOfItems>
                 <UpdateOrderLineAcknowledgedNumberOfItems>
                   <AcknowledgedNumberOfItems>decimal</AcknowledgedNumberOfItems>
                 </UpdateOrderLineAcknowledgedNumberOfItems>
               </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) Req.* External order id. Required if OrderIdentificationType = GoodsOwnerOrderId
GoodsOwnerOrderNumber str(50) Req.* Order number. Required if OrderIdentificationType = GoodsOwnerOrderNumber
ReferenceNumber str(50) Req.* Reference number. Required if OrderIdentificationType = ReferenceNumber
OrderId int Req.* Ongoing id (SystemId). Required if OrderIdentificationType = SystemId
UpdateOrderLine
UpdateOrderLineIdentification object Req. Specifies the order line identification
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
UpdateOrderLineIdentification
OrderLineIdentificationType enum Req. Defines what you want to identify the order line by
 - ExternalOrderLineCode
 - OrderLineId
ExternalOrderLineCode str(40) Req.* External order line code. Required if OrderLineIdentificationType = ExternalOrderLineCode
OrderLineId int Req.* Ongoing 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 system id of the order