# Unit Return Rate – Weighted Result Mean

> Unit Return Rate – 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-27).

Computes the weighted mean of unit return rates across multiple retail data rows, using caller-supplied weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-unit-return-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-return-rate-weighted-result-mean-f38ef90c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AYJfHlsL64nxWoAGathV8

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 unit-return-rate-weighted-result-mean-f38ef90c -d '<json body>'
```

Example prompt: Can you calculate the weighted mean return rate across these four retail periods: period 1 had 100 units sold and 5 returned (weight 1), period 2 had 110 sold and 5.5 returned (weight 2), period 3 had 100 sold and 5 returned (weight 1), period 4 had 110 sold and 5.5 returned (weight 2)?

## When to prefer this

Choose this endpoint when you need a local, scenario-based weighted average of unit return rates using your own retail figures, without requiring live inventory access, platform fee data, or order execution. Ideal for offline analysis, forecasting models, or when you want to weight certain periods or product lines more heavily in the aggregate result.

## Known failure modes

- Fewer than 2 rows provided — minimum row count not met
- Weights array length does not match rows array length
- sold_units value is zero or negative — violates exclusiveMinimum constraint
- returned_units exceeds sold_units — logically invalid but may still compute
- More than 200 rows supplied — exceeds maxItems limit
- Non-numeric values in rows or weights fields — schema validation failure

## How this service works

Unit return rate - Weighted result mean: Weighted result mean for Unit return rate. 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

A single weighted mean value representing the aggregate unit return rate across all supplied rows, calculated using the provided weights. No live inventory or platform data is used — the result is derived purely from the caller-supplied sold_units and returned_units figures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "returned_units",
     "sold_units"
    ],
    "properties": {
     "sold_units": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "returned_units": {
      "type": "number",
      "default": 5,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "sold_units": 100,
     "returned_units": 5
    },
    {
     "sold_units": 110.00000000000001,
     "returned_units": 5.5
    },
    {
     "sold_units": 100,
     "returned_units": 5
    },
    {
     "sold_units": 110.00000000000001,
     "returned_units": 5.5
    }
   ],
   "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/unit-return-rate-weighted-result-mean-f38ef90c/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)
