Issue Voucher Action
This action is available in API version 51.0 and later for users with Loyalty Management license.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/issueVoucher
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| AdditionalNotes |
|
| AccountId |
|
| BenefitId |
|
| ContactId |
|
| DiscountPercent |
|
| FaceValue |
|
| EffectiveDate |
|
| ExpiryDate |
|
| JournalId |
|
| LoyaltyProgramMemberId |
|
| PromotionId |
|
| ProgramName |
|
| VoucherCode |
|
| VoucherDefinitionName |
|
Outputs
| Output | Details |
|---|---|
| VoucherId |
|
Example
Sample Request
Sample request to issue vouchers to a Person Account.
1{
2 "inputs":[{
3 "LoyaltyProgramMemberId":"0lMxx0000A000001EAA",
4 "ContactId":"0lMxx0000A000001EAA",
5 "ProgramName":"Program 1",
6 "VoucherDefinitionName":"Voucher1",
7 "JournalId":"0lVxx0000A000001EAA",
8 "VoucherCode":"Voucher123",
9 "PromotionId":"0lMxx0000A000001EAA",
10 "BenefitId":"0lMxx0000A000001EAA",
11 "Reason":"Bonus",
12 "EffectiveDate":"12-08-2021",
13 "ExpiryDate":"12-09-2021"
14 “DiscountPercent”:”20”
15 }]
16}Sample request to issue vouchers to a Business Account.
1{
2 "inputs":[
3 {
4 "LoyaltyProgramMemberId":"0lMxx00000002HxEAI",
5 "AccountId":"001xx000003H3NnAAK",
6 "VoucherDefinitionName":"Voucher1",
7 "VoucherCode":"Voucher123",
8 "ProgramName": "Sip & Save Rewards"
9 }
10 ]
11}Sample Response
Sample request for the Issue Voucher action.
1{
2 "errors":null,
3 "isSuccess":true,
4 "outputValues":{
5 "VoucherId":"0lYxx0000A000001EAA"
6 }
7}