Click or drag to resize

PointOfSalePaymentClientOfferRedemption Method

Submit an Offer Redemption. An Offer Redemption can be used to purchase an offer on behalf of a member.

Remarks
  • Only points purchases are redeemable through this service
  • Only purchases that do not require shipping are redeemable through this service
  • Admin fees and handling fees will not be included when making a purchase through this service
  • Standard shopping cart validation rules are applied
Syntax
C#
public Result OfferRedemption(
	RequestOfPointOfSaleOfferRedemption request
)

Parameters

request
Type: PointOfSalePaymentRequestOfPointOfSaleOfferRedemption

Return Value

Type: Result
Examples
C#
using (var svc = new PointOfSalePayment.PointOfSalePaymentClient())
{
  var request = new PointOfSalePayment.RequestOfPointOfSaleOfferRedemption();
  request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate

  var offerRedemption = new PointOfSalePayment.PointOfSaleOfferRedemption();
  offerRedemption.Member_RSN = new Guid("2e062505-d8af-42f9-9919-8d26d99808b9");; //Required - RSN of member
  offerRedemption.CampaignOffer_RSN = new Guid("34ed4cd0-54b3-459b-b31b-9951d9ec3068");; //Required - RSN of campaign offer
  offerRedemption.Quantity = 1; //Required
  offerRedemption.PointsPaymentType = "LOYALTY"; //Required - Valid values are : 'LOYALTY', 'SHARE' or 'SOCIAL'
  offerRedemption.Colour = null; //Optional - If provided must be an available colour
  offerRedemption.Size = null; //Optional - If provided must be an available size

  //add offer redemption to request
  request.Value = offerRedemption;//Required

  PointOfSalePayment.Result result = svc.OfferRedemption(request);

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