Skip to content
HALOWERK

Text Tools

currency lines versus total rounding delta

Currency reconciliation returns the minor-unit difference between rounding each line and rounding the total once. Use it when an agent needs to explain a rounding difference in translated invoice totals.

POST https://text.halowerk.com/v1/currency-lines-versus-total-rounding-delta

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
currencystringYes
linesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 48,
      "minLength": 1
    },
    "currency": {
      "type": "string",
      "maxLength": 3,
      "minLength": 1
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:[.][0-9]{1,12})?$"
      },
      "maxItems": 60,
      "minItems": 1
    }
  },
  "required": [
    "locale",
    "currency",
    "lines"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de-DE",
  "currency": "EUR",
  "lines": [
    "10.005",
    "10.005",
    "-1.005"
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →