Skip to content
HALOWERK

Calculators and Rule Checks

inventory planning lead time quantile

Inventory reorder threshold estimates a nearest-rank demand quantile across historical lead-time windows. Use it when an agent needs an empirical order trigger for a desired coverage fraction.

POST https://rechen.halowerk.com/v1/inventory-planning-lead-time-quantile

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
demandarrayYes
lead_daysintegerYes
coveragenumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "demand": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 1
    },
    "lead_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "coverage": {
      "type": "number",
      "minimum": 0.01,
      "maximum": 1
    }
  },
  "required": [
    "demand",
    "lead_days",
    "coverage"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "demand": [
    4,
    8,
    5,
    9,
    7,
    2
  ],
  "lead_days": 2,
  "coverage": 0.9
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "trigger_units": {
          "type": "integer"
        },
        "windows": {
          "type": "integer"
        },
        "attained": {
          "type": "number"
        }
      },
      "required": [
        "trigger_units",
        "windows",
        "attained"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

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 →