# Country and Currency Codes — ISO 4217 Currency Info

> Country and Currency Codes — ISO 4217 Currency Info is a paid API for AI agents from country-codes-iso.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Look up ISO 4217 currency details (minor units, issuers, countries) by code, number, or name, with optional rounding of an amount to the currency's minor unit.

## Facts

- Endpoint: GET https://country-codes-iso.x402tookit.com/currency-info?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-and-currency-codes-iso-4217-currency-info-5937c6a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZfY7f3P8FjjtmDGowUe_Q

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 country-and-currency-codes-iso-4217-currency-info-5937c6a6
```

Example prompt: What are the ISO 4217 details for the Swiss franc — its currency code, numeric code, minor units, and which countries use it? Also, round the amount 1.005 to the correct number of decimal places for that currency.

## When to prefer this

Use this endpoint when you need authoritative ISO 4217 metadata — minor units, numeric codes, issuers, or country coverage — for a specific currency identified by code, number, or name. It is especially useful when you also need to correctly round a monetary amount to the currency's defined precision (e.g. for invoice generation, payment processing, or display formatting). Prefer it over generic country-to-currency lookups when the currency identifier is already known.

## Known failure modes

- Unknown currency code, number, or name returns a non-match result with reasons field populated
- Malformed or missing 'q' parameter returns a validation error
- Ambiguous name may return a partial or best-guess match with matchedOn field indicating how it was resolved
- Amount field with non-numeric value may return an error or be ignored
- Service degradation flagged in the 'degraded' boolean field

## How this service works

ISO 4217 currency details by code, number or name: minor units, issuers, countries; optional exact rounding of an amount.

## Output

Returns a currency object with the ISO 4217 code, name, numeric code, minor unit count, issuing authorities, and a list of countries (with alpha-2 codes) that use the currency. If an amount is provided, also returns a rounding object showing the input, the rounded value, the minor unit used, and the rounding method applied. Metadata includes source attribution, a summary verdict, and any degraded-data warnings.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Currency code, number or name, e.g. JPY, 978 or Swiss franc"
      },
      "amount": {
       "type": "string",
       "description": "Optional decimal amount to round to the currency's minor unit, e.g. 1.005"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "currency": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "code": {
         "type": [
          "null",
          "string"
         ]
        },
        "kind": {
         "type": [
          "null",
          "string"
         ]
        },
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "issuers": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "numeric": {
         "type": [
          "null",
          "string"
         ]
        },
        "countries": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "object",
          "properties": {
           "name": {
            "type": [
             "null",
             "string"
            ]
           },
           "alpha2": {
            "type": [
             "null",
             "string"
            ]
           }
          }
         }
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-and-currency-codes-iso-4217-currency-info-5937c6a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from country-codes-iso.x402tookit.com](https://www.zero.xyz/host/country-codes-iso.x402tookit.com/llms.txt)
