Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
A unique reward ID.
"rew_2erjvECLs92GYzKbak3QkyTV"
Body
Define the parameters to be updated for the reward.
- Digital Reward
- Material Reward
- Pay with Points Reward
Request body schema for PUT v1/rewards/{rewardId}
.
Request body schema for updating a digital reward using PUT v1/rewards/{rewardId}
.
Reward name.
Configure a digital (CAMPAIGN) reward. These can be in the form of discount coupons, gift card credits, or loyalty point credits.
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.
Response
Returns an updated reward object.
Response body schema for PUT v1/rewards/{rewardId}
.
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