# Warehouse Movements Secondary-Measure Weighted Mean

> Warehouse Movements Secondary-Measure Weighted 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 secondary-measure weighted mean over warehouse movement records (received or dispatched units) grouped by location and date.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-warehouse-movements-weighted-average?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/warehouse-movements-secondary-measure-weighted-mean-3627795b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UbJB91sw1qj_uj2pajn3Q

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 warehouse-movements-secondary-measure-weighted-mean-3627795b -d '<json body>'
```

Example prompt: Can you calculate the secondary-measure weighted mean for these warehouse movement records? I have 4 rows with locations group-a and group-b, dates from 2026-10-01 to 2026-10-04, and I want to weight by received_units.

## When to prefer this

Choose this endpoint when you need a weighted mean specifically over warehouse movement data (received or dispatched units) across locations and dates, with up to 200 records, and require fast local numeric computation without external data enrichment or forecasting. Prefer this over general statistics APIs when your data conforms to the warehouse movements schema and you want a cost-effective ($0.01 USDC) single-metric weighted average output.

## Known failure modes

- Empty or missing rows array returns validation error
- More than 200 rows submitted exceeds maxItems limit and is rejected
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Missing required fields (row_id, location, date, received_units, dispatched_units) results in rejection
- Invalid field enum value (not received_units or dispatched_units) causes error
- All null numeric values may result in undefined or error output

## How this service works

Warehouse movements - Secondary-measure weighted mean: Secondary-measure weighted mean for Warehouse movements. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded secondary-measure weighted mean deliverable.

## Output

Returns a secondary-measure weighted mean value computed from the supplied warehouse movement records, using the selected field (received_units or dispatched_units) as the measure. The result is a single numeric aggregate reflecting the weighted average across up to 200 typed records, processed locally without external enrichment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "location",
     "date",
     "received_units",
     "dispatched_units"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "location": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "received_units": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "dispatched_units": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "location": "group-a",
     "received_units": 10,
     "dispatched_units": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "location": "group-b",
     "received_units": 20,
     "dispatched_units": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "location": "group-a",
     "received_units": 15,
     "dispatched_units": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "location": "group-b",
     "received_units": 30,
     "dispatched_units": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "received_units",
    "dispatched_units"
   ],
   "type": "string",
   "default": "received_units"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/warehouse-movements-secondary-measure-weighted-mean-3627795b/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)
