Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
redeem(programName, membershipNumber, voucherCode)
Redeem a voucher for a program member. The status of the voucher
gets updated to redeemed and the use date gets updated to the current date.
API Version
51.0
Requires Chatter
Yes
Signature
public static ConnectApi.RedeemVoucherOutput redeem(String programName, String membershipNumber, String voucherCode)
Parameters
- programName
- Type: String
- The loyalty program name.
- membershipNumber
- Type: String
- The loyalty program membership number.
- voucherCode
- Type: String
- The voucher code to redeem.
Status Code
Returns HTTP 201 on success.