Create a voucher
Create a voucher and attribute it to a specific membership.
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program ID
Request
This endpoint expects an object.
rewardId
Reward id
code
Code generated to attribute reward to a contact
contactId
Contact to attribute the reward
expirationDate
Reward expiration date
loyaltySubscriptionId
One of contactId or loyaltySubscriptionId is required
meta
Offer meta information (key/value object)
value
Value of the selected reward config
Response
Voucher successfully created
code
Generated code
consumedAt
Timestamp for when this reward was consumed
contactId
Id of the contact that attributed the reward
createdAt
Timestamp for when this reward was created
expirationDate
Expiration date of the reward
id
Unique identifier
loyaltyProgramId
Loyalty Program Id to which attributed reward belongs
meta
Additional data to define the reward
rewardId
Unique identifier for the reward
updatedAt
Timestamp for when this reward was updated
value
Value of the selected reward config