Skip to content
HALOWERK

Text Tools

currency amount minor unit exactness

Currency precision returns whether an amount is exactly representable in standard minor units and its exact integer value. Use it when an agent needs to validate a monetary field before export.

POST https://text.halowerk.com/v1/currency-amount-minor-unit-exactness

Inputs

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

Open original schema

Published input example

{
  "locale": "de-DE",
  "value": "1234.50",
  "currency": "EUR"
}

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 →