# WritersLogic Quote Normalizer

> WritersLogic Quote Normalizer 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 up to 200 supplier price quotes from mixed currencies, units, taxes, and discounts into a comparable net price per base unit in one target currency.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/quote-normalize?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-quote-normalizer-6e513730
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_THh5yQ1AdWFuOQAaOPjWv

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-quote-normalizer-6e513730 -d '<json body>'
```

Example prompt: I have three supplier quotes I need to compare: Supplier A charges EUR 45.00 per 1000 widgets (VAT-inclusive at 20%), Supplier B charges USD 52.00 per 1000 widgets with a 5% discount, and Supplier C charges GBP 38.00 per 1000 widgets — can you normalize all of these to a net USD price per widget using today's rates: 1 EUR = 1.08 USD and 1 GBP = 1.26 USD?

## When to prefer this

Use this endpoint when an AI agent needs to make like-for-like comparisons across supplier quotes that differ in currency, unit of measure, tax treatment, or discount structure. It is purpose-built for procurement normalization workflows where the caller controls all exchange rates and unit factors (no external FX lookups), supports up to 200 lines in a single call, and provides transparent witness data for any line it cannot resolve rather than silently dropping or estimating it. Prefer this over generic currency-conversion APIs when unit-of-measure normalization and tax stripping are also required in the same operation.

## Known failure modes

- Currency in a quote line has no corresponding FX rate supplied — returns unknown with witness naming the missing currency
- Unit of measure has no corresponding uomFactor supplied — returns unknown with witness naming the missing uom
- Tax-inclusive price submitted without a taxRate — returns unknown with witness noting missing tax rate
- Malformed input (invalid ISO currency code, non-numeric price string, more than 200 lines) — validation error before processing
- Empty lines array or missing required fields (id, currency, price) — schema validation rejection

## How this service works

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

## Output

For each input line: a normalized net price per base unit in the target currency expressed to 8 decimal places (half-even rounding), or an 'unknown' result with a witness field naming exactly what data is missing (e.g. FX rate for a currency, conversion factor for a unit of measure, or tax rate for a tax-inclusive price). The response covers all submitted lines in order without choosing a preferred supplier or validating quote dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lines": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "currency",
     "price"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "per": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Quantity the price covers (default 1), e.g. \"1000\" for a per-thousand price."
     },
     "uom": {
      "type": "string",
      "maxLength": 16,
      "minLength": 1,
      "description": "Unit of measure of `per`; the base unit when omitted."
     },
     "price": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Quoted price in major units of `currency`, for `per` units of `uom`."
     },
     "taxRate": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Percent, e.g. \"20\"."
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 alphabetic code, upper case."
     },
     "taxIncluded": {
      "type": "boolean",
      "description": "True if the price already includes tax; then taxRate is required."
     },
     "discountPercent": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Percent discount off the net price."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  },
  "baseUom": {
   "type": "string",
   "maxLength": 16,
   "minLength": 1,
   "description": "Name of the base unit prices are normalised to (default \"unit\")."
  },
  "fxRates": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "from",
     "rate"
    ],
    "properties": {
     "from": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 alphabetic code, upper case."
     },
     "rate": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Target-currency units per one unit of `from`."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50
  },
  "uomFactors": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "uom",
     "factor"
    ],
    "properties": {
     "uom": {
      "type": "string",

… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-quote-normalizer-6e513730/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)
