Last modified:2026-08-13 18:45:26
Request: application/jsonPreview-only - checks a coupon code against eligibility rules (active window, early-registration cutoff, first-purchase-only, plan restriction, per-user/global redemption caps) for the given plan and returns the discounted price. Writes nothing.Body: code, subscription_slugSuccess: 200 - valid true/false with a reason string when false ("Invalid coupon code", "Invalid subscription plan" for a bad subscription_slug, or an eligibility reason) plus original_price/discount_amount/final_price (all 0 when the plan itself wasn't found, since there's no price to compute against)Errors: 401 - not authenticated. A bad subscription_slug or code is NEVER a 404/422 here - always a 200 with valid: false, since this is a preview endpoint, not a mutation.