{"uid":"cap_qBRiNcoldOqbRqd9y9zaM","slug":"money-openverbs-com-currency-formatter-1c2700b0","name":"money.openverbs.com Currency Formatter","description":"Format a numeric amount as currency for a given locale using Intl, honouring the currency's own minor-unit convention (USD→2, JPY→0). display selects the symbol, narrow symbol, ISO code or full name. An unknown currency or locale is a clean 400.","url":"https://money.openverbs.com/v1/format","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"The amount to format."},"locale":{"type":"string","description":"BCP-47 locale, e.g. en-US, de-DE. Default en-US."},"display":{"enum":["symbol","narrowSymbol","code","name"],"type":"string","description":"How to display the currency. Default symbol."},"currency":{"type":"string","maxLength":3,"minLength":3,"description":"ISO 4217 currency code, e.g. USD, EUR, JPY."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YqcmCdkbyF7OTgx5WCqbD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats a numeric amount as a locale-aware currency string using Intl, respecting the currency's minor-unit convention and configurable display style.","exampleAgentPrompt":"Format 1299.99 as US dollars using the en-US locale with the standard currency symbol.","exampleUseCases":[{"title":"E-commerce checkout price display","prompt":"I need to show a price of 4599 Japanese yen to a customer in Japan — format it correctly for the ja-JP locale using the narrow yen symbol."},{"title":"Invoice amount in European locale","prompt":"Format 2450.75 euros for a German invoice using the de-DE locale and display the full currency name instead of a symbol."},{"title":"Multi-currency dashboard widget","prompt":"I have an amount of 1050 in GBP that I need to display for a UK user — format it with the en-GB locale showing the ISO currency code."}],"resultDescription":"A formatted currency string that respects the currency's minor-unit convention (e.g. '¥1,299' for JPY with zero decimals, '$1,299.99' for USD with two decimals), rendered according to the specified locale and display style (symbol, narrowSymbol, code, or name). Returns HTTP 400 for unknown or invalid currency codes or locales.","failureModes":["Unknown ISO 4217 currency code returns a clean 400 error","Invalid or unsupported BCP-47 locale returns a clean 400 error","Amount not provided returns a validation error","Currency code not exactly 3 characters returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need locale-aware, minor-unit-correct currency formatting without implementing Intl yourself — especially useful in agent workflows that handle multiple currencies and locales and need reliable, consistent display strings. Prefer it over ad-hoc string formatting when you need to support currencies with non-standard decimal places (like JPY or KWD) or when you need flexible display modes (symbol vs ISO code vs full name).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:22.635Z","isFirstParty":false}