# Pricing Math – Bundle Price Calculator

> Pricing Math – Bundle Price Calculator is a paid API for AI agents from pricing-math.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates bundle price, customer savings, savings percentage, and bundle margin from a list of individual item prices plus either a discount percentage or a fixed bundle price.

## Facts

- Endpoint: GET https://pricing-math.x402tookit.com/bundle-price?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pricing-math-bundle-price-calculator-cb8b70bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PpjxLwLPZHVdX38QPcPht

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 pricing-math-bundle-price-calculator-cb8b70bf
```

Example prompt: I'm selling three items priced at $30, $20, and $10 individually — if I bundle them with a 25% discount, what's the bundle price, how much does the customer save, and what's my margin if my total cost is $40?

## When to prefer this

Use this endpoint when you need to compute bundle pricing math — savings, margin, and per-item averages — from a list of item prices and either a percentage discount or a fixed bundle price. It is purpose-built for retail/e-commerce bundling scenarios and returns all key metrics in a single call, making it preferable to generic calculators or building the arithmetic manually.

## Known failure modes

- Missing required 'items' query parameter returns an error
- Supplying both discountPct and bundlePrice simultaneously is invalid — exactly one must be provided
- Non-numeric or malformed item price values cause a parsing error
- Negative discount percentages or bundle prices may yield unexpected results
- Missing totalCost means bundle margin will not be returned

## How this service works

Bundle price, savings and bundle margin from item prices plus either a bundle discount percent or a set bundle price.

## Output

Returns the computed bundle price, total of individual item prices, customer savings amount, customer savings percentage, average price per item, item count, and optionally bundle margin (if total cost is supplied). Also includes metadata fields like source, timestamp, and any disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "items"
     ],
     "properties": {
      "items": {
       "type": "string",
       "description": "Comma-separated individual item prices, e.g. 30,20,10"
      },
      "totalCost": {
       "type": "number",
       "description": "Your total cost of all items, to get bundle margin"
      },
      "bundlePrice": {
       "type": "number",
       "description": "Fixed bundle price"
      },
      "discountPct": {
       "type": "number",
       "description": "Bundle discount percent off the item total. Give exactly one of discountPct or bundlePrice"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "itemCount": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "itemsTotal": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "bundlePrice": {
       "type": [
        "null",
        "number"
       ]
      },
      "customerSavings": {
       "type": [
        "null",
        "number"
       ]
      },
      "customerSavingsPct": {
       "type": [
        "null",
        "n
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pricing-math-bundle-price-calculator-cb8b70bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pricing-math.x402tookit.com](https://www.zero.xyz/host/pricing-math.x402tookit.com/llms.txt)
