# WritersLogic ISO 4217 Minor Units Converter

> WritersLogic ISO 4217 Minor Units Converter is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Converts up to 200 monetary amounts between decimal strings and integer minor units (cents, fils, etc.) using ISO 4217 currency exponents from the SIX Group list

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/minor-units?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-iso-4217-minor-units-converter-46a23be3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4oulOVNEwDyJylfQgtHLM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-iso-4217-minor-units-converter-46a23be3 -d '<json body>'
```

Example prompt: Before I send this charge to the payment API, convert $19.99 USD and ¥1500 JPY to their integer minor units — USD should use the standard 2-decimal exponent and JPY uses zero decimals.

## When to prefer this

Use this endpoint when you need to reliably convert between human-readable decimal money strings and the integer minor-unit representation required by payment APIs (Stripe, Adyen, etc.), especially when you need authoritative ISO 4217 exponents for non-obvious currencies like KWD (3), JPY (0), or CLF (4). Prefer it over manual multiplication when handling a batch of amounts or when rounding behavior must be explicit and auditable. Do not use it for currency exchange rate conversion or cash rounding.

## Known failure modes

- Amount has more fraction digits than the currency exponent allows and no rounding mode supplied — returns error with excess digit count
- Currency code not found on the SIX Group ISO 4217 list — returns unknown code error, no exponent is guessed
- Currency has no minor unit (XAU, XXX) — returns unsupported code error
- Input array is empty or exceeds 200 items — schema validation error
- Invalid currency code format (not 3 uppercase letters) — schema validation error
- Integer minor value outside allowed range (±999999999999999) — schema validation error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each input item, returns the ISO 4217 exponent for the currency, the converted integer minor-unit amount, and the canonical decimal string representation. If a decimal amount has more fraction digits than the currency allows and no rounding mode is given, the call fails with an error indicating the excess digits. Unsupported codes (XAU, XXX) or unknown codes return an error rather than a guessed exponent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "currency"
    ],
    "properties": {
     "minor": {
      "type": "integer",
      "maximum": 999999999999999,
      "minimum": -999999999999999,
      "description": "Integer minor units to convert to a decimal string."
     },
     "amount": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Decimal amount to convert to minor units. Give amount or minor, or neither to look up the exponent."
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 alphabetic code, upper case."
     },
     "exponent": {
      "type": "integer",
      "maximum": 8,
      "minimum": 0,
      "description": "Override for currencies absent from ISO 4217 list one or without a minor unit. Wins over the list."
     },
     "rounding": {
      "enum": [
       "half-up",
       "half-down",
       "half-even",
       "up",
       "down",
       "ceiling",
       "floor"
      ],
      "type": "string",
      "description": "Only used when amount has more fraction digits than the exponent. half-up: ties away from zero. half-down: ties toward zero. half-even: ties to the even neighbour. up: away from zero. down: toward zero. ceiling: toward +infinity. floor: toward -infinity."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-iso-4217-minor-units-converter-46a23be3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
