add in refund api (bug 821906)
fixup! add in refund api (bug 821906)