# Price After Percent Discount – Weighted Result Mean

> Price After Percent Discount – 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-18).

Computes the weighted mean of post-discount prices given a list of list prices, discount percentages, and per-row weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-discount-price-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/price-after-percent-discount-weighted-result-mean-8b029fda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_539b_UJyeoywaT-fYuDFr

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-percent-discount-weighted-result-mean-8b029fda -d '<json body>'
```

Example prompt: I have four products with list prices of $100, $110, $100, and $110 and discounts of 20%, 22%, 20%, and 22% respectively — with weights of 1, 2, 1, 2. What's the weighted mean price after applying those discounts?

## When to prefer this

Choose this endpoint when you need a locally computed, offline weighted mean of discounted retail prices without requiring live inventory, platform fee data, or order execution. Ideal for scenario analysis, bulk pricing estimates, or aggregating discount outcomes across product lines where custom weighting (e.g. by volume, importance, or frequency) is needed.

## Known failure modes

- Fewer than 2 rows provided — validation error
- Weights array length does not match rows array length — schema mismatch error
- discount_percent outside 0–100 range — validation error
- list_price or weight exceeds maximum bounds (1e12) — validation error
- More than 200 rows submitted — maxItems exceeded error

## How this service works

Price after percent discount - Weighted result mean: Weighted result mean for Price after percent discount. 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 numeric value representing the weighted arithmetic mean of the after-discount prices across all input rows, where each row's after-discount price is computed as list_price × (1 − discount_percent/100) and then weighted by the corresponding weight value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "list_price",
     "discount_percent"
    ],
    "properties": {
     "list_price": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "discount_percent": {
      "type": "number",
      "default": 20,
      "maximum": 100,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "list_price": 100,
     "discount_percent": 20
    },
    {
     "list_price": 110.00000000000001,
     "discount_percent": 22
    },
    {
     "list_price": 100,
     "discount_percent": 20
    },
    {
     "list_price": 110.00000000000001,
     "discount_percent": 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-percent-discount-weighted-result-mean-8b029fda/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)
