# x402toll Stacked Percentage Discount Calculator

> x402toll Stacked Percentage Discount Calculator is a paid API for AI agents from x402toll.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Calculates the final sale price after applying one or more sequential percentage discounts plus an optional flat amount off the original price.

## Facts

- Endpoint: POST https://x402toll.com/v1/commerce/discount
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402toll-stacked-percentage-discount-calculator-d2dece4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5R-XBrTE3iuglAylLD96b

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 x402toll-stacked-percentage-discount-calculator-d2dece4f -d '<json body>'
```

Example prompt: What's the final price on a $250 jacket after a 30% discount and then another 15% off, plus a flat $10 coupon on top?

## When to prefer this

Use this endpoint when you need to compute a final price after one or more percentage discounts applied in sequence (not summed), optionally with an additional flat dollar amount subtracted — ideal for layered promotional pricing, coupon stacking, or wholesale tier calculations where order of discounts matters.

## Known failure modes

- Missing originalPrice returns an error or undefined result
- Negative discount percentages or prices may produce unexpected results
- discountsPct array exceeding 20 items is rejected
- Non-numeric values for price or discount fields cause schema validation errors
- Discount percentages over 100 may result in zero or negative price

## How this service works

Sale price after one or more stacked percentage discounts (applied sequentially, not summed) plus an optional flat amount off.

## Output

Returns the final sale price after all stacked percentage discounts have been applied sequentially (each applied to the already-discounted price) and any flat amount is subtracted, giving the net amount due.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flatOff": {
   "type": "number",
   "default": 0
  },
  "discountPct": {
   "type": "number"
  },
  "discountsPct": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "maxItems": 20
  },
  "originalPrice": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402toll-stacked-percentage-discount-calculator-d2dece4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402toll.com](https://www.zero.xyz/host/x402toll.com/llms.txt)
