Click or drag to resize

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.

Syntax
C#
public Result UpdateCardStatus(
	ManagementGroupRequestOfCard request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfCard

Return Value

Type: Result
Examples
C#
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);
  }
}
See Also