Skip to content
HALOWERK

Calculators and Rule Checks

inventory planning shipment delay tolerance

Inventory delivery slack finds how long one scheduled receipt can be delayed without adding any backlog days or units. Use it when an agent needs negotiating a delivery date under a fixed demand plan.

POST https://rechen.halowerk.com/v1/inventory-planning-shipment-delay-tolerance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initialintegerYes
demandarrayYes
receiptsarrayYes
receipt_dayintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "initial": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "demand": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 1
    },
    "receipts": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 1
    },
    "receipt_day": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    }
  },
  "required": [
    "initial",
    "demand",
    "receipts",
    "receipt_day"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "initial": 12,
  "demand": [
    4,
    8,
    5,
    9,
    7,
    2
  ],
  "receipts": [
    0,
    0,
    10,
    0,
    0,
    4
  ],
  "receipt_day": 3
}

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": {
        "receipt_units": {
          "type": "integer"
        },
        "max_delay_days": {
          "type": "integer"
        },
        "last_safe_day": {
          "type": "integer"
        }
      },
      "required": [
        "receipt_units",
        "max_delay_days",
        "last_safe_day"
      ]
    },
    "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 →