# Price After Capped Percentage Coupon – Weighted Result Mean

> Price After Capped Percentage Coupon – 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-17).

Computes the weighted mean of final prices after applying a percentage discount capped at a maximum dollar amount, across up to 200 retail price rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-retail-capped-coupon-price-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/price-after-capped-percentage-coupon-weighted-result-mean-a2adf981
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xu1DzpvTOIi033Z81rrHb

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 price-after-capped-percentage-coupon-weighted-result-mean-a2adf981 -d '<json body>'
```

Example prompt: I have 4 retail items with list prices of $100, $110, $100, and $110, each with a 30–33% discount capped at $20–22, and weights of 1, 2, 1, 2 — can you calculate the weighted mean price customers actually pay after the capped coupon?

## When to prefer this

Use this endpoint when you need a statistically weighted aggregate (mean) of post-coupon prices across multiple retail items where the percentage discount has a hard dollar cap — particularly when individual rows have different importance weights such as sales volume or inventory share. Prefer this over a simple average when rows are not equally significant.

## Known failure modes

- Fewer than 2 rows submitted — minimum row count not met
- Weights array length does not match rows array length
- list_price, discount_percent, or maximum_discount missing from a row — required fields validation error
- Values exceeding maximum bounds (e.g. list_price > 1e12) rejected
- More than 200 rows submitted — exceeds maxItems limit
- Payment not received or insufficient USDC — 402 Payment Required

## How this service works

Price after capped percentage coupon - Weighted result mean: Weighted result mean for Price after capped percentage coupon. 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

A single weighted mean value representing the average final price customers pay after the capped percentage coupon is applied across all submitted rows, factoring in the supplied per-row weights.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "list_price",
     "discount_percent",
     "maximum_discount"
    ],
    "properties": {
     "list_price": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "discount_percent": {
      "type": "number",
      "default": 30,
      "maximum": 100,
      "minimum": 0
     },
     "maximum_discount": {
      "type": "number",
      "default": 20,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "list_price": 100,
     "discount_percent": 30,
     "maximum_discount": 20
    },
    {
     "list_price": 110.00000000000001,
     "discount_percent": 33,
     "maximum_discount": 22
    },
    {
     "list_price": 100,
     "discount_percent": 30,
     "maximum_discount": 20
    },
    {
     "list_price": 110.00000000000001,
     "discount_percent": 33,
     "maximum_discount": 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/price-after-capped-percentage-coupon-weighted-result-mean-a2adf981/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)
