Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name
of the campaign as the path parameter value, e.g., Loyalty%20Campaign
.
"camp_rRsfatlwN7unSeUIJDCYedal"
Unique reward assignment ID.
"rewa_m9hEAu10KsPcLhGXiHG85aY0"
Response
Returns reward details in the context of a loyalty campaign and reward assignment ID.
Response body schema for GET v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward
Unique reward ID, assigned by Voucherify.
"rew_nIy4gHpQHle2c3pNMwuj7G6j"
Reward name.
Configurable for material rewards. The number of units of the product that you want to share as reward.
Defines the number of already invoked (successful) reward redemptions.
The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format.
Reward type.
CAMPAIGN
, COIN
, MATERIAL
Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format.
"2022-08-11T14:49:22.586Z"
Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format.
"2022-08-11T16:01:34.885Z"
The type of the object represented by the JSON. This object stores information about the reward.
reward
These properties are configurable for material rewards.
Defines how the reward is generated.
- Digital
- Pay with Points
- Material