Skip to content
HALOWERK

Calculators and Rule Checks

inventory planning pack order

Inventory replenishment lot sizing rounds a target stock gap to vendor pack multiples and minimum order units. Use it when an agent needs turning an order-up-to target into a feasible quantity.

POST https://rechen.halowerk.com/v1/inventory-planning-pack-order

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
targetintegerYes
on_handintegerYes
on_orderintegerYes
backorderedintegerYes
packintegerYes
minimumintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "target": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "on_hand": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "on_order": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "backordered": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "pack": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "minimum": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    }
  },
  "required": [
    "target",
    "on_hand",
    "on_order",
    "backordered",
    "pack",
    "minimum"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "target": 54,
  "on_hand": 16,
  "on_order": 5,
  "backordered": 6,
  "pack": 12,
  "minimum": 24
}

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": {
        "net_position": {
          "type": "integer"
        },
        "order_units": {
          "type": "integer"
        },
        "excess_units": {
          "type": "integer"
        }
      },
      "required": [
        "net_position",
        "order_units",
        "excess_units"
      ]
    },
    "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 →