# Target Replenishment Quantity – Weighted Result Mean

> Target Replenishment Quantity – 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-14).

Computes a weighted mean of target replenishment quantities across multiple retail SKU rows using supplied inventory position data.

## Facts

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

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 target-replenishment-quantity-weighted-result-mean-f10013ba -d '<json body>'
```

Example prompt: Calculate the weighted mean replenishment quantity for these four SKU rows: targets of 200, 220, 200, 220 units with inventory positions of 120, 132, 120, 132 — use weights of 1, 2, 1, 2 so the second and fourth rows count twice as much.

## When to prefer this

Use this endpoint when you need a single weighted summary statistic for target replenishment quantities across multiple SKUs, store locations, or product lines — especially when different rows should contribute unequally to the aggregate (e.g. weighted by sales volume, store count, or strategic priority). Prefer this over a simple mean when rows have different importance levels. This is a local calculation with no live inventory data access or order execution.

## Known failure modes

- Mismatched lengths between rows array and weights array causes a validation error
- Fewer than 2 rows supplied returns an error due to minItems constraint
- Negative or zero weights may distort the weighted mean result
- Inventory position values outside the allowed range trigger schema validation failure
- All-zero weights array may cause a division-by-zero error

## How this service works

Target replenishment quantity - Weighted result mean: Weighted result mean for Target replenishment quantity. 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 the average target replenishment quantity across the supplied rows, computed using the provided weights. The result reflects how many units would need to be ordered on a weighted-average basis given the gap between target units and inventory position.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "target_units",
     "inventory_position"
    ],
    "properties": {
     "target_units": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "inventory_position": {
      "type": "number",
      "default": 120,
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "target_units": 200,
     "inventory_position": 120
    },
    {
     "target_units": 220.00000000000003,
     "inventory_position": 132
    },
    {
     "target_units": 200,
     "inventory_position": 120
    },
    {
     "target_units": 220.00000000000003,
     "inventory_position": 132
    }
   ],
   "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/target-replenishment-quantity-weighted-result-mean-f10013ba/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)
