# Net Merchandise Sales – Weighted Result Mean

> Net Merchandise Sales – Weighted Result Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Computes the weighted mean of net merchandise sales (gross sales minus discounts and returns) across multiple supplied data rows using custom weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-net-merchandise-sales-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/net-merchandise-sales-weighted-result-mean-dbf28aae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JMO1fC1T-hrUHTXluCdPq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability net-merchandise-sales-weighted-result-mean-dbf28aae -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/net-merchandise-sales-weighted-result-mean-dbf28aae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
