To return an item you purchased with Afterpay online you will need to follow the standard returns process, don't worry it's free and easy. 

Once finalised through Ozmosis customer service, Afterpay will return the funds - usually within 1-3 business days.

For all the details, jump through to the returns page here.