{"uid":"cap_wqoCUdDcEgPNufgwud-VW","slug":"writerslogic-number-to-words-cheque-invoice-37cc0056","name":"WritersLogic Number-to-Words (Cheque/Invoice)","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/number-to-words?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["amount","locale"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Decimal string such as \"-12.50\" (up to 15 integer and 12 fraction digits). JSON numbers are not accepted: they are binary floats."},"locale":{"type":"string","pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$","maxLength":35,"description":"Supported: en-US, en-GB, en-IN."},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 alphabetic code, upper case."},"exponent":{"type":"integer","maximum":8,"minimum":0,"description":"Override the ISO 4217 exponent."}},"additionalProperties":false},"maxItems":100,"minItems":1}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gIFK3IPApkr6GoTfvMBpR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts numeric amounts to English words for cheques, contracts, and invoices, supporting en-US, en-GB, and en-IN locales with optional ISO 4217 currency formatting.","exampleAgentPrompt":"Spell out $1,234.56 in words for a US cheque — use the en-US locale with currency USD so I get the cheque line and fraction I can print next to the figures.","exampleUseCases":[{"title":"US dollar cheque word line","prompt":"I need to write a cheque for $45,678.99 — can you spell out that amount in en-US English words with USD so I get the proper cheque line and the cents fraction?"},{"title":"British English contract amount","prompt":"For a UK contract I need the amount £2,500.00 written out in full British English (en-GB, currency GBP) — with the 'and' style like 'two thousand five hundred pounds'."},{"title":"Indian rupee invoice in lakh/crore","prompt":"Please convert ₹1,25,00,000 — that's 12500000 — into words using the en-IN locale with currency INR so I get the lakh and crore style for my Indian invoice."}],"resultDescription":"Returns, per input item: the integer portion spelled out in English words according to the requested locale (e.g. 'one hundred twenty-three' for en-US, 'one hundred and twenty-three' for en-GB, lakh/crore style for en-IN); for currency requests, also a minor-unit fraction as a digit-over-denominator string (e.g. '56/100') and a formatted cheque line using the ISO 4217 currency name. Items with unsupported locales return an 'unsupported' marker rather than potentially incorrect words. Items whose fraction digits exceed the currency's allowed exponent return an error.","failureModes":["Locale not en-US, en-GB, or en-IN: returns 'unsupported' status rather than words","Fraction digits exceed the currency's ISO 4217 exponent (e.g. 3 decimals for USD): request fails with validation error","Integer part exceeds 999,999,999,999,999: out-of-range error","Input amount provided as JSON number (float) instead of decimal string: rejected","Currency code not a valid 3-letter ISO 4217 uppercase code: validation error","Batch exceeds 100 items: rejected","Amount string does not match required pattern (e.g. too many integer or fraction digits): validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to produce legally compliant English-language word representations of numbers or monetary amounts for cheques, contracts, or invoices — especially when locale-specific conventions matter (US style without 'and', UK style with 'and', or Indian lakh/crore grouping). Prefer it over generic LLM text generation when you need deterministic, verifiable output that won't hallucinate words, and when you need the ISO 4217 cheque line format with correct minor-unit fraction notation for currencies like KWD (3 decimals) or JPY (0 decimals).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:57.937Z","isFirstParty":false,"canonicalSlug":"writerslogic-number-to-words-cheque-invoice-37cc0056"}