{"uid":"cap_JMO1fC1T-hrUHTXluCdPq","slug":"net-merchandise-sales-weighted-result-mean-dbf28aae","name":"Net Merchandise Sales – Weighted Result Mean","description":"Net merchandise sales - Weighted result mean: Weighted result mean for Net merchandise sales. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded weighted result mean deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-retail-net-merchandise-sales-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["gross_merchandise_sales","discounts","returns"],"properties":{"returns":{"type":"number","default":300,"maximum":1000000000000,"minimum":0},"discounts":{"type":"number","default":500,"maximum":1000000000000,"minimum":0},"gross_merchandise_sales":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0}},"additionalProperties":false},"default":[{"returns":300,"discounts":500,"gross_merchandise_sales":10000},{"returns":330,"discounts":550,"gross_merchandise_sales":11000},{"returns":300,"discounts":500,"gross_merchandise_sales":10000},{"returns":330,"discounts":550,"gross_merchandise_sales":11000}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"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_qbUhu0yP46LmAH9DCa9AS","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":"Computes the weighted mean of net merchandise sales (gross sales minus discounts and returns) across multiple supplied data rows using custom weights.","exampleAgentPrompt":"Can you compute the weighted mean of net merchandise sales across these four periods — gross sales were $10,000, $11,000, $10,000, and $11,000; discounts were $500, $550, $500, and $550; returns were $300, $330, $300, and $330 — and weight the periods as 1, 2, 1, 2?","exampleUseCases":[{"title":"Quarterly retail performance summary","prompt":"I have sales data for four quarters: gross sales were $50,000, $60,000, $55,000, and $70,000; discounts were $2,000, $2,500, $2,200, and $3,000; returns were $1,000, $1,200, $1,100, and $1,500. Weight Q4 twice as heavily as the others — weights 1, 1, 1, 2 — and give me the weighted mean net merchandise sales."},{"title":"Promotional period vs baseline weighting","prompt":"We ran a promotion in months 2 and 4 and want those months to count double. Gross sales were $8,000, $15,000, $9,000, $16,000; discounts were $400, $1,500, $450, $1,600; returns were $200, $500, $220, $520. Use weights 1, 2, 1, 2 and compute the weighted average net merchandise sales for me."},{"title":"Year-over-year net sales blend","prompt":"Can you calculate the weighted mean net merchandise sales blending two years of annual data? Year 1: gross $500,000, discounts $20,000, returns $10,000; Year 2: gross $620,000, discounts $25,000, returns $12,000. Weight Year 2 three times more than Year 1 — weights 1, 3."}],"resultDescription":"Returns a single weighted mean value representing net merchandise sales (gross sales minus discounts minus returns) computed across all supplied rows, each row weighted by its corresponding weight value. The result is a scalar float representing the weighted average net merchandise sales figure.","failureModes":["Row count and weight array length mismatch — returns validation error","Fewer than 2 rows supplied — rejected by minItems constraint","Negative values for gross_merchandise_sales, discounts, or returns — rejected by minimum:0 constraint","Values exceeding 1e12 — rejected by maximum constraint","Malformed or non-numeric input fields — returns schema validation error","Empty or null weights array — returns validation error"],"whenToPreferThis":"Choose this endpoint when you need a statistically weighted average of net merchandise sales (gross sales minus discounts minus returns) across multiple time periods or store segments, where some periods should contribute more to the result than others. Prefer it over a simple mean when periods differ in importance, volume, or recency. It is a local, offline calculation — no live inventory, platform API, or account access is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:49.231Z","isFirstParty":false,"canonicalSlug":"net-merchandise-sales-weighted-result-mean-dbf28aae"}