InventoryTaskCount

If the warehouse has an open inventory task, you can use this function to set the counted number of items at a particular location.

Tags: InventoryTaskCount, Operation, InventoryTaskCountResult, InventoryTaskCountErrorResult

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

<?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>
    <InventoryTaskCount xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Operation>
        <InventoryId>int</InventoryId>
        <ArticleDefId>int</ArticleDefId>
        <LocationId>int</LocationId>
        <CountedNumberOfItems>decimal</CountedNumberOfItems>
      </Operation>
    </InventoryTaskCount>
  </soap:Body>
</soap:Envelope>
+

Request specification

InventoryTaskCount
UserName str(50) Req. Your username
Password str(50) Req. Your password
Operation object Req. An element of type Operation.
Operation
InventoryId int Req. The id of the inventory task.
ArticleDefId int Req. The article id of the article which you have counted.
LocationId int Req. The id of the location which was counted.
CountedNumberOfItems decimal Req. The quantity which was counted.

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>
    <InventoryTaskCountResponse xmlns="http://ongoingsystems.se/Automation">
      <InventoryTaskCountResult>
        <Error>
          <ErrorType>LogonError or InventoryIdNotFound or InventoryIdIsNotActive or WrongInventoryType or ArticleIsDeleted or ArticleNotFound or ArticleAndInventoryHasDiffingGoodsOwners or LocationNotFound or UnknownError or InvalidCountedNumberOfItems or ErrorSavingInventoryCount or ArticleItemsAllocatedOnLocation</ErrorType>
          <Message>string</Message>
        </Error>
        <Success>boolean</Success>
      </InventoryTaskCountResult>
    </InventoryTaskCountResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

InventoryTaskCountResult
Error object A list of InventoryTaskCountErrorResult objects
Success bool True if successful, false otherwise.
InventoryTaskCountErrorResult
Message str(*) Message explaining the error.
ErrorType string The type of error:
- LogonError
- InventoryIdNotFound
- InventoryIdIsNotActive
- WrongInventoryType
- ArticleIsDeleted
- ArticleNotFound
- ArticleAndInventoryHasDiffingGoodsOwners
- LocationNotFound
- UnknownError
- InvalidCountedNumberOfItems
- ErrorSavingInventoryCount
- ArticleItemsAllocatedOnLocation