Skip to main content

Discounts and Coupons (Shared Platform API)

Partners frequently use shared discount and coupon endpoints during pricing and checkout flows.

Verified endpoints

MethodEndpointPurpose
GET/api/public/discount-rules/auto-applyGet active automatic discount rules
POST/api/coupons/validateValidate a coupon code
POST/api/coupons/checkAlias endpoint to check coupon availability

Notes

  • use these endpoints together with /api/pricing/calculate-complete
  • coupon validation is typically consumed together with pricing in cents, but public discount-rule metadata may expose rule values/minimums as configured amounts from the discount rule model
  • legacy examples without the /api prefix are outdated and should not be used