Newer Version Available

This content describes an older version of this product. View Latest

Issue Voucher Action

Issue a voucher for a member or contact.

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
Type
ID
Description
ID of the loyalty program member to issue the voucher.
ContactId
Type
ID
Description
The contact associated with the member.
ProgramName
Type
string
Description
The name of the loyalty program associated with this voucher.
JournalId
Type
ID
Description
The transaction journal associated with the member voucher when the voucher results from accrual of points.
VoucherCode
Type
string
Description
The voucher identifier generated by an external system.
PromotionId
Type
ID
Description
The promotion associated with the voucher.
BenefitId
Type
ID
Description
The benefit associated with the voucher.
Reason
Type
string
Description
The reason why the voucher is issued.
EffectiveDate
Type
Date
Description
The date the voucher goes into effect.
ExpiryDate
Type
Date
Description
The date the voucher expires.

Outputs

Output Details
VoucherId
Type
ID
Description
The ID of the voucher that’s generated after the request is successful.

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}