In vendor dashboard you will see coupon setup. You make the name of the coupon and that is the coupon code. You can restrict it to one or more products and have a few other options. Hope this helps point you in the right direction. You can even display them on your shop page as well. You can test them on yourself by adding items to your cart.