Under Coupons in the dashboard you create a new discount code, set a discount rate and optionally choose which products it applies to. Buyers redeem the code in the cart.

Through the Affiliate Program in the dashboard you register individual products so partners can promote them.
Full details in the documentation: Coupons and Affiliate.
