Loading
Referral Marketing
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Voucher Redemption

          Voucher Redemption

          Use the Redeem Voucher API to redeem the vouchers that advocates and their referred friends use. Integrate the Redeem Voucher API with one or more of your external systems where vouchers are redeemed. For example, you can integrate the API with the ecommerce site and POS system where customers use their voucher.

          Required Editions

          Available in: Lightning Experience
          Available in: EnterprisePerformance, Unlimited, and Developer Editions with Referral Marketing

          Redeem Voucher Business API

          To learn about the Redeem Voucher API’s resource, request body, and response body, see Redeem Vouchers in the Referral Marketing Developer Guide.

          Redeem Vouchers Issued to Advocates

          To redeem a voucher that’s used by an advocate, run the API with the code of the redeemed voucher and the advocate’s membership number or Loyalty Program Member ID.

          Redeem Vouchers Issued to Referred Friends

          To redeem a voucher that’s used by a referred friend, run the API with the code of the redeemed voucher and the referred friend’s Contact ID.

          Tip
          Tip If advocates and their referred friends are issued a fixed value voucher that’s partially redeemable, specify the amount that was redeemed. The amount remaining in the voucher is automatically calculated and can be used in a subsequent purchase. After the voucher is partially redeemed, the status of the voucher remains as Issued. If the redemption amount isn’t specified for a partially redeemable voucher, the complete voucher amount is redeemed and the voucher status is changed to Redeemed. If multiple currencies are enabled in the org, specify the currency that the amount is redeemed in.

          What Happens After Vouchers are Redeemed

          Redemption Scenario What Happens
          A single use voucher is redeemed The status of the voucher is changed to Redeemed and the use date is updated to the current date.
          A partially redeemable voucher wasn’t redeemed for its full amount The redeemed value of the voucher is updated with the specified redemption amount and the remaining value of the voucher is automatically calculated.
          A partially redeemable voucher was completely redeemed during the second use The status of the voucher is changed to Redeemed and the use date is updated to the current date. The redeemed amount is updated with the value that was redeemed across the two purchases and the remaining value is updated to zero.

          What Happens to Vouchers That Are Past Their Expiration Date

          An automated process expires unredeemed and partially redeemed vouchers that are past their expiration date daily. The automated process can expire up to two million vouchers in a day.

          If your brand requires to expire more than two million vouchers in a day, the admin can design a batch Apex job to expire the vouchers that the automated process didn’t expire.

           
          Loading
          Salesforce Help | Article