The future of incentives is agent ready. See what we're building.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "rew_nIy4gHpQHle2c3pNMwuj7G6j",
"name": "<string>",
"stock": 123,
"redeemed": 123,
"metadata": {},
"type": "CAMPAIGN",
"created_at": "2022-08-11T14:49:22.586Z",
"updated_at": "2022-08-11T16:01:34.885Z",
"object": "reward",
"attributes": {
"image_url": "<string>",
"description": "<string>"
},
"parameters": {
"campaign": {
"id": "<string>",
"type": "DISCOUNT_COUPONS",
"balance": 123
}
}
}Retrieve a reward by the reward ID.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "rew_nIy4gHpQHle2c3pNMwuj7G6j",
"name": "<string>",
"stock": 123,
"redeemed": 123,
"metadata": {},
"type": "CAMPAIGN",
"created_at": "2022-08-11T14:49:22.586Z",
"updated_at": "2022-08-11T16:01:34.885Z",
"object": "reward",
"attributes": {
"image_url": "<string>",
"description": "<string>"
},
"parameters": {
"campaign": {
"id": "<string>",
"type": "DISCOUNT_COUPONS",
"balance": 123
}
}
}A unique reward ID.
"rew_2erjvECLs92GYzKbak3QkyTV"
Returns a reward object if a valid identifier was provided.
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 a reward. Use this parameter to code a stock-taking logic.
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.
Show child attributes
Defines how the reward is generated.
Show child attributes
Was this page helpful?