Make API to initiate refunds, then after timelock done, the server should do refund automatically. Make API call to get past and current refunds and their statuses.