{"uid":"cap_AL4wqGo35Pm9kRpU_1mhl","slug":"brainiac-inventory-intelligence-stockout-risk-calculator-4df1e883","name":"BRAINIAC Inventory Intelligence — Stockout Risk Calculator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/inventory-intelligence/stockout-risk-calculate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"sales":{"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","maxLength":80},"date":{"type":"string","maxLength":40},"units":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":2000},"products":{"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"onHand":{"type":"number","maximum":1000000000,"minimum":0},"onOrder":{"type":"number","maximum":1000000000,"minimum":0},"unitCost":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":200},"slowDays":{"type":"number","maximum":3650,"minimum":1},"purchases":{"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","maxLength":80},"date":{"type":"string","maxLength":40},"units":{"type":"number","maximum":1000000000,"minimum":0},"unitPrice":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":500},"slowUnits":{"type":"number","maximum":1000000000,"minimum":0},"suppliers":{"type":"array","items":{"type":"object","properties":{"moq":{"type":"number","maximum":1000000000,"minimum":0},"sku":{"type":"string","maxLength":80},"supplierId":{"type":"string","maxLength":80},"leadTimeDays":{"type":"number","maximum":3650,"minimum":0}},"additionalProperties":false},"maxItems":200},"reviewDays":{"type":"number","maximum":365,"minimum":0},"historyDays":{"type":"integer","maximum":3650,"minimum":1},"forecastDays":{"type":"integer","maximum":365,"minimum":1},"serviceLevelZ":{"type":"number","maximum":5,"minimum":0},"excessDaysCover":{"type":"number","maximum":3650,"minimum":1}}},"responseSchema":{"type":"json","example":{"items":[{"sku":"SKU-1","name":"Widget","available":20,"daysCover":2,"riskLevel":"elevated","leadTimeDays":4,"reorderPoint":45.9,"demandSupplied":true,"availableSupplied":true,"belowReorderPoint":true,"daysCoverSupplied":true,"averageDailyDemand":10,"leadTimeDaysSupplied":true,"reorderPointSupplied":true,"stockoutRiskCalculated":true}],"status":"calculated","findings":[],"checkedAt":"2026-11-04T19:00:00.000Z","assumptions":["serviceLevelZ=1.65 (explicit normal z factor for safety stock)","reviewDays=0","historyDays=5","forecastDays=30","excessDaysCover=90","slowUnits=5 over slowDays=90","Daily demand average fills missing days in the history window with zero when a history end date exists.","Seasonality is not added. Only variation already present in the supplied history affects the standard deviation."],"atRiskCount":1,"limitations":["Products, sales, supplier lead times, and purchases are copied only from labeled fields supplied by the caller.","Reorder point = average daily demand × (lead time days + review days) + safety stock.","Safety stock = service-level z × daily demand standard deviation × square root of lead time days.","Demand forecasts use a simple average of available history only. Seasonality is not modeled unless present in that history.","Lead times, demand, and purchase prices are never invented. No purchase order is created and no inventory system is accessed."],"priceInvented":false,"demandInvented":false,"leadTimeInvented":false,"purchaseOrderCreated":false,"inventorySystemAccessed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TARjlSNnQIiBBKUU34o91","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates stockout risk, days-of-cover, and reorder points for inventory items using sales history, current stock levels, and supplier lead times","exampleAgentPrompt":"Can you assess the stockout risk for my products? I'll give you my current stock levels (Widget SKU-1: 20 units on hand), 5 days of sales history, and supplier lead time of 4 days — tell me which SKUs are at risk and what their reorder points should be.","exampleUseCases":[{"title":"Pre-reorder stockout triage for e-commerce","prompt":"I have 15 SKUs in my Shopify store. Can you calculate stockout risk for all of them using my last 90 days of sales history and current on-hand quantities? Lead times from my main supplier are 7 days and I want to know which ones are below their reorder points so I can place a purchase order today."},{"title":"Seasonal inventory safety stock check","prompt":"Before the holiday rush, I want to know which of my top 50 products are most at risk of stocking out. I have sales data for the last 180 days, current inventory levels, and supplier lead times. Flag anything with elevated or critical risk and tell me the reorder point for each."},{"title":"Weekly warehouse replenishment planning","prompt":"Every Monday I need to review which warehouse SKUs need restocking. Can you run a stockout risk calculation using the past 30 days of sales, current on-hand stock, and a 5-day supplier lead time with a 1-day review period? I want to see days-of-cover and average daily demand for each item."}],"resultDescription":"Returns a JSON object with an array of items, each containing: SKU, name, units available, days of cover remaining, risk level (e.g. elevated/critical/low), reorder point, average daily demand, lead time, and boolean flags indicating which values were supplied vs. assumed. Also includes global counts of at-risk products, model assumptions, and explicit limitations (e.g. no seasonality modeled, no purchase orders created).","failureModes":["Missing required product or sales data — API may return partial results or flag missing fields","Sales history too short — model falls back to zero-fill for missing days, potentially underestimating demand","SKU mismatch between products, sales, and suppliers arrays — mismatched SKUs produce incomplete calculations","CSV/JSON parsing failure if unstructured input is malformed","Input exceeds max array sizes (200 products, 2000 sales rows) — request will be rejected","No supplier lead time provided — reorder point calculation may default to zero lead time"],"whenToPreferThis":"Use this endpoint when you have structured inventory and sales data and need a rapid, stateless stockout risk computation without connecting to a live inventory system. Ideal for agents orchestrating weekly replenishment workflows, pre-purchase-order reviews, or alerting pipelines where the agent supplies the data. Prefer this over manual spreadsheet analysis or ERP queries when you want a standardized risk score and reorder point with explicit assumptions surfaced. Not suited for real-time inventory system integration or demand forecasting with explicit seasonality modeling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:48.967Z","isFirstParty":false,"canonicalSlug":"brainiac-inventory-intelligence-stockout-risk-calculator-4df1e883"}