{"uid":"cap_5R-XBrTE3iuglAylLD96b","slug":"x402toll-stacked-percentage-discount-calculator-d2dece4f","name":"x402toll Stacked Percentage Discount Calculator","description":"Sale price after one or more stacked percentage discounts (applied sequentially, not summed) plus an optional flat amount off.","url":"https://x402toll.com/v1/commerce/discount","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"flatOff":{"type":"number","default":0},"discountPct":{"type":"number"},"discountsPct":{"type":"array","items":{"type":"number"},"maxItems":20},"originalPrice":{"type":"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_7LtlIbR8ycVFGqquTn6Nk","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 sale price after applying one or more sequential percentage discounts plus an optional flat amount off the original price.","exampleAgentPrompt":"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?","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:37.760Z","isFirstParty":false}