Newer Version Available
Issue Voucher Action
This object 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
- GET, HEAD, POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| LoyaltyProgramMemberId |
|
| ContactId |
|
| ProgramName |
|
| JournalId |
|
| VoucherCode |
|
| PromotionId |
|
| BenefitId |
|
| Reason |
|
| EffectiveDate |
|
| ExpiryDate |
|
Outputs
| Output | Details |
|---|---|
| VoucherId |
|
Example
Sample Request
1{
2 "inputs":[
3 {
4 "LoyaltyProgramMemberId":"0lMxx0000A000001EAA",
5 "ContactId":"0lMxx0000A000001EAA",
6 "ProgramName":"Program 1",
7 "VoucherDefinitionName":"Voucher1",
8 "JournalId":"0lVxx0000A000001EAA",
9 "VoucherCode":"Voucher123",
10 "PromotionId":"0lMxx0000A000001EAA",
11 "BenefitId":"0lMxx0000A000001EAA",
12 "Reason":"Bonus",
13 "EffectiveDate":"12-08-2021",
14 "ExpiryDate":"12-09-2021"
15 }
16 ]
17}Sample Response
1{
2 "errors":null,
3 "isSuccess":true,
4 "outputValues":{
5 "VoucherId":"0lYxx0000A000001EAA"
6 }
7}