Skip to content
HALOWERK

Calculators and Rule Checks

inventory planning extra promise

Inventory available to promise calculates extra units that can be committed on a chosen day without creating a later shortfall. Use it when an agent needs confirming an additional order after existing commitments.

POST https://rechen.halowerk.com/v1/inventory-planning-extra-promise

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initialintegerYes
demandarrayYes
receiptsarrayYes
delivery_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
    },
    "delivery_day": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    }
  },
  "required": [
    "initial",
    "demand",
    "receipts",
    "delivery_day"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "initial": 52,
  "demand": [
    4,
    8,
    5,
    9,
    7,
    2
  ],
  "receipts": [
    0,
    0,
    10,
    0,
    0,
    4
  ],
  "delivery_day": 2
}

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": {
        "extra_units": {
          "type": "integer"
        },
        "limiting_day": {
          "type": "integer"
        },
        "existing_deficit": {
          "type": "integer"
        }
      },
      "required": [
        "extra_units",
        "limiting_day",
        "existing_deficit"
      ]
    },
    "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 →