LoyaltyClientDeleteCustomerAccount Method |
Delete an existing Customer Account from the submitted Customer Account RSN.
The Customer Account RSN can be fetched from the Web Service Method: SelectCustomerAccountList
public Result DeleteCustomerAccount( ManagementGroupRequestOfguid request )
using (var svc = new LoyaltyService.LoyaltyClient()) { var request = new LoyaltyService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("f65d623d-0c2f-4e6b-8b51-63a190056bcf");;//Required - RSN of customer account LoyaltyService.Result result = svc.DeleteCustomerAccount(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }