Ongoing Warehouse logo

Ongoing Warehouse Developer

GetInOrderByOrderNumber

This function allows requesting InOrder information by using a specific OrderNumber.

Tags: GetInOrderByOrderNumber, GetInOrderByOrderNumberResult, InOrderInfo, InOrderSupplier, GoodsOwner, ReceivedInOrderLine, ReceivedArticlItem, ArticleItemClass, InOrderCustomer

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

<?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>
      <GetInOrderByOrderNumber xmlns="http://ongoingsystems.se/WSI">
         <GoodsOwnerCode>string</GoodsOwnerCode>
         <UserName>string</UserName>
         <Password>string</Password>
         <OrderNumber>string</OrderNumber>
      </GetInOrderByOrderNumber>
   </soap:Body>
</soap:Envelope>
+

Request specification

GetInOrderByOrderNumber
GoodsOwnerCode str(400) Req. The name/code of your client
UserName str(50) Req. Your username
Password str(50) Req. Your password
OrderNumber str(50) Req. Order number (GoodsOwnerOrderNumber in ProcessInOrder)

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>
      <GetInOrderByOrderNumberResponse xmlns="http://ongoingsystems.se/WSI">
         <GetInOrderByOrderNumberResult>
            <InOrderInfo>
               <InOrderId>int</InOrderId>
               <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
               <SupplierOrderNumber>string</SupplierOrderNumber>
               <GoodsOwnerReference>string</GoodsOwnerReference>
               <BatchNumber>string</BatchNumber>
               <ReferenceNumber>string</ReferenceNumber>
               <InDate>dateTime</InDate>
               <OrderDate>dateTime</OrderDate>
               <BatchDate>dateTime</BatchDate>
               <ReceivedDate>dateTime</ReceivedDate>
               <LastReceivedTime>dateTime</LastReceivedTime>
               <Comment>string</Comment>
               <Container>string</Container>
               <WayOfDelivery>string</WayOfDelivery>
               <WayOfDeliveryTypeCode>string</WayOfDeliveryTypeCode>
               <WayOfDeliveryTypeName>string</WayOfDeliveryTypeName>
               <InOrderTypeName>string</InOrderTypeName>
               <InOrderTypeCode>string</InOrderTypeCode>
               <InOrderIsReturnType>boolean</InOrderIsReturnType>
               <InOrderStatusNumber>int</InOrderStatusNumber>
               <InOrderStatusText>string</InOrderStatusText>
               <AdvisedNumberOfItems>decimal</AdvisedNumberOfItems>
               <ReceivedNumberOfItems>decimal</ReceivedNumberOfItems>
               <InvoiceNumber>string</InvoiceNumber>
               <TermsOfDeliveryTypeCode>string</TermsOfDeliveryTypeCode>
               <TermsOfDeliveryTypeName>string</TermsOfDeliveryTypeName>
               <FreeText1>string</FreeText1>
               <FreeText2>string</FreeText2>
               <FreeText3>string</FreeText3>
               <FreeText4>string</FreeText4>
               <FreeText5>string</FreeText5>
               <InOrderFreeDecimal1>decimal</InOrderFreeDecimal1>
               <InOrderFreeDecimal2>decimal</InOrderFreeDecimal2>
               <ArrivalDate>dateTime</ArrivalDate>
            </InOrderInfo>
            <InOrderSupplier>
               <SupplierName>string</SupplierName>
               <SupplierNumber>string</SupplierNumber>
               <Address>
                  <Name>string</Name>
                  <Address>string</Address>
                  <Address2>string</Address2>
                  <Address3>string</Address3>
                  <PostCode>string</PostCode>
                  <City>string</City>
                  <TelePhone>string</TelePhone>
                  <Remark>string</Remark>
                  <Email>string</Email>
                  <MobilePhone>string</MobilePhone>
                  <IsEuCountry>boolean</IsEuCountry>
                  <CountryStateCode>string</CountryStateCode>
                  <CountryCode>string</CountryCode>
                  <DeliveryInstruction>string</DeliveryInstruction>
                  <IsVisible>boolean</IsVisible>
                  <NotifyBySMS>boolean</NotifyBySMS>
                  <NotifyByEmail>boolean</NotifyByEmail>
                  <NotifyByTelephone>boolean</NotifyByTelephone>
               </Address>
            </InOrderSupplier>
            <GoodsOwner>
               <GoodsOwnerIdentification>SystemId or GoodsOwnerCode</GoodsOwnerIdentification>
               <GoodsOwnerCode>string</GoodsOwnerCode>
               <GoodsOwnerId>int</GoodsOwnerId>
               <FinancialCode>string</FinancialCode>
               <GoodsLocationCode>string</GoodsLocationCode>
            </GoodsOwner>
            <WsiSystem>
               <UserName>string</UserName>
               <PassWord>string</PassWord>
               <SystemName>string</SystemName>
               <ToSystemName>string</ToSystemName>
               <FromSystemName>string</FromSystemName>
               <FromWsiPath>string</FromWsiPath>
               <ToWSiPath>string</ToWSiPath>
               <Setting1>string</Setting1>
               <Setting2>string</Setting2>
               <Url>string</Url>
               <ReportId>int</ReportId>
               <ReportName>string</ReportName>
               <ReportExportFormat>string</ReportExportFormat>
               <OnErrorEmail>string</OnErrorEmail>
               <Encoding>string</Encoding>
               <OrderAdressGroupByCustomer>boolean</OrderAdressGroupByCustomer>
               <MaximumOrderStatusForUpdate>int</MaximumOrderStatusForUpdate>
               <GoodsOwnerId>int</GoodsOwnerId>
            </WsiSystem>
            <ReceivedInOrderLines>
               <ReceivedInOrderLine>
                  <Article xsi:nil="true" />
                  <ExternalOrderLineCode>string</ExternalOrderLineCode>
                  <ExternalOrderLineId>string</ExternalOrderLineId>
                  <InDate>dateTime</InDate>
                  <Comment>string</Comment>
                  <AdvisedNumberOfItems>decimal</AdvisedNumberOfItems>
                  <ReceivedNumberOfItems>decimal</ReceivedNumberOfItems>
                  <CreatedNumberOfItems>decimal</CreatedNumberOfItems>
                  <ShipmentNumberOfItems>decimal</ShipmentNumberOfItems>
                  <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
                  <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  <RowPrice>decimal</RowPrice>
                  <CurrencyCode>string</CurrencyCode>
                  <CurrencyName>string</CurrencyName>
                  <InOrderLineId>int</InOrderLineId>
                  <InvoiceNumber>string</InvoiceNumber>
                  <ParentInOrderLineId>int</ParentInOrderLineId>
               </ReceivedInOrderLine>
               <ReceivedInOrderLine>
                  <Article xsi:nil="true" />
                  <ExternalOrderLineCode>string</ExternalOrderLineCode>
                  <ExternalOrderLineId>string</ExternalOrderLineId>
                  <InDate>dateTime</InDate>
                  <Comment>string</Comment>
                  <AdvisedNumberOfItems>decimal</AdvisedNumberOfItems>
                  <ReceivedNumberOfItems>decimal</ReceivedNumberOfItems>
                  <CreatedNumberOfItems>decimal</CreatedNumberOfItems>
                  <ShipmentNumberOfItems>decimal</ShipmentNumberOfItems>
                  <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
                  <ReportedNumberOfItems>decimal</ReportedNumberOfItems>
                  <RowPrice>decimal</RowPrice>
                  <CurrencyCode>string</CurrencyCode>
                  <CurrencyName>string</CurrencyName>
                  <InOrderLineId>int</InOrderLineId>
                  <InvoiceNumber>string</InvoiceNumber>
                  <ParentInOrderLineId>int</ParentInOrderLineId>
               </ReceivedInOrderLine>
            </ReceivedInOrderLines>
            <ReceivedArticleItems>
               <ReceivedArticlItem>
                  <Article xsi:nil="true" />
                  <ExternalOrderLineCode>string</ExternalOrderLineCode>
                  <ExternalOrderLineId>string</ExternalOrderLineId>
                  <Batch>string</Batch>
                  <Serial>string</Serial>
                  <GoodsStatusName>string</GoodsStatusName>
                  <GoodsStatusCode>string</GoodsStatusCode>
                  <isLocked>boolean</isLocked>
                  <InDate>dateTime</InDate>
                  <ExpiryDate>dateTime</ExpiryDate>
                  <InOrderLineId>int</InOrderLineId>
                  <NumberOfItems>decimal</NumberOfItems>
                  <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
                  <IsDeclared>boolean</IsDeclared>
                  <ItemWeight>decimal</ItemWeight>
                  <Location>string</Location>
                  <Comment>string</Comment>
                  <OriginalArticleItemId>int</OriginalArticleItemId>
                  <ArticleItemClass xsi:nil="true" />
                  <ArticleItemClass xsi:nil="true" />
                  <ItemLength>decimal</ItemLength>
                  <ItemWidth>decimal</ItemWidth>
                  <ItemHeight>decimal</ItemHeight>
                  <Container>string</Container>
               </ReceivedArticlItem>
               <ReceivedArticlItem>
                  <Article xsi:nil="true" />
                  <ExternalOrderLineCode>string</ExternalOrderLineCode>
                  <ExternalOrderLineId>string</ExternalOrderLineId>
                  <Batch>string</Batch>
                  <Serial>string</Serial>
                  <GoodsStatusName>string</GoodsStatusName>
                  <GoodsStatusCode>string</GoodsStatusCode>
                  <isLocked>boolean</isLocked>
                  <InDate>dateTime</InDate>
                  <ExpiryDate>dateTime</ExpiryDate>
                  <InOrderLineId>int</InOrderLineId>
                  <NumberOfItems>decimal</NumberOfItems>
                  <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
                  <IsDeclared>boolean</IsDeclared>
                  <ItemWeight>decimal</ItemWeight>
                  <Location>string</Location>
                  <Comment>string</Comment>
                  <OriginalArticleItemId>int</OriginalArticleItemId>
                  <ArticleItemClass xsi:nil="true" />
                  <ArticleItemClass xsi:nil="true" />
                  <ItemLength>decimal</ItemLength>
                  <ItemWidth>decimal</ItemWidth>
                  <ItemHeight>decimal</ItemHeight>
                  <Container>string</Container>
               </ReceivedArticlItem>
            </ReceivedArticleItems>
            <InOrderCustomer>
               <Name>string</Name>
               <AddressName>string</AddressName>
               <Address>string</Address>
               <Address2>string</Address2>
               <Address3>string</Address3>
               <City>string</City>
               <PostCode>string</PostCode>
               <CountryCode>string</CountryCode>
               <CustomerNumber>string</CustomerNumber>
               <MobilePhone>string</MobilePhone>
               <TelePhone>string</TelePhone>
               <AddressEmail>string</AddressEmail>
            </InOrderCustomer>
         </GetInOrderByOrderNumberResult>
      </GetInOrderByOrderNumberResponse>
   </soap:Body>
</soap:Envelope>
+

Response specification

GetInOrderByOrderNumberResult
InOrderInfo object InOrder head information
InOrderSupplier object Information about the supplier of the inorder
GoodsOwner object Information about the client
WsiSystem object Only for internal purposes, don't use
ReceivedInOrderLines object Containing elements of ReceivedInOrderLine. InOrder lines with info about amount received
ReceivedArticleItems object Containing elements of ReceivedArticlItem. Instances of the articles received. In order to receive this info in the response, ask Ongoing to activate it
InOrderCustomer object Contains information about the inorder customer
InOrderInfo
InOrderId int Ongoing system id of the Inorder
GoodsOwnerOrderNumber str(50) Order number
SupplierOrderNumber str(50) Supplier order number
GoodsOwnerReference str(100) Goods owner reference
BatchNumber str(50) Inorder batch
ReferenceNumber str(50) Reference number
InDate datetime Expected date of arrival to warehouse, assigned when inorder was created
OrderDate datetime Date when order was placed
BatchDate datetime Deprecated, don't use
ReceivedDate datetime Earliest datetime of receiving an item for this inorder
LastReceivedTime datetime Most recent datetime of receiving an item for this inorder
Comment str(1000) Remark/comment about the order
Container str(50) Container number
WayOfDelivery str(50) Way of delivery
WayOfDeliveryTypeCode str(50) Way of delivery type code
WayOfDeliveryTypeName str(100) Way of delivery type name
InOrderTypeName str(50) Inorder type name
InOrderTypeCode str(50) Inorder type code
InOrderIsReturnType bool True if inorder represents a return
InOrderStatusNumber int Status number of the inorder
InOrderStatusText str(50) Status name of the current status number of the inorder
AdvisedNumberOfItems dec Total number of advised items
ReceivedNumberOfItems dec Total number of received items
InvoiceNumber str(100) Invoice number of this inorder
TermsOfDeliveryTypeCode str(50) Terms of delivery type code
TermsOfDeliveryTypeName str(100) Terms of delivery type name
FreeText1 str(300) Free text
FreeText2 str(50) Free text
FreeText3 str(50) Free text
FreeText4 str(50) Free text
FreeText5 str(50) Free text
InOrderFreeDecimal1 dec Free decimal
InOrderFreeDecimal2 dec Free decimal
ArrivalDate dateTime Arrival date
InOrderSupplier
SupplierName str(200) Supplier name
SupplierNumber str(200) Supplier number
Address object Address object (supplier). See ProccessArticle for the Address (supplier) object
GoodsOwner
GoodsOwnerIdentification str(8) Must always be fixed string "SystemId"
GoodsOwnerCode str(400) The name/code of the client
GoodsOwnerId int Ongoing system id of the client
FinancialCode str(50) Financial code of the client
GoodsLocationCode str(50) Goods location code
ReceivedInOrderLine
Article object Article of the inorder line. See GetInventory for specification of the Article object.
ExternalOrderLineCode str(40) External inorder line code
ExternalOrderLineId str(30) External inorder line id
InDate datetime Expected date of arrival to warehouse
Comment str(150) Inorder line commenet
AdvisedNumberOfItems dec Number of advised items on this inorder line
ReceivedNumberOfItems dec Number of received items on this inorder line
CreatedNumberOfItems dec Number of created items, even if they have not been received yet. Only relevant if you use the InOrderLineArticleItems tag in ProcessInOrder
ShipmentNumberOfItems dec Number of received items also connected to a shipment (case specific), on this inorder line
SupplierNumberOfItems dec Supplier number of items
ReportedNumberOfItems dec Reported number of items
RowPrice dec Price of the inorder line
CurrencyCode str(20) Currency code of order line, in ISO 4217. E.g. SEK, NOK or EUR
CurrencyName str(50) Currency name of order line, user specified
InOrderLineId int Ongoing system id of the inorder line
InvoiceNumber str(100) Invoice number of the inorder line
ReceivedArticlItem
Article object Article of the item. See GetInventory for specification of the Article object.
ExternalOrderLineCode str(40) External inorder line code this item was received to
ExternalOrderLineId str(30) External inorder line id this item was received to
Batch str(50) Batch number
Serial str(128) Serial number
GoodsStatusName str(100) Article item status name
GoodsStatusCode str(50) Article item status code
isLocked bool True if item is locked
InDate datetime Datetime of when the item was received
ExpiryDate datetime Expiry date of the item
InOrderLineId int Ongoing system id of the inorder this item was received to
NumberOfItems dec Number ofitems that this article item represents
SupplierNumberOfItems dec Supplier number of items (same as SupplierNumberOfItems on InOrderLine)
IsDeclared bool True if item is customs declared
ItemWeight dec Weight of item, in kg
Location str(50) Current location name in warehouse
Comment str(400) Comment
OriginalArticleItemId int Original article item id, Ongoing system id, of the item
ArticleItemClass object[] Elements of ArticleItemClass
ItemLength dec Item length
ItemWidth dec Item width
ItemHeight dec Item height
Container str(50) Container number for this particular item
ArticleItemClass
Code str(100) Code of article item class
Name str(200) Name of article item class
Id int Ongoing system id of the article item class
InOrderCustomer
Name str Customer name
AddressName str Customer name for address
Address str First address line
Address2 str Second address line
Address3 str Third address line
City str City
PostCode str Post code
CountryCode str(2) The two-letter ISO 3166-1 alpha-2 code of the country.
CustomerNumber str Customer number
MobilePhone str Mobile phone
TelePhone str Telephone
AddressEmail str Email