Skip to content
HALOWERK

Trade Operations

nested pack sealed stock allocation

Packaging sealed-stock allocation selects available unopened units to meet an order exactly, without breaking a pack. Use it when an agent needs a feasibility check against finite stock.

POST https://handel.halowerk.com/v1/nested-pack-sealed-stock-allocation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
factorsarrayYes
availablearrayYes
unitsintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "factors": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 2,
        "maximum": 1000
      },
      "maxItems": 5,
      "minItems": 1
    },
    "available": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100000000
      },
      "maxItems": 6,
      "minItems": 2
    },
    "units": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    }
  },
  "required": [
    "factors",
    "available",
    "units"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "factors": [
    6,
    4,
    20
  ],
  "available": [
    0,
    8,
    2,
    0
  ],
  "units": 66
}

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 โ†’