Skip to content
HALOWERK

Calculators and Rule Checks

shop basket tax rounding

Basket tax rounding compares the stated exclusive tax rate per line with rounding once on the full basket. Use it when an agent needs reconciling a one-cent checkout difference.

POST https://rechen.halowerk.com/v1/shop-basket-tax-rounding

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
net_linesarrayYes
basis_pointsintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "net_lines": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 50,
      "minItems": 1
    },
    "basis_points": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [
    "net_lines",
    "basis_points"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "net_lines": [
    255,
    339,
    339
  ],
  "basis_points": 2000
}

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": {
        "line_tax": {
          "type": "integer"
        },
        "basket_tax": {
          "type": "integer"
        },
        "difference": {
          "type": "integer"
        }
      },
      "required": [
        "line_tax",
        "basket_tax",
        "difference"
      ]
    },
    "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 →