I had the exact same scenario. Setting the following worked:
AuthorizeNetWebService.ProfileTransRefundType refund = new
AuthorizeNetWebService.ProfileTransRefundType();
refund.customerProfileId = cimProfileId;refund.customerPaymentProfileId
= cimPaym...