Skip to content
HALOWERK

Handelswerk

invoice arithmetic check

Recalculate invoice line net amounts and VAT with exact decimal arithmetic. Local processing; no model, OCR or external transfer. No identity lookup or legal confirmation.

POST https://handel.halowerk.com/v1/invoice-arithmetic-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
linesarrayYes
expected_grossstringYes
Show full input schema
{
  "type": "object",
  "required": [
    "lines",
    "expected_gross"
  ],
  "properties": {
    "lines": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "type": "object",
        "required": [
          "quantity",
          "unit_price",
          "vat_basis_points"
        ],
        "properties": {
          "quantity": {
            "type": "string",
            "pattern": "^\\d{1,7}(?:\\.\\d{1,4})?$"
          },
          "unit_price": {
            "type": "string",
            "pattern": "^-?\\d{1,10}\\.\\d{2}$"
          },
          "vat_basis_points": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "additionalProperties": false
      }
    },
    "expected_gross": {
      "type": "string",
      "pattern": "^-?\\d{1,10}\\.\\d{2}$"
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "lines": [
    {
      "quantity": "2",
      "unit_price": "5.00",
      "vat_basis_points": 1900
    }
  ],
  "expected_gross": "11.90"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’