{"uid":"cap_O9OmkTL36KEPeaTw7hbAn","slug":"eoq-holding-cost-optimizer-136f9298","name":"EOQ & Holding-Cost Optimizer","description":"Economic order quantity and annual cost.","url":"https://x402-niche-briefs.fly.dev/v1/eoq-holding-cost-optimizer?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"],"type":"string"},"queryParams":{"type":"object","required":["annual_demand","order_cost_usd","unit_cost_usd","holding_pct"],"properties":{"holding_pct":{"type":"string","description":"Holding %/yr"},"annual_demand":{"type":"string","description":"Annual units"},"unit_cost_usd":{"type":"string","description":"Unit cost"},"order_cost_usd":{"type":"string","description":"Cost per order"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","eoq_units","orders_per_year","annual_order_cost_usd","annual_holding_cost_usd","as_of"],"properties":{"as_of":{"type":"string"},"input":{"type":"object","required":["annual_demand","order_cost_usd","unit_cost_usd","holding_pct"],"properties":{"holding_pct":{"type":"number"},"annual_demand":{"type":"number"},"unit_cost_usd":{"type":"number"},"order_cost_usd":{"type":"number"}}},"eoq_units":{"type":"number"},"orders_per_year":{"type":"number"},"annual_order_cost_usd":{"type":"number"},"annual_holding_cost_usd":{"type":"number"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wpDBPWyyZsce_DxGqLIo6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Economic Order Quantity (EOQ) and breaks down annual ordering and holding costs given demand, order cost, unit cost, and holding rate.","exampleAgentPrompt":"What's the optimal order quantity and annual inventory costs for a product with 5,000 units of annual demand, $40 per order cost, $12 unit cost, and a 25% annual holding rate?","exampleUseCases":[{"title":"Restocking frequency for a warehouse SKU","prompt":"We sell 12,000 units a year of a $8 widget, it costs us $50 to place each order, and our holding rate is 20% per year — what's our EOQ and how much are we spending annually on ordering and carrying that inventory?"},{"title":"DTC brand evaluating bulk order trade-offs","prompt":"I'm trying to figure out if buying in larger batches makes sense. My annual demand is 3,000 units, each unit costs $25, ordering costs me $75 per purchase order, and my holding cost is 30% per year. Give me the EOQ and break down the annual costs."},{"title":"Operations review for cost reduction initiative","prompt":"Our CFO wants to cut inventory carrying costs. Can you run EOQ for us: 20,000 units annual demand, $60 per order, $5 unit cost, and 18% holding percentage?"}],"resultDescription":"Returns the calculated EOQ in units, number of orders per year, annual ordering cost in USD, annual holding cost in USD, the echoed input parameters, and a timestamp. All monetary values are in USD.","failureModes":["Missing required query parameters (annual_demand, order_cost_usd, unit_cost_usd, holding_pct) returns an error","Non-numeric or zero values for demand, costs, or holding rate may cause computation errors or division-by-zero","Holding percentage expressed as a whole number vs decimal fraction may yield unexpected results if format is ambiguous","Payment failure via x402 protocol results in 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a quick, deterministic EOQ calculation with a full cost breakdown — especially in automated inventory planning pipelines, agent workflows comparing SKU reorder strategies, or when you want both the optimal order quantity and the annual cost decomposition in a single call. Prefer this over manual formula computation or spreadsheet-based tools when integrating into an agentic workflow that already uses x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:35.782Z","isFirstParty":false,"canonicalSlug":"eoq-holding-cost-optimizer-136f9298"}