Added refund function to API section