{"uid":"cap_PpjxLwLPZHVdX38QPcPht","slug":"pricing-math-bundle-price-calculator-cb8b70bf","name":"Pricing Math – Bundle Price Calculator","description":"Bundle price, savings and bundle margin from item prices plus either a bundle discount percent or a set bundle price.","url":"https://pricing-math.x402tookit.com/bundle-price?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","number"]},"averagePricePerItem":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uF-UXStusqmFmTF9rTolR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"E-commerce bundle discount savings","prompt":"I have three products priced at $49, $29, and $19. If I bundle them and offer a 20% discount, what would the bundle price be and how much would customers save compared to buying separately?"},{"title":"Fixed-price bundle margin check","prompt":"I want to sell a bundle of items priced at $50, $35, and $25 individually at a flat price of $90. My total cost is $60 — can you tell me the customer savings and my margin on that bundle?"},{"title":"Average per-item price in a bundle","prompt":"If I bundle items priced at $15, $25, and $10 together with a 10% discount, what's the bundle price and what's the average price per item the customer is paying?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:14:24.826Z","isFirstParty":false,"canonicalSlug":"pricing-math-bundle-price-calculator-cb8b70bf"}