{"uid":"cap_RblQWaoWyn-td_hdrwe5Y","slug":"qty-receipt-deterministic-quantity-computation-receipt-fce5ba91","name":"Qty Receipt — Deterministic Quantity Computation Receipt","description":"Qty converts known units for free and interprets messy quantities, prices, recipes, sizes, and dates in code. It never invents a number.","url":"https://qty.vercel.app/v1/receipt?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"path":{"type":"string"},"price":{"type":"string"},"method":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"see":{"mcp":"/mcp","docs":"/docs","llms":"/llms.txt","x402":"/.well-known/x402.json","openapi":"/openapi.json","llmsFull":"/llms-full.txt","agentCard":"/.well-known/agent-card.json"},"sha256":"0000000000000000000000000000000000000000000000000000000000000000","document":{"kind":"qty.receipt.v1","formulas":[],"timestamp":"2026-10-05T00:00:00.000Z","definitions":[]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e-z6SiMiipbB4R6UtP13K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a cryptographically-hashed receipt document confirming the deterministic quantity conversions, formulas, and definitions computed in a Qty session","exampleAgentPrompt":"Pull the Qty receipt for the unit conversion I just ran at path /v1/convert so I can verify the SHA-256 hash and confirm the formulas used were deterministic.","exampleUseCases":[{"title":"Audit recipe scaling computation","prompt":"I just used Qty to scale a recipe and I need to verify the receipt — can you fetch the receipt for path /v1/recipe and show me the SHA-256 hash and the formulas that were applied?"},{"title":"Verify price interpretation is correct","prompt":"After parsing that messy price string, can you pull the Qty receipt at /v1/price so I can confirm the timestamp and check that no numbers were invented?"},{"title":"Confirm unit conversion for compliance log","prompt":"I need a tamper-evident record of the unit conversion Qty just performed — fetch the receipt at /v1/convert and give me the hash and definitions so I can store it for our compliance audit."}],"resultDescription":"A JSON receipt document of kind 'qty.receipt.v1' containing a SHA-256 hash of the computation, an array of formulas applied, an array of definitions used, a timestamp, and a set of links to related resources (docs, MCP, OpenAPI, agent card, llms.txt). The hash allows downstream verification that the computation was deterministic and unmodified.","failureModes":["Missing required 'path' or 'price' query parameter returns an error or empty receipt","Invalid path that doesn't correspond to a prior computation returns an empty formulas/definitions array","Requesting with an unsupported HTTP method (e.g. POST) returns a 405 error","Network or upstream failure may return a non-200 status","SHA-256 field may return all zeros if no computation has been recorded for the requested path"],"whenToPreferThis":"Use this endpoint when you need a cryptographically verifiable, tamper-evident receipt of a deterministic quantity computation performed by the Qty service — especially for audit trails, compliance logging, or confirming that no numbers were hallucinated or invented. Prefer this over general-purpose computation APIs when the guarantee of determinism and the auditability of the result (via SHA-256) are requirements.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:30:17.060Z","isFirstParty":false,"canonicalSlug":"qty-receipt-deterministic-quantity-computation-receipt-fce5ba91"}