Upon creating credit memo, follow the below sample instruction to refund only shipment fees


Steps

1) Ensure Return to Stock checkbox all is untick.

2) Set a remark for reference.

3) Set the Refund to Store Credit same amount with Shipping Fees

4) Click Refund Offline button to create the credit memo.