Skip to content
HALOWERK

Trade Operations

quantity tier consolidation

Order consolidation compares independent purchase orders with a single pooled quantity including per-order fees. Use it when an agent needs deciding whether to consolidate a supplier order.

POST https://handel.halowerk.com/v1/quantity-tier-consolidation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
tiersarrayYes
modeSee schemaYes
ordersarrayYes
order_feeintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "tiers": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "minItems": 2,
        "maxItems": 2
      },
      "maxItems": 24,
      "minItems": 1
    },
    "mode": {
      "enum": [
        "graduated",
        "volume"
      ]
    },
    "orders": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000
      },
      "maxItems": 40,
      "minItems": 2
    },
    "order_fee": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    }
  },
  "required": [
    "tiers",
    "mode",
    "orders",
    "order_fee"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "tiers": [
    [
      1,
      12
    ],
    [
      10241,
      11
    ],
    [
      153601,
      8
    ]
  ],
  "mode": "graduated",
  "orders": [
    6000,
    5800
  ],
  "order_fee": 100
}

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