Click or drag to resize

LoyaltyClientVoucherDetails Method

Returns the details of the Voucher for the submitted Voucher Number.

Syntax
C#
public ResultOfVoucherDetail VoucherDetails(
	ManagementGroupRequestOfstring request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfstring

Return Value

Type: ResultOfVoucherDetail
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfstring();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = "Voucher code";//Required - voucher code

  LoyaltyService.ResultOfVoucherDetail result = svc.VoucherDetails(request);

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