# AgentShield Currency Minor Units Lookup

> AgentShield Currency Minor Units Lookup is a paid API for AI agents from agentshield.live, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Returns the number of minor units (decimal places) for a given ISO 4217 currency code

## Facts

- Endpoint: GET https://agentshield.live/currency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-currency-minor-units-lookup-3a62488e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0ZvS-QYjIWaH9ILtLDl5O

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 agentshield-currency-minor-units-lookup-3a62488e
```

Example prompt: How many minor units does JPY have — like how many decimal places should I use when formatting Japanese yen amounts?

## When to prefer this

Use this endpoint when you need the authoritative minor-unit count for an ISO 4217 currency code — for example, to correctly format monetary values, validate payment amounts, or determine decimal precision. Do NOT use this for exchange rates or currency conversion; a sibling endpoint on agentshield.live handles daily reference rates.

## Known failure modes

- Invalid or unrecognized currency code returns an error response
- Missing required 'code' query parameter causes a 400-level error
- Unofficial or crypto currency codes not in ISO 4217 may not be found

## How this service works

Call when an agent needs the minor-unit count for an ISO currency code. Not an exchange rate.

## Output

Returns the minor-unit count (number of decimal places) for the requested ISO 4217 currency code — for example, USD returns 2 (cents), JPY returns 0 (no subunits), KWD returns 3 (fils).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Three-letter currency code."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-currency-minor-units-lookup-3a62488e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
