# WritersLogic Number-to-Words (Cheque/Invoice)

> WritersLogic Number-to-Words (Cheque/Invoice) is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/number-to-words?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-number-to-words-cheque-invoice-37cc0056
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wqoCUdDcEgPNufgwud-VW

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 writerslogic-number-to-words-cheque-invoice-37cc0056 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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).

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-number-to-words-cheque-invoice-37cc0056/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
