# Procurement Secondary-Measure Weighted Mean

> Procurement 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-15).

Computes a secondary-measure weighted mean over procurement records (up to 200 rows), weighting one numeric field by another locally without external enrichment.

## Facts

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

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 procurement-secondary-measure-weighted-mean-bbc33e5e -d '<json body>'
```

Example prompt: Calculate the weighted mean of unit_cost across these procurement records — I have 4 rows with suppliers group-a and group-b, dates from 2026-10-01 to 2026-10-04, unit costs of 1 to 4, and ordered units of 10, 20, 15, and 30 respectively; use ordered_units as the weighting field.

## When to prefer this

Choose this endpoint when you need a fast, local weighted mean computation over procurement-specific records (with supplier and date context) without needing external data enrichment or forecasting. It is purpose-built for the procurement domain with a fixed schema, making it ideal for structured purchase order data pipelines where up to 200 rows need a secondary-measure weighted average at low cost ($0.01 per call).

## Known failure modes

- Exceeds 200-row limit — request rejected with validation error
- Missing required fields (row_id, supplier, date, ordered_units, unit_cost) cause row-level rejection
- Null values in numeric fields may be excluded or cause NaN results
- Invalid date format (not YYYY-MM-DD) triggers schema validation failure
- Empty rows array returns error
- All numeric values null results in undefined weighted mean

## How this service works

Procurement - Secondary-measure weighted mean: Secondary-measure weighted mean for Procurement. 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

A single numeric weighted mean value computed from the supplied procurement records, where one field (ordered_units or unit_cost) is weighted by the other, returned as a bounded deliverable with data-quality metadata.

## Request schema (JSON Schema)

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

## More

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