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, InventoryTaskCountOperation, ByUser, InventoryTaskCountResponse, 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>
        <AdjustedByUser>
          <UserName>string</UserName>
        </AdjustedByUser>
      </Operation>
    </InventoryTaskCount>
  </soap:Body>
</soap:Envelope>

Request specification

InventoryTaskCount
UserName string(50) Req. Your username
Password string(50) Req. Your password
Operation InventoryTaskCountOperation Req. The operation object
InventoryTaskCountOperation
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.
AdjustedByUser ByUser An element of type ByUser. Designates which user did the adjustment.
ByUser
UserName string(50) Req. The name of the user. Must be an actual user in Ongoing WMS. Will be set as the user that performed the packing.

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>
    <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

InventoryTaskCountResponse
InventoryTaskCountResult InventoryTaskCountResult
InventoryTaskCountResult
Error InventoryTaskCountErrorResult An element of type InventoryTaskCountErrorResult.
Success boolean
InventoryTaskCountErrorResult
ErrorType enum An element of type InventoryTaskCountErrorType.
Message string