curl --request PUT \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Digital - Gift Card Reward",
"metadata": {
"Type": "Gift"
},
"parameters": {
"campaign": {
"id": "camp_hC2GdqYtOmTT45zfhib62cK1",
"balance": 3000
}
}
}
'
{
"id": "rew_wg2pvCr5LDhCq4uVQZ9LhuZm",
"name": "Get a Comic Book",
"type": "MATERIAL",
"parameters": {
"product": {
"id": "prod_0b15f6b9f650c16990",
"sku_id": "sku_0b1621b319d248b79f"
}
},
"stock": "2",
"redeemed": null,
"attributes": {
"image_url": "{{internalVoucherifyURL}}",
"description": "Comic book"
},
"created_at": "2022-08-25T10:00:12.794Z",
"updated_at": "2022-08-25T10:06:30.655Z",
"metadata": {
"Type": "Physical product"
},
"object": "reward"
}{
"code": 400,
"key": "invalid_balance",
"message": "Property 'parameters.campaign.balance' is invalid",
"details": "Property 'parameters.campaign.balance' must be greater than zero for campaign type: GIFT_VOUCHERS",
"request_id": "v-0b96d2b90dce48855f"
}Update Reward
Update the details of a reward.
PUT
/
v1
/
rewards
/
{rewardId}
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Digital - Gift Card Reward",
"metadata": {
"Type": "Gift"
},
"parameters": {
"campaign": {
"id": "camp_hC2GdqYtOmTT45zfhib62cK1",
"balance": 3000
}
}
}
'
{
"id": "rew_wg2pvCr5LDhCq4uVQZ9LhuZm",
"name": "Get a Comic Book",
"type": "MATERIAL",
"parameters": {
"product": {
"id": "prod_0b15f6b9f650c16990",
"sku_id": "sku_0b1621b319d248b79f"
}
},
"stock": "2",
"redeemed": null,
"attributes": {
"image_url": "{{internalVoucherifyURL}}",
"description": "Comic book"
},
"created_at": "2022-08-25T10:00:12.794Z",
"updated_at": "2022-08-25T10:06:30.655Z",
"metadata": {
"Type": "Physical product"
},
"object": "reward"
}{
"code": 400,
"key": "invalid_balance",
"message": "Property 'parameters.campaign.balance' is invalid",
"details": "Property 'parameters.campaign.balance' must be greater than zero for campaign type: GIFT_VOUCHERS",
"request_id": "v-0b96d2b90dce48855f"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Body
application/json
Define the parameters to be updated for the reward.
- Digital Reward
- Material Reward
- Pay with Points Reward
- Loyalty hub points reward
Request body schema for updating a digital reward using PUT v1/rewards/{rewardId}.
Response
Returns an updated reward object.
Response body schema for PUT v1/rewards/{rewardId}.

