Issue a Voucher

Issue a new voucher to a loyalty member.

Example URL 

1https://yourInstance.salesforce.com/services/data/v68.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:

1{
2   "processParameters":[
3      {
4         "MemberId":"0lMxx00000000BJEAY",
5         "VoucherCode":"15OFF",
6         "VoucherFaceValue":15,
7         "VoucherExpirationDate":"2022-07-13"
8      }
9   ]
10}

Here’s an example with a membership number:

1{
2   "processParameters":[
3      {
4         "MembershipNumber":"003",
5         "VoucherCode":"15OFF",
6         "VoucherDiscountPercentage":20
7      }
8   ]
9}

Sample JSON Response 

1{
2   "message":null,
3   "outputParameters":{
4      "outputParameters":{
5         "results":[
6            {
7               
8            }
9         ]
10      }
11   },
12   "simulationDetails":{
13      
14   },
15   "status":true
16}

See Also