Click or drag to resize

PointOfSaleClientVoucherDetails Method

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

Syntax
C#
public ResultOfVoucherDetail VoucherDetails(
	RequestOfstring request
)

Parameters

request
Type: PointOfSaleServiceRequestOfstring

Return Value

Type: ResultOfVoucherDetail
Examples
C#
using (var svc = new PointOfSaleService.PointOfSaleClient())
{
  var request = new PointOfSaleService.RequestOfstring();
  request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate
  request.Value = "Voucher code";//Required - Voucher code

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

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