How to provide free shipping using a coupon?
Step 1. Create an empty cart price rule at Magento Admin Panel → Marketing → Cart Price Rules → Add New Rule. The only thing that should be added to the promotion is the coupon name:
All other settings should be empty:

Step 2. Set up a shipping rule at Magento Admin Panel → Sales → Shipping Rules → Add Rule. Select the shipping option that should be discounted to 0 in Shipping Carriers and Methods field:
It is possible to add Conditions, if required:
Step 3. It's critical to tie the shipping rule to the cart price rule. It is done by going to the Coupons and discounts tab inside the shipping rule and copying the created coupon into the Coupon Codes field:
Here is how the cart page is going to look before the coupon code application:
And after it has been used (only the shipping cost is discounted, whereas the price of the items in cart remains the same):
Related Articles
How to rename a delivery option if it becomes free after applying a shipping rule to it?
Since version 2.12.0 of the extension, we have added the ability to customize shipping carrier and method names in the rules (Amasty → Shipping Rules): Please, note that this functionality is available as part of an active product subscription or ...
Advanced Conditions API (+Reward Points, Extra Fee, Free Gift, Shipping Rules, Shipping Restrictions)
We have created a public API collection for Advanced Conditions module with all available queries and sample data, you can copy it to run local tests in your Magento environment. More details about using public collections can be found in the ...
How to configure the Free Shipping option for the order containing a specific product in case cart subtotal reaches a certain threshold?
As a rule, the Free Shipping delivery option can be configured using the default Magento 2 functionality, in case there are no complex conditions under which it should appear. For example, if you would like to provide free shipping for orders that ...
Shipping Rules API
We have created a public API collection for Shipping Rules module with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More details about using public ...
Can customers receive a Free Gift by applying a coupon code?
The extension works perfectly in tandem with the default Magento cart price rules functionality that contains the coupons feature. In order to create a rule that allows customers to receive a Free Gift with a coupon, please use the Specific Coupon ...