Ongoing Warehouse Developer

UpdateInOrderLines

UpdateInOrderLines is used to update reported number items of inorder lines.

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

Tags: UpdateOrderLines, UpdateInOrderLines (2), UpdateInOrderIdentification, UpdateInOrderLine, UpdateInOrderLineIdentification, 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/UpdateInOrderLines"

<?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>
      <UpdateInOrderLines xmlns="http://ongoingsystems.se/WSI">
         <GoodsOwnerCode>string</GoodsOwnerCode>
         <UserName>string</UserName>
         <Password>string</Password>
         <UpdateInOrderLines>
            <UpdateInOrderIdentification>
               <InOrderIdentificationType>GoodsOwnerOrderNumber or SystemId</InOrderIdentificationType>
               <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
               <InOrderId>int</InOrderId>
            </UpdateInOrderIdentification>
            <InOrderLines>
               <UpdateInOrderLine>
                  <UpdateInOrderLineIdentification>
                     <InOrderLineIdentificationType>ExternalOrderLineCode or InOrderLineId</InOrderLineIdentificationType>
                     <ExternalOrderLineCode>string</ExternalOrderLineCode>
                     <InOrderLineId>int</InOrderLineId>
                  </UpdateInOrderLineIdentification>
                  <UpdateReportedNumberOfItems>
                     <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  </UpdateReportedNumberOfItems>
               </UpdateInOrderLine>
               <UpdateInOrderLine>
                  <UpdateInOrderLineIdentification>
                     <InOrderLineIdentificationType>ExternalOrderLineCode or InOrderLineId</InOrderLineIdentificationType>
                     <ExternalOrderLineCode>string</ExternalOrderLineCode>
                     <InOrderLineId>int</InOrderLineId>
                  </UpdateInOrderLineIdentification>
                  <UpdateReportedNumberOfItems>
                     <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  </UpdateReportedNumberOfItems>
               </UpdateInOrderLine>
            </InOrderLines>
         </UpdateInOrderLines>
      </UpdateInOrderLines>
   </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
UpdateInOrderLines object Req. The UpdateInOrderLines object
UpdateInOrderLines (2)
UpdateInOrderIdentification object Req. Specifies the inorder identification
InOrderLines object Req. Contains elements of UpdateInOrderLine
UpdateInOrderIdentification
InOrderIdentificationType enum Req. Defines what you want to identify the inorder by
 - GoodsOwnerOrderNumber
 - SystemId
GoodsOwnerOrderNumber str(50) Req.* Order number. Required if InOrderIdentificationType = GoodsOwnerOrderNumber
InOrderId int Req.* Ongoing id (SystemId). Required if InOrderIdentificationType = SystemId
UpdateInOrderLine
UpdateInOrderLineIdentification object Req. Specifies the inorder line identification
UpdateReportedNumberOfItems object Use to set new reported number of items
> ReportedNumberOfItems decimal Req. The new ReportedNumberOfItems value for the order line
UpdateOrderLineIdentification
InOrderLineIdentificationType enum Req. Defines what you want to identify the inorder line by
 - ExternalOrderLineCode
 - InOrderLineId
ExternalOrderLineCode str(40) Req.* External inorder line code. Required if InOrderLineIdentificationType = ExternalOrderLineCode
InOrderLineId int Req.* Ongoing inorder line id. Required if InOrderLineIdentificationType = InOrderLineId

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

Response specification

UpdateInOrderLinesResult
Success bool True if the call is successful
Message str(*) Process message
InOrderId int Ongoing system id of the inorder