GetInventoryChangesByQuery
This function lets you retrieve inventory changes.
Tags: GetInventoryChangesByQuery, GetInventoryChangesQuery, GetInventoryChangesByQueryResponse, GetInventoryChangesResult, InventoryChangeLine_GetInventoryChanges, GetInventoryChangesErrorResult, GoodsOwner_GetInventoryChanges, ArticleInfo_GetInventoryChanges, InventoryTransaction_GetInventoryChanges, InventoryAdjustmentCause_GetInventoryChanges, Warehouse_GetInventoryChanges, ByUser_GetInventoryChanges, ArticleItemStatus_GetInventoryChanges, Location_GetInventoryChanges, Inventory_GetInventoryChanges
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/GetInventoryChangesByQuery"
<?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>
<GetInventoryChangesByQuery xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<Query>
<From>dateTime</From>
<To>dateTime</To>
<InventoryIdFrom>int</InventoryIdFrom>
<OnlyUnReported>boolean</OnlyUnReported>
<WarehouseId>int</WarehouseId>
<OnlyLiveGoodsOwners>boolean</OnlyLiveGoodsOwners>
<GoodsOwnerId>int</GoodsOwnerId>
<ExportTimeFrom>dateTime</ExportTimeFrom>
<ArticleDefIdFrom>int</ArticleDefIdFrom>
<MaxArticlesToGet>int</MaxArticlesToGet>
</Query>
</GetInventoryChangesByQuery>
</soap:Body>
</soap:Envelope>
Request specification
GetInventoryChangesByQuery |
UserName |
string(50) |
Req. |
Your username |
Password |
string(50) |
Req. |
Your password |
Query |
GetInventoryChangesQuery |
Req. |
The query object |
GetInventoryChangesQuery |
From |
dateTime |
|
The from date. Information will be retrieved of inventory changes between the from date and to date. Filter inventory changes to changes that occur after this time. |
To |
dateTime |
|
Filter inventory changes to changes that occur before this time. |
InventoryIdFrom |
int |
|
Filter inventory changes from this inventory id, i.e. see the changes made by a specific inventory. |
OnlyUnReported |
boolean |
|
If only unreported inventory changes should be retrieved. |
WarehouseId |
int |
|
The id of the warehouse to retrieve inventory changes from. |
OnlyLiveGoodsOwners |
boolean |
|
If only inventory changes from live goods owners should be retrieved. |
GoodsOwnerId |
int |
|
The id of the goods owner from which inventory changes should be retrieved. |
ExportTimeFrom |
dateTime |
|
Filter inventory changes to those whose ExportTime is the same as or later than this value. |
ArticleDefIdFrom |
int |
|
Filter inventory changes to those whose ArticleDefId is the same as or larger than this value. |
MaxArticlesToGet |
int |
|
Max number of inventory changes to retrieve with this query. |
Response XML
<?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>
<GetInventoryChangesByQueryResponse xmlns="http://ongoingsystems.se/Automation">
<GetInventoryChangesByQueryResult>
<Success>boolean</Success>
<InventoryChangeLines>
<InventoryChangeLine_GetInventoryChanges>
<GoodsOwner>
<GoodsOwnerId>int</GoodsOwnerId>
</GoodsOwner>
<Article>
<ArticleDefId>int</ArticleDefId>
<ArticleNumber>string</ArticleNumber>
</Article>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<InventoryTransactions>
<InventoryTransaction_GetInventoryChanges>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<Comment>string</Comment>
<Container>string</Container>
<Batch>string</Batch>
<Serial>string</Serial>
<ExpiryDate>dateTime</ExpiryDate>
<InventoryAdjustmentCause>
<Code>string</Code>
<Name>string</Name>
</InventoryAdjustmentCause>
<Warehouse>
<Id>int</Id>
<Name>string</Name>
<Code>string</Code>
</Warehouse>
<ByUser>
<UserId>int</UserId>
<UserName>string</UserName>
</ByUser>
<ArticleItemStatus>
<ArticleItemStatusCode>string</ArticleItemStatusCode>
<ArticleItemStatusName>string</ArticleItemStatusName>
</ArticleItemStatus>
<Location>
<Location>string</Location>
<LocationId>int</LocationId>
<IsLocked>boolean</IsLocked>
<IsLockedForSale>boolean</IsLockedForSale>
</Location>
<Inventory>
<InventoryId>int</InventoryId>
<ByInventoryCountTask>boolean</ByInventoryCountTask>
<InventoryTime>dateTime</InventoryTime>
<InventoryItemComment>string</InventoryItemComment>
<InventoryArticleItemId>int</InventoryArticleItemId>
</Inventory>
</InventoryTransaction_GetInventoryChanges>
<InventoryTransaction_GetInventoryChanges>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<Comment>string</Comment>
<Container>string</Container>
<Batch>string</Batch>
<Serial>string</Serial>
<ExpiryDate>dateTime</ExpiryDate>
<InventoryAdjustmentCause>
<Code>string</Code>
<Name>string</Name>
</InventoryAdjustmentCause>
<Warehouse>
<Id>int</Id>
<Name>string</Name>
<Code>string</Code>
</Warehouse>
<ByUser>
<UserId>int</UserId>
<UserName>string</UserName>
</ByUser>
<ArticleItemStatus>
<ArticleItemStatusCode>string</ArticleItemStatusCode>
<ArticleItemStatusName>string</ArticleItemStatusName>
</ArticleItemStatus>
<Location>
<Location>string</Location>
<LocationId>int</LocationId>
<IsLocked>boolean</IsLocked>
<IsLockedForSale>boolean</IsLockedForSale>
</Location>
<Inventory>
<InventoryId>int</InventoryId>
<ByInventoryCountTask>boolean</ByInventoryCountTask>
<InventoryTime>dateTime</InventoryTime>
<InventoryItemComment>string</InventoryItemComment>
<InventoryArticleItemId>int</InventoryArticleItemId>
</Inventory>
</InventoryTransaction_GetInventoryChanges>
</InventoryTransactions>
</InventoryChangeLine_GetInventoryChanges>
<InventoryChangeLine_GetInventoryChanges>
<GoodsOwner>
<GoodsOwnerId>int</GoodsOwnerId>
</GoodsOwner>
<Article>
<ArticleDefId>int</ArticleDefId>
<ArticleNumber>string</ArticleNumber>
</Article>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<InventoryTransactions>
<InventoryTransaction_GetInventoryChanges>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<Comment>string</Comment>
<Container>string</Container>
<Batch>string</Batch>
<Serial>string</Serial>
<ExpiryDate>dateTime</ExpiryDate>
<InventoryAdjustmentCause>
<Code>string</Code>
<Name>string</Name>
</InventoryAdjustmentCause>
<Warehouse>
<Id>int</Id>
<Name>string</Name>
<Code>string</Code>
</Warehouse>
<ByUser>
<UserId>int</UserId>
<UserName>string</UserName>
</ByUser>
<ArticleItemStatus>
<ArticleItemStatusCode>string</ArticleItemStatusCode>
<ArticleItemStatusName>string</ArticleItemStatusName>
</ArticleItemStatus>
<Location>
<Location>string</Location>
<LocationId>int</LocationId>
<IsLocked>boolean</IsLocked>
<IsLockedForSale>boolean</IsLockedForSale>
</Location>
<Inventory>
<InventoryId>int</InventoryId>
<ByInventoryCountTask>boolean</ByInventoryCountTask>
<InventoryTime>dateTime</InventoryTime>
<InventoryItemComment>string</InventoryItemComment>
<InventoryArticleItemId>int</InventoryArticleItemId>
</Inventory>
</InventoryTransaction_GetInventoryChanges>
<InventoryTransaction_GetInventoryChanges>
<InventoryChangesNumberOfItems>decimal</InventoryChangesNumberOfItems>
<Comment>string</Comment>
<Container>string</Container>
<Batch>string</Batch>
<Serial>string</Serial>
<ExpiryDate>dateTime</ExpiryDate>
<InventoryAdjustmentCause>
<Code>string</Code>
<Name>string</Name>
</InventoryAdjustmentCause>
<Warehouse>
<Id>int</Id>
<Name>string</Name>
<Code>string</Code>
</Warehouse>
<ByUser>
<UserId>int</UserId>
<UserName>string</UserName>
</ByUser>
<ArticleItemStatus>
<ArticleItemStatusCode>string</ArticleItemStatusCode>
<ArticleItemStatusName>string</ArticleItemStatusName>
</ArticleItemStatus>
<Location>
<Location>string</Location>
<LocationId>int</LocationId>
<IsLocked>boolean</IsLocked>
<IsLockedForSale>boolean</IsLockedForSale>
</Location>
<Inventory>
<InventoryId>int</InventoryId>
<ByInventoryCountTask>boolean</ByInventoryCountTask>
<InventoryTime>dateTime</InventoryTime>
<InventoryItemComment>string</InventoryItemComment>
<InventoryArticleItemId>int</InventoryArticleItemId>
</Inventory>
</InventoryTransaction_GetInventoryChanges>
</InventoryTransactions>
</InventoryChangeLine_GetInventoryChanges>
</InventoryChangeLines>
<Error>
<ErrorType>Unknown or LogonError</ErrorType>
<Message>string</Message>
</Error>
</GetInventoryChangesByQueryResult>
</GetInventoryChangesByQueryResponse>
</soap:Body>
</soap:Envelope>
Response specification
GetInventoryChangesByQueryResponse |
GetInventoryChangesByQueryResult |
GetInventoryChangesResult |
|
GetInventoryChangesResult |
Success |
boolean |
If the operation was successful. If not, check GetInventoryChangesErrorResult for more details on what went wrong. |
InventoryChangeLines |
InventoryChangeLine_GetInventoryChanges[] |
List of inventory changes. |
Error |
GetInventoryChangesErrorResult |
Error details, see GetInventoryChangesErrorResult. |
GetInventoryChangesErrorResult |
ErrorType |
enum |
LogonError: Failed to log in. Unknown: Something else went wrong, see message. |
Message |
string(400) |
A message describing the error. |
GoodsOwner_GetInventoryChanges |
GoodsOwnerId |
int |
The id of the goods owner. |
ArticleInfo_GetInventoryChanges |
ArticleDefId |
int |
The id of the article. |
ArticleNumber |
string(100) |
The article number. |
InventoryAdjustmentCause_GetInventoryChanges |
Code |
string(50) |
Adjustment cause code. |
Name |
string(50) |
Adjustment cause name. |
Warehouse_GetInventoryChanges |
Id |
int |
The id of the warehouse where the transaction took place. |
Name |
string(200) |
The name of the warehouse. |
Code |
string(50) |
The warehouse code. |
ByUser_GetInventoryChanges |
UserId |
int |
The id of the user who made the transaction. |
UserName |
string(50) |
The name of the user who made the transaction. |
ArticleItemStatus_GetInventoryChanges |
ArticleItemStatusCode |
string(50) |
The status code of the article items. |
ArticleItemStatusName |
string(100) |
The status name of the article items. |
Location_GetInventoryChanges |
Location |
string(50) |
The name of the location. |
LocationId |
int |
The location's id. |
IsLocked |
boolean |
Wheter or not the location is locked. |
IsLockedForSale |
boolean |
Wheter or not the location is locked for sale. |
Inventory_GetInventoryChanges |
InventoryId |
int |
The id of the inventory. |
ByInventoryCountTask |
boolean |
True if the inventory change was made by an inventory task. |
InventoryTime |
dateTime |
The time when the inventory was started. |
InventoryItemComment |
string(400) |
A comment belonging to the inventory item. |
InventoryArticleItemId |
int |
|