GetInboundTransactionsByQuery
This function retrieves inbound transactions.
Tags: GetInboundTransactionsByQuery, GetGoodsOwnerInboundTransactionsQuery, GetInboundTransactionsByQueryResponse, GetGoodsOwnerInboundTransactionsResult, GoodsOwnerInboundTransaction, GetGoodsOwnerInboundTransactionsErrorResult, ArticleInfo_GetGoodsOwnerInboundTransactions, InOrder_GetGoodsOwnerInboundTransactions, ArticleItemStatus_GetGoodsOwnerInboundTransactions
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/GetInboundTransactionsByQuery"
<?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>
<GetInboundTransactionsByQuery xmlns="http://ongoingsystems.se/WSI">
<GoodsOwnerCode>string</GoodsOwnerCode>
<UserName>string</UserName>
<Password>string</Password>
<Query>
<InDateFrom>dateTime</InDateFrom>
<InDateTo>dateTime</InDateTo>
<MaxOriginalArticleItemIdsToGet>int</MaxOriginalArticleItemIdsToGet>
<OriginalArticleItemIdFrom>int</OriginalArticleItemIdFrom>
<InboundTransactionTypesToGet>All or ReceivedOnInOrder or ReceivedWithoutInOrder</InboundTransactionTypesToGet>
</Query>
</GetInboundTransactionsByQuery>
</soap:Body>
</soap:Envelope>
Request specification
| GetInboundTransactionsByQuery |
| GoodsOwnerCode |
string(400) |
Req. |
The name/code of your client |
| UserName |
string(50) |
Req. |
Your username |
| Password |
string(50) |
Req. |
Your password |
| Query |
GetGoodsOwnerInboundTransactionsQuery |
Req. |
The query object |
| GetGoodsOwnerInboundTransactionsQuery |
| InDateFrom |
dateTime |
|
Filter inbound transactions to transactions after this time. |
| InDateTo |
dateTime |
|
Filter inbound transactions to transactions before this time. |
| MaxOriginalArticleItemIdsToGet |
int |
|
Max number of articles inbound transactions should be retrieved. |
| OriginalArticleItemIdFrom |
int |
|
Filter transactions to OriginalArticleItemId from this. |
| InboundTransactionTypesToGet |
enum |
|
Filter inbound transactions if they are received on an inbound order or not. Leave empty to get all inbound transactions. |
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>
<GetInboundTransactionsByQueryResponse xmlns="http://ongoingsystems.se/WSI">
<GetInboundTransactionsByQueryResult>
<Success>boolean</Success>
<InboundTransactions>
<GoodsOwnerInboundTransaction>
<Article>
<ArticleDefId>int</ArticleDefId>
<ArticleNumber>string</ArticleNumber>
</Article>
<Batch>string</Batch>
<Serial>string</Serial>
<Container>string</Container>
<InDate>dateTime</InDate>
<ExpiryDate>dateTime</ExpiryDate>
<NumberOfItems>decimal</NumberOfItems>
<Comment>string</Comment>
<OriginalArticleItemId>int</OriginalArticleItemId>
<InOrder>
<InOrderId>int</InOrderId>
<InOrderNumber>string</InOrderNumber>
</InOrder>
<ArticleItemStatus>
<Code>string</Code>
<Name>string</Name>
</ArticleItemStatus>
<Weight>decimal</Weight>
</GoodsOwnerInboundTransaction>
<GoodsOwnerInboundTransaction>
<Article>
<ArticleDefId>int</ArticleDefId>
<ArticleNumber>string</ArticleNumber>
</Article>
<Batch>string</Batch>
<Serial>string</Serial>
<Container>string</Container>
<InDate>dateTime</InDate>
<ExpiryDate>dateTime</ExpiryDate>
<NumberOfItems>decimal</NumberOfItems>
<Comment>string</Comment>
<OriginalArticleItemId>int</OriginalArticleItemId>
<InOrder>
<InOrderId>int</InOrderId>
<InOrderNumber>string</InOrderNumber>
</InOrder>
<ArticleItemStatus>
<Code>string</Code>
<Name>string</Name>
</ArticleItemStatus>
<Weight>decimal</Weight>
</GoodsOwnerInboundTransaction>
</InboundTransactions>
<Error>
<ErrorType>Unknown or LogonError</ErrorType>
<Message>string</Message>
</Error>
</GetInboundTransactionsByQueryResult>
</GetInboundTransactionsByQueryResponse>
</soap:Body>
</soap:Envelope>
Response specification
| GetInboundTransactionsByQueryResponse |
| GetInboundTransactionsByQueryResult |
GetGoodsOwnerInboundTransactionsResult |
|
| GoodsOwnerInboundTransaction |
| Article |
ArticleInfo_GetGoodsOwnerInboundTransactions |
See ArticleInfo_GetInboundTransactions. |
| Batch |
string(50) |
Which batch the inbound transaction belongs to. |
| Serial |
string(128) |
Which serial number the inbound transaction has. |
| Container |
string(50) |
Which container the inbound transaction is targeting. |
| InDate |
dateTime |
The date and time of when the transaction arrives. |
| ExpiryDate |
dateTime |
The date of when the transaction items expire. OBS! Can be null. |
| NumberOfItems |
decimal |
The number of items in the transaction. |
| Comment |
string(400) |
A comment belonging to the inbound transaction. |
| OriginalArticleItemId |
int |
The original article item id of the inbound item. |
| InOrder |
InOrder_GetGoodsOwnerInboundTransactions |
See InOrder_GetInboundTransactions. |
| ArticleItemStatus |
ArticleItemStatus_GetGoodsOwnerInboundTransactions |
See ArticleItemStatus_GetInboundTransactions. |
| Weight |
decimal |
The weight of the items in the transaction. |
| GetGoodsOwnerInboundTransactionsErrorResult |
| ErrorType |
enum |
An element of type GetGoodsOwnerInboundTransactionsErrorType. |
| Message |
string |
|
| ArticleInfo_GetGoodsOwnerInboundTransactions |
| ArticleDefId |
int |
The id of the article. |
| ArticleNumber |
string(200) |
The article number. |
| InOrder_GetGoodsOwnerInboundTransactions |
| InOrderId |
int |
The incoming order id. |
| InOrderNumber |
string(50) |
The name of the incoming order. |
| ArticleItemStatus_GetGoodsOwnerInboundTransactions |
| Code |
string(50) |
The item status code. |
| Name |
string(100) |
The item status name. |