AdministrationClientUpdateCardStatus Method |
Update the Card Status, from the submitted Card Number.
Only the Card Status Property will be updated, regardless of the Card Properties that can be submitted.
public Result UpdateCardStatus( ManagementGroupRequestOfCard request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfCard(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var card = new AdministrationService.Card(); //Required card.CardNumber = "21000005"; //Required card.CardStatus = "ACTIVE"; //Required - Valid values are : 'ACTIVE', 'INACTIVE', 'CLOSED' or 'PEDNINGACTIVATION' request.Value = card;//Required AdministrationService.Result result = svc.UpdateCardStatus(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }