# Return Restock Value — Weighted Result Mean

> Return Restock Value — 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-12).

Computes a weighted mean of return restock contribution values across multiple retail return records, given returned units, recoverable percent, unit inventory value, and processing cost.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-retail-return-restock-contribution-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/return-restock-value-weighted-result-mean-e2632241
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BpiS5xIo1ZP7V4CHpxF9f

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 return-restock-value-weighted-result-mean-e2632241 -d '<json body>'
```

Example prompt: Can you calculate the weighted mean restock value for these 4 return batches: [10 units, 80% recoverable, $20 inventory value, $30 processing cost] and [11 units, 88% recoverable, $22 inventory value, $33 processing cost], repeated twice, with weights of 1, 2, 1, 2?

## When to prefer this

Choose this endpoint when you have tabular retail return data across multiple batches and need a single weighted aggregate figure representing net restock contribution value — especially when different return batches should be weighted differently (e.g., by volume or revenue). Prefer over simple averages when heterogeneous batch sizes or importances need to be reflected in the output. Best suited for offline, supplied retail figures; not for live inventory systems or real-time rate lookups.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 records required
- More than 200 rows submitted — maxItems limit exceeded
- Weights array length does not match rows array length
- Negative values for cost or unit fields rejected by schema minimums
- recoverable_percent exceeds 100 — schema maximum enforced
- Missing required fields (returned_units, recoverable_percent, unit_inventory_value, processing_cost) cause validation error

## How this service works

Return restock value after processing - Weighted result mean: Weighted result mean for Return restock value after processing. Supplied retail figures only, up to 200 records. No platform access, live rates or order execution. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded weighted result mean report.

## Output

Returns a single bounded weighted result mean report representing the weighted average restock contribution value across the provided retail return records, incorporating returned units, recoverable percent, unit inventory value, and processing cost per row.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "returned_units",
     "recoverable_percent",
     "unit_inventory_value",
     "processing_cost"
    ],
    "properties": {
     "returned_units": {
      "type": "number",
      "default": 10,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "processing_cost": {
      "type": "number",
      "default": 30,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "recoverable_percent": {
      "type": "number",
      "default": 80,
      "maximum": 100,
      "minimum": 0
     },
     "unit_inventory_value": {
      "type": "number",
      "default": 20,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "returned_units": 10,
     "processing_cost": 30,
     "recoverable_percent": 80,
     "unit_inventory_value": 20
    },
    {
     "returned_units": 11,
     "processing_cost": 33,
     "recoverable_percent": 88,
     "unit_inventory_value": 22
    },
    {
     "returned_units": 10,
     "processing_cost": 30,
     "recoverable_percent": 80,
     "unit_inventory_value": 20
    },
    {
     "returned_units": 11,
     "processing_cost": 33,
     "recoverable_percent": 88,
     "unit_inventory_value": 22
    }
   ],
   "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/return-restock-value-weighted-result-mean-e2632241/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)
