getItemShelfLife
READFetch the shelf-life policy for an item.
POST /api/v1/items/getItemShelfLife
curl -X POST '<your-host>/api/v1/items/getItemShelfLife' \
-H 'Authorization: Bearer <api-key>' \
-H 'Content-Type: application/json' \
-d '{
"itemId": "string"
}'Response
{
"mode": "Fixed Duration",
"days": 0,
"triggerProcessId": "string",
"triggerTiming": "Before",
"calculateFromBom": true
}Parameters
ParameterType
Input schema
schema
{
"type": "object",
"properties": {
"itemId": {
"type": "string"
}
},
"required": [
"itemId"
]
}