{"uid":"cap_0ZvS-QYjIWaH9ILtLDl5O","slug":"agentshield-currency-minor-units-lookup-3a62488e","name":"AgentShield Currency Minor Units Lookup","description":"Call when an agent needs the minor-unit count for an ISO currency code. Not an exchange rate.","url":"https://agentshield.live/currency?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1lbuueb4A2EIbi5U0yS8t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the number of minor units (decimal places) for a given ISO 4217 currency code","exampleAgentPrompt":"How many minor units does JPY have — like how many decimal places should I use when formatting Japanese yen amounts?","exampleUseCases":[{"title":"Format monetary amounts correctly","prompt":"I need to display a payment amount in Kuwaiti dinar — how many decimal places does KWD use?"},{"title":"Validate payment precision in invoicing app","prompt":"Before I process this invoice in Chilean pesos, tell me how many minor units CLP has so I know if cents apply."},{"title":"Normalize currency amounts across systems","prompt":"I'm building a currency converter and need to know the minor unit count for the Bahraini dinar — what is it for BHD?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:37:31.755Z","isFirstParty":false,"canonicalSlug":"agentshield-currency-minor-units-lookup-3a62488e"}