GetArticleItemChanges

Each article (SKU) in Ongoing WMS has zero or more article items. The article items represent what is in stock at the warehouse (for more information about article items, see this article). GetArticleItemChanges allows you to fetch changes to article items. For instance, the status of an article item might change from, and you may wish to handle such changes in your integration.

Tags: GetArticleItemChanges, Query, ArticleItemChanges, ArticleItemChange, Article, PreviousVersion, NewVersion, ArticleItemCategory_GetArticleItemChanges, ArticleItemStatus_GetArticleItemChanges

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

<?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>
    <GetArticleItemChanges xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <Query>
        <FromTime>dateTime</FromTime>
        <MaxChangesToGet>int</MaxChangesToGet>
        <FromArticleItemLogId>int</FromArticleItemLogId>
        <OnlyGetChanges>
          <ArticleItemChangeType>ArticleItemStatus or Serial or Batch or ExpiryDate or Weight or Volume or Length or Width or Height or Comment or Container or ArticleItemCategory or Price</ArticleItemChangeType>
          <ArticleItemChangeType>ArticleItemStatus or Serial or Batch or ExpiryDate or Weight or Volume or Length or Width or Height or Comment or Container or ArticleItemCategory or Price</ArticleItemChangeType>
        </OnlyGetChanges>
      </Query>
    </GetArticleItemChanges>
  </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
Query object Req. The query object
Query
FromTime DateTime Only get changes which were made after this time
MaxChangesToGet int Req. The maximum number of changes to get. Must be between 10 and 2000.
FromArticleItemLogId int Only get changes whose LogId is larger than this value.
OnlyGetChanges enum[] Allows you to specify which type of change you want to see. You can specify several change types. Possible values are:
  • ArticleItemStatus
  • Serial
  • Batch
  • ExpiryDate
  • Weight
  • Volume
  • Length
  • Width
  • Height
  • Comment
  • Container
  • ArticleItemCategory
  • Price

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>
    <GetArticleItemChangesResponse xmlns="http://ongoingsystems.se/WSI">
      <GetArticleItemChangesResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <ArticleItemChanges>
          <ArticleItemChange>
            <Article>
              <ArticleDefId>int</ArticleDefId>
              <ArticleNumber>string</ArticleNumber>
              <ProductCode>string</ProductCode>
              <ArticleName>string</ArticleName>
            </Article>
            <ArticleItemLogId>int</ArticleItemLogId>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <ChangeTime>dateTime</ChangeTime>
            <NumberOfItems>decimal</NumberOfItems>
            <PreviousVersion>
              <Serial>string</Serial>
              <Batch>string</Batch>
              <ExpiryDate>dateTime</ExpiryDate>
              <Weight>decimal</Weight>
              <Volume>decimal</Volume>
              <Comment>decimal</Comment>
              <Length>decimal</Length>
              <Width>decimal</Width>
              <Height>decimal</Height>
              <Container>string</Container>
              <ArticleItemStatus>object</ArticleItemStatus>
              <ArticleItemCategory>
                <Code>string</Code>
                <Name>string</Name>
                <Id>int</Id>
              </ArticleItemCategory>
              <Price>decimal</Price>
            </PreviousVersion>
            <NewVersion>
              <Serial>string</Serial>
              <Batch>string</Batch>
              <ExpiryDate>dateTime</ExpiryDate>
              <Weight>decimal</Weight>
              <Volume>decimal</Volume>
              <Comment>decimal</Comment>
              <Length>decimal</Length>
              <Width>decimal</Width>
              <Height>decimal</Height>
              <Container>string</Container>
              <ArticleItemStatus>object</ArticleItemStatus>
              <ArticleItemCategory>
                <Code>string</Code>
                <Name>string</Name>
                <Id>int</Id>
              </ArticleItemCategory>
              <Price>decimal</Price>
            </NewVersion>
          </ArticleItemChange>
          <ArticleItemChange>
            <Article>
              <ArticleDefId>int</ArticleDefId>
              <ArticleNumber>string</ArticleNumber>
              <ProductCode>string</ProductCode>
              <ArticleName>string</ArticleName>
            </Article>
            <ArticleItemLogId>int</ArticleItemLogId>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <ChangeTime>dateTime</ChangeTime>
            <NumberOfItems>decimal</NumberOfItems>
            <PreviousVersion>
              <Serial>string</Serial>
              <Batch>string</Batch>
              <ExpiryDate>dateTime</ExpiryDate>
              <Weight>decimal</Weight>
              <Volume>decimal</Volume>
              <Comment>decimal</Comment>
              <Length>decimal</Length>
              <Width>decimal</Width>
              <Height>decimal</Height>
              <Container>string</Container>
              <ArticleItemStatus>object</ArticleItemStatus>
              <ArticleItemCategory>
                <Code>string</Code>
                <Name>string</Name>
                <Id>int</Id>
              </ArticleItemCategory>
              <Price>decimal</Price>
            </PreviousVersion>
            <NewVersion>
              <Serial>string</Serial>
              <Batch>string</Batch>
              <ExpiryDate>dateTime</ExpiryDate>
              <Weight>decimal</Weight>
              <Volume>decimal</Volume>
              <Comment>decimal</Comment>
              <Length>decimal</Length>
              <Width>decimal</Width>
              <Height>decimal</Height>
              <Container>string</Container>
              <ArticleItemStatus>object</ArticleItemStatus>
              <ArticleItemCategory>
                <Code>string</Code>
                <Name>string</Name>
                <Id>int</Id>
              </ArticleItemCategory>
              <Price>decimal</Price>
            </NewVersion>
          </ArticleItemChange>
        </ArticleItemChanges>
      </GetArticleItemChangesResult>
    </GetArticleItemChangesResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

ArticleItemChanges
ArticleItemChange object[] List of ArticleItemChange, representing the changes which match the query.
ArticleItemChange
Article object Object of type Article, contains information about the article.
ArticleItemLogId int The LogId of this change.
OriginalArticleItemId int The OriginalArticleItemId of the article item which was changed.
ChangeTime dateTime Time when the change was made.
NumberOfItems decimal The quantity which this article item represents.
PreviousVersion object Object of type PreviousVersion, representing the previous version of the item.
NewVersion object Object of type NewVersion, representing the new version of the item.
Article
ArticleDefId int The internal system id of the article.
ArticleNumber str(100) The article number.
ProductCode str(200) The product code.
ArticleName str(200) The article name.
PreviousVersion
Serial str(128) Serial number.
Batch str(50) Batch number.
ExpiryDate dateTime Expiry date.
Weight decimal Weight.
Volume decimal Volume.
Comment str(400) Comment.
Length decimal Length.
Width decimal Width.
Height decimal Height.
Container str(50) Container.
ArticleItemStatus object Object of type ArticleItemStatus_GetArticleItemChanges, representing the item's status.
ArticleItemCategory object Object of type ArticleItemCategory_GetArticleItemChanges which shows which article item category the article item has.
Price decimal Price.
NewVersion
Serial str(128) Serial number.
Batch str(50) Batch number.
ExpiryDate dateTime Expiry date.
Weight decimal Weight.
Volume decimal Volume.
Comment str(400) Comment.
Length decimal Length.
Width decimal Width.
Height decimal Height.
Container str(50) Container.
IsCurrentVersion bool True if this version is the current version of the article item. Otherwise it will be False, which means that there have been other updates to the item.
ArticleItemStatus object Object of type ArticleItemStatus_GetArticleItemChanges, representing the item's status.
ArticleItemCategory object Object of type ArticleItemCategory_GetArticleItemChanges which shows which article item category the article item has.
Price decimal Price.
ArticleItemCategory_GetArticleItemChanges
Code str(100) The article item category code.
Name str(100) The article item category name.
Id int The article item category id.
ArticleItemStatus_GetArticleItemChanges
Id int The id of the status.
Code str(50) The code of the status.