{"uid":"cap_THh5yQ1AdWFuOQAaOPjWv","slug":"writerslogic-quote-normalizer-6e513730","name":"WritersLogic Quote Normalizer","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/quote-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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","maxLength":16,"minLength":1},"factor":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Base units in one `uom`."}},"additionalProperties":false},"maxItems":50},"targetCurrency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 alphabetic code, upper case."}}},"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_rA8WBZtUpyl44TAbcMp5g","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 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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Multi-currency procurement bid comparison","prompt":"I've got five supplier bids in EUR, USD, GBP, JPY, and CAD — all quoted per different pack sizes with different tax rules. Can you normalize them all to a net USD price per kilogram using these exchange rates and unit factors so I can see which is actually cheapest?"},{"title":"Tax-inclusive quote stripping for net cost","prompt":"Two of my supplier quotes include VAT at 20% and one has an 8% sales tax baked in — I need the net-of-tax price per unit for each so I can compare them fairly. Here are the quoted prices in GBP and USD."},{"title":"Discount-adjusted per-unit cost calculation","prompt":"Supplier X is offering me a 12% volume discount on a price of USD 850 per case of 24, and Supplier Y is offering EUR 32 per unit with no discount. Can you work out the net USD price per unit for both so I can decide who's cheaper? Use 1 EUR = 1.09 USD and 1 case = 24 units."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:36.115Z","isFirstParty":false,"canonicalSlug":"writerslogic-quote-normalizer-6e513730"}