We'd like to send customers a coupon code with their credit which they can redeem with their next order. Is there any way that allows us to automatically send an email with that code? Best case would be that the customers gets the link that can be generated in Shopify and when he clicks on that link, the coupon is already deposited in his cart.
We set up a public workflow to handle this in our automation app. You can find it in the workflow library for our app, Mr. Arigato, under the title of "Send a coupon code to a customer when a refund is processed". If you install the app, you can grab the prebuilt workflow and customize it to suit your needs. :)