Get stock on hand for many items
POST
Returns the stock position (on hand, reserved, available) for every item in itemIds in one call, in the order sent. Items with no stock record come back with zero quantities rather than an error. Read only.
How to use it
- Collect the item codes from List items or your own catalog sync.
- Send them in itemIds; the response has one row per code, in the same order.
- Nothing is changed; use the available quantity to decide what can be sold.
BearerAuthheader
AuthorizationBearer <JWT>application/json- body
itemIds*array<string>Item codes (catalog itemId) to look up. Unknown or never-stocked items come back with zero quantities.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request worked, ERROR when it did not.
message*stringShort human-readable message describing the result, for logs or display; do not parse it.
data?array<>|One stock row per requested item ID, in the order sent. Items with no stock record come back with zero quantities.
Example Request
curl -X POST 'https://beta.iotoms.com/api/v1/inventory/items/bulk' \ -H 'Content-Type: application/json' \ -d '{ "itemIds": [ "string" ]}'Example Response
{ "status": "string", "message": "string", "data": [ { "itemId": "string", "itemName": "string", "quantityOnHand": 0, "reservedQuantity": 0, "availableQuantity": 0, "minimumStockLevel": 0, "isLowStock": true, "lastAdjustedAt": "2019-08-24T14:15:22Z", "lastAdjustedBy": "string", "version": 0 } ]}