Issue a Voucher

Issue a new voucher to a loyalty member.

Example URL

https://yourInstance.salesforce.com/services/data/v64.0/connect/loyalty/programs/DemoProgram/program-processes/Issue Voucher

The request and response parameters vary depending on the input and output parameters configured for the IssueVoucher process type in a Salesforce org.

Sample JSON Request

Some of the API request fields contain field names that are interchangeable. For information on the list of interchangeable field names, see Loyalty Management Connect API Interchangeable Request Fields.

Note

Here's an example with a member ID:

{
   "processParameters":[
      {
         "MemberId":"0lMxx00000000BJEAY",
         "VoucherCode":"15OFF",
         "VoucherFaceValue":15,
         "VoucherExpirationDate":"2022-07-13"
      }
   ]
}

Here's an example with a membership number:

{
   "processParameters":[
      {
         "MembershipNumber":"003",
         "VoucherCode":"15OFF",
         "VoucherDiscountPercentage":20
      }
   ]
}

Sample JSON Response

{
   "message":null,
   "outputParameters":{
      "outputParameters":{
         "results":[
            {
               
            }
         ]
      }
   },
   "simulationDetails":{
      
   },
   "status":true
}