Get inventory aging
GET
Returns days since the last stock movement for each item, with an aging bucket (CURRENT up to 30 days, DAYS_30, DAYS_60, DAYS_90_PLUS). Items that have never moved show -1 days.
BearerAuthheader
AuthorizationBearer <JWT>X-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
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 row per item with days since its last stock movement and an aging bucket.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/inventory/aging' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": [ { "itemId": "string", "itemName": "string", "quantityOnHand": 0, "lastMovementAt": "2019-08-24T14:15:22Z", "daysSinceLastMovement": 0, "agingBucket": "string" } ]}