Click or drag to resize

AccountClientRequestManagementGroupAccountActivation Method

Generates an Account Activation Request RSN.

The Account Activation Request RSN value can be passed to the Web Service Method: Account Activation to set an Account Status to Active.

Remarks
  • Current Account Status must be Activation Pending
  • Email will be sent to the Account Email Address. The Email has a link that to an Activate Account Web Page that includes the Account Activation Request RSN value
  • Account Activation Request RSN has an expiry of a configurable value, and must be used within this timeframe to be valid
Syntax
C#
public Result RequestManagementGroupAccountActivation(
	ManagementGroupAccountRequest requestAccountActivation
)

Parameters

requestAccountActivation
Type: AccountServiceManagementGroupAccountRequest

Return Value

Type: Result
Examples
C#
using (var svc = new AccountService.AccountClient())
{
  //This method does not require a Token
  var request = new AccountService.ManagementGroupAccountRequest();
  request.AccountName = "Account Name"; //Required - Could be card number/partner name/email address
  request.EmailTemplate = "ACCOUNT_ACTIVATION_TEMPLATE_ID"; //Required
  request.ManagementGroup = "Management group"; //Required

  AccountService.Result result = svc.RequestManagementGroupAccountActivation(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also