Skip to content
HALOWERK

Trade Operations

quantity tier overbuy choice

Quantity break optimization finds the cheapest order meeting demand within an allowed extra quantity. Use it when an agent needs testing whether ordering more reduces an all-units bill.

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

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
tiersarrayYes
modeSee schemaYes
requiredintegerYes
extraintegerYes
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"
      ]
    },
    "required": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "extra": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    }
  },
  "required": [
    "tiers",
    "mode",
    "required",
    "extra"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "tiers": [
    [
      1,
      12
    ],
    [
      10241,
      11
    ],
    [
      153601,
      8
    ]
  ],
  "mode": "graduated",
  "required": 10220,
  "extra": 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 โ†’