{"uid":"cap_vr_t3uh98jrZaSt2n7Yrd","slug":"pricing-math-stacked-discount-calculator-86fc5c03","name":"Pricing Math – Stacked Discount Calculator","description":"Final price and effective discount when percentage discounts are stacked one after another, versus simply adding them.","url":"https://pricing-math.x402tookit.com/discount-stack?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":["price","discounts"],"properties":{"price":{"type":"number","description":"List price before discounts"},"discounts":{"type":"string","description":"Comma-separated percent discounts applied in order, e.g. 20,10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"to":{"type":["null","number"]},"from":{"type":["null","number"]},"discountPct":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"listPrice":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"finalPrice":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"amountSaved":{"type":["null","number"]},"additiveDiscountPct":{"type":["null","number"]},"effectiveDiscountPct":{"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_kQAK5R3QF0cmS99pdTHtw","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 the final price and effective discount when percentage discounts are applied sequentially (stacked), and compares that to a simple additive total of the same discounts.","exampleAgentPrompt":"What's the final price and effective discount if I stack a 20% discount and then a 10% discount on a $150 list price — and how does that compare to just adding the two percentages together?","exampleUseCases":[{"title":"Retail promotional offer evaluation","prompt":"We're running a sale with a 25% off sticker discount and then an extra 15% off at checkout on a $200 item — what's the real effective discount and final price the customer pays, versus just saying it's 40% off?"},{"title":"B2B trade and cash discount stacking","prompt":"My supplier gives a 30% trade discount and then a 5% cash discount on a $500 invoice price — can you calculate the actual final price step by step and tell me the true effective discount versus the simple 35% sum?"},{"title":"Coupon stacking sanity check","prompt":"If I apply a 10% member discount followed by a 20% clearance discount on a $79.99 item, what do I actually end up paying and what's the combined effective percentage off compared to just adding 10 and 20?"}],"resultDescription":"Returns the final price after all discounts are applied sequentially, the effective discount percentage (true compounded rate), the simple additive discount percentage for comparison, total amount saved, a step-by-step breakdown of each discount stage (from/to price and discount applied), a human-readable summary and verdict, plus metadata like source and timestamp.","failureModes":["Missing required 'price' query parameter returns an error","Missing or malformed 'discounts' parameter (not comma-separated numbers) causes a parse error","Non-numeric values in the discounts string result in a validation failure","Discount percentages outside 0–100 range may cause unexpected or erroneous results","Network or service unavailability returns a non-200 status"],"whenToPreferThis":"Choose this endpoint when you need to understand the compounding effect of sequentially applied percentage discounts versus naive addition — especially useful in retail, B2B invoicing, or coupon-stacking scenarios where the order and chaining of discounts matters. It is more precise than manual calculation and provides a step-by-step audit trail. Prefer it over a generic calculator when you need both the stacked result and the additive comparison in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:15:02.257Z","isFirstParty":false,"canonicalSlug":"pricing-math-stacked-discount-calculator-86fc5c03"}