Skip to content
HALOWERK

Trade Operations

stock demand shortage severity

Stockout severity returns stockout frequency, worst unfilled demand and average shortfall conditional on stockout. Use it when an agent needs quantifying severity at a proposed stock level.

POST https://handel.halowerk.com/v1/stock-demand-shortage-severity

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
unitsarrayYes
leadintegerYes
stockintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "units": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 2
    },
    "lead": {
      "type": "integer",
      "minimum": 1,
      "maximum": 90
    },
    "stock": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "units",
    "lead",
    "stock"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "units": [
    169,
    29,
    0,
    63,
    294,
    52,
    4,
    9,
    0,
    0,
    0,
    0,
    1,
    0,
    0
  ],
  "lead": 2,
  "stock": 90
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’