{"uid":"cap_N4KHTvUeFjnIIKdMRLCPz","slug":"money-parse-locale-aware-money-string-parser-e130f574","name":"Money Parse: Locale-Aware Money String Parser","description":"Parse a formatted money string back into a number, using the locale's grouping and decimal separators (so '1.234,56' in de-DE → 1234.56). Currency symbols/codes and whitespace are stripped; parentheses or a leading minus mean negative. A string with no numeric amount is a clean 400.","url":"https://money.openverbs.com/v1/parse","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":["text"],"properties":{"text":{"type":"string","maxLength":100,"minLength":1,"description":"The formatted money string."},"locale":{"type":"string","description":"BCP-47 locale that determines the separators. Default en-US."}},"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_DM16HEN8bjEktuxq8Pu7C","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":"Parses a formatted money string (e.g. '1.234,56') back into a plain numeric value, respecting locale-specific grouping and decimal separators, and stripping currency symbols, codes, and whitespace.","exampleAgentPrompt":"Parse the money string '1.234,56 €' into a plain number using the German locale (de-DE) — strip the currency symbol and give me back 1234.56.","exampleUseCases":[{"title":"Parsing European invoice amounts","prompt":"I have a German invoice showing '2.500,00 EUR' — can you parse that into a plain number so I can do math on it?"},{"title":"Normalizing user-entered price inputs","prompt":"A user typed '$1,299.99' into a form — parse it using en-US locale and give me the raw numeric value so I can store it."},{"title":"Converting localized e-commerce prices","prompt":"I'm scraping a French shopping site and getting prices like '3 499,00 €' in fr-FR format — parse those into plain numbers for me."}],"resultDescription":"Returns a plain numeric value (e.g. 1234.56) derived from the input money string, with currency symbols, codes, whitespace, and locale-specific formatting removed. Negative values are indicated by a leading minus sign or parentheses in the input. An unparseable string with no numeric content returns a 400 error.","failureModes":["Input string contains no numeric content → 400 Bad Request","Locale code is invalid or unsupported BCP-47 tag → possible 400 or fallback to en-US","Ambiguous separator usage (e.g. '1.234' without locale context) → may misinterpret grouping vs decimal","Empty string input → 400 Bad Request (minLength:1 enforced)","String exceeds 100 characters → rejected by schema validation"],"whenToPreferThis":"Choose this endpoint when you need to reliably convert human-readable, locale-formatted money strings back into machine-usable numbers, especially when dealing with non-English locales where '.' and ',' have swapped roles as grouping/decimal separators. It is part of the money.openverbs.com suite and pairs naturally with its formatting and rounding siblings for round-trip currency workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:21.386Z","isFirstParty":false}