Skip to content
Fourohtwo

saylorinnovations.com/api/shopping/discount-stack

Final price after stacked discounts, coupons, cashback, shipping and tax with best ordering

SolanaAnswering
GEThttps://saylorinnovations.com/api/shopping/discount-stack

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

curl -i "https://saylorinnovations.com/api/shopping/discount-stack?price=89.99&quantity=3&shipping=7.5&discounts=25%25%2C%2410%2C10%25&buy_x_get_y=2%3A1&tax_percent=8.25&spend_threshold=150%3A20&cashback_percent=5&free_shipping_over=150"

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "price": "89.99",
  "quantity": "3",
  "shipping": "7.5",
  "discounts": "25%,$10,10%",
  "buy_x_get_y": "2:1",
  "tax_percent": "8.25",
  "spend_threshold": "150:20",
  "cashback_percent": "5",
  "free_shipping_over": "150"
}