Ongoing Warehouse logo

Ongoing Warehouse Developer

GetMovements

This function lets you retrieve information about stock movements. By "movement" we mean when an item physically moves from one warehouse location to another location.

Tags: GetMovements, GetMovementsResult, Movement

Request XML

POST /xxx/automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/GetMovements"

<?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>
    <GetMovements xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Query>
        <FromLocation>string</FromLocation>
        <ToLocation>string</ToLocation>
        <MoveTimeFrom>dateTime</MoveTimeFrom>
        <MoveTimeTo>dateTime</MoveTimeTo>
        <ArticleDefIds>
          <int>int</int>
          <int>int</int>
        </ArticleDefIds>
        <GoodsOwnerIds>
          <int>int</int>
          <int>int</int>
        </GoodsOwnerIds>
      </Query>
    </GetMovements>
  </soap:Body>
</soap:Envelope>
+

Request specification

GetMovements
UserName str(50) Req. Your username.
Password str(50) Req. Your password.
FromLocation str(50) Only return stock movements from this location.
ToLocation str(50) Only return stock movements to this location.
MoveTimeFrom datetime Only return stock movements which happened after this time.
MoveTimeTo datetime Only return stock movements which happened before this time.
ArticleDefIds int[] Only return stock movements for these particular articles.
GoodsOwnerIds int[] Only return stock movements for these particular goods owners.

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>
    <GetMovementsResponse xmlns="http://ongoingsystems.se/Automation">
      <GetMovementsResult>
        <Movements>
          <Movement>
            <Article xsi:nil="true" />
            <NumberOfItems>decimal</NumberOfItems>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <Serial>string</Serial>
            <ExpiryDate>dateTime</ExpiryDate>
            <InOrderId>int</InOrderId>
            <Batch>string</Batch>
            <InOrderNumber>string</InOrderNumber>
            <MoveTime>dateTime</MoveTime>
            <MovedByUserName>string</MovedByUserName>
            <FromLocation>string</FromLocation>
            <FromLocationTypeCode>string</FromLocationTypeCode>
            <ToLocation>string</ToLocation>
            <ToLocationTypeCode>string</ToLocationTypeCode>
          </Movement>
          <Movement>
            <Article xsi:nil="true" />
            <NumberOfItems>decimal</NumberOfItems>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <Serial>string</Serial>
            <ExpiryDate>dateTime</ExpiryDate>
            <InOrderId>int</InOrderId>
            <Batch>string</Batch>
            <InOrderNumber>string</InOrderNumber>
            <MoveTime>dateTime</MoveTime>
            <MovedByUserName>string</MovedByUserName>
            <FromLocation>string</FromLocation>
            <FromLocationTypeCode>string</FromLocationTypeCode>
            <ToLocation>string</ToLocation>
            <ToLocationTypeCode>string</ToLocationTypeCode>
          </Movement>
        </Movements>
        <Error>
          <ErrorType>FromDateOccursAfterToDate or Unknown or LogonError</ErrorType>
          <Message>string</Message>
        </Error>
        <Success>boolean</Success>
      </GetMovementsResult>
    </GetMovementsResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

GetMovementsResult
Movements object List of movements.
Movement
Article object Contains information about the moved article (article number, article name, etc).
NumberOfItems decimal Number of items which were moved.
OriginalArticleItemId int Original article item id.
Serial str(128) Serial number of the moved item.
ExpiryDate datetime Expiry date of the moved item.
InOrderId int The id of the inorder which the item belongs to (if the item was received on an inorder).
Batch str(50) Batch number of the moved item.
InOrderNumber str(50) The inorder number of the inorder which the item belongs to (if the item was received on an inorder).
MoveTime datetime The time when the move was performed.
MovedByUserName str(50) Username of the user who performed the move.
FromLocation str(50) The location the items were moved from.
FromLocationTypeCode str(50) The location type code of the location which the items were moved from.
ToLocation str(50) The location the items were moved to.
ToLocationTypeCode str(50) The location type code of the location which the items were moved to.