Skip to content
HALOWERK

Trade Operations

freight dim piecewise rounding

Shipment weight reconciliation measures per-piece rounding versus rounding once after summing individual chargeable weights. Use it when an agent needs the rounding component of a multi-piece invoice.

POST https://handel.halowerk.com/v1/freight-dim-piecewise-rounding

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
boxesarrayYes
divisornumberYes
step_kgnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "boxes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cm": {
            "type": "array",
            "items": {
              "type": "number",
              "minimum": 0.01,
              "maximum": 10000
            },
            "maxItems": 3,
            "minItems": 3
          },
          "kg": {
            "type": "number",
            "minimum": 0.001,
            "maximum": 1000000
          }
        },
        "required": [
          "cm",
          "kg"
        ],
        "additionalProperties": false
      },
      "maxItems": 30,
      "minItems": 1
    },
    "divisor": {
      "type": "number",
      "minimum": 1,
      "maximum": 10000000
    },
    "step_kg": {
      "type": "number",
      "minimum": 0.001,
      "maximum": 1000
    }
  },
  "required": [
    "boxes",
    "divisor",
    "step_kg"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "boxes": [
    {
      "cm": [
        40,
        30,
        50
      ],
      "kg": 8
    },
    {
      "cm": [
        50,
        35,
        30
      ],
      "kg": 7
    }
  ],
  "divisor": 4800,
  "step_kg": 1
}

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