Skip to content
HALOWERK

Calculators and Rule Checks

shop basket bundle versus pieces

Bundle offer comparison returns the premium or saving against the same quantities purchased separately. Use it when an agent needs testing a shop bundle price.

POST https://rechen.halowerk.com/v1/shop-basket-bundle-versus-pieces

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
unitsarrayYes
quantitiesarrayYes
bundleintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "units": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 50,
      "minItems": 1
    },
    "quantities": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10000
      },
      "maxItems": 50,
      "minItems": 1
    },
    "bundle": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "units",
    "quantities",
    "bundle"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "units": [
    255,
    339,
    339
  ],
  "quantities": [
    6,
    6,
    6
  ],
  "bundle": 5498
}

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": {
        "separate": {
          "type": "integer"
        },
        "bundle_saving": {
          "type": "integer"
        },
        "bundle_cheaper": {
          "type": "boolean"
        }
      },
      "required": [
        "separate",
        "bundle_saving",
        "bundle_cheaper"
      ]
    },
    "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 →