Update Reward Assignment
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId}/assignments/{assignmentId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"loyalty": {
"points": 35
}
}
}
'{
"id": "rewa_pJYQBXSitK2OVPK3XMXZK76X",
"reward_id": "rew_C7wS9eHFDN4CIbXI5PpLSkGY",
"related_object_id": "camp_jcErmtGAOmHUAy0oUgkwKnPZ",
"related_object_type": "campaign",
"parameters": {
"loyalty": {
"points": 35
}
},
"created_at": "2022-08-24T11:40:22.418Z",
"updated_at": "2022-08-24T13:02:32.262Z",
"object": "reward_assignment"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find reward_assignment with id rewa_pJYQBXSitK2OVPK3XMXZK76XI",
"request_id": "v-0b95b8760a4ad5dda1",
"resource_id": "rewa_pJYQBXSitK2OVPK3XMXZK76XI",
"resource_type": "reward_assignment"
}Update Reward Assignment
Update the number of points needed to successfully redeem the reward.
PUT
/
v1
/
rewards
/
{rewardId}
/
assignments
/
{assignmentId}
Update Reward Assignment
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/rewards/{rewardId}/assignments/{assignmentId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"loyalty": {
"points": 35
}
}
}
'{
"id": "rewa_pJYQBXSitK2OVPK3XMXZK76X",
"reward_id": "rew_C7wS9eHFDN4CIbXI5PpLSkGY",
"related_object_id": "camp_jcErmtGAOmHUAy0oUgkwKnPZ",
"related_object_type": "campaign",
"parameters": {
"loyalty": {
"points": 35
}
},
"created_at": "2022-08-24T11:40:22.418Z",
"updated_at": "2022-08-24T13:02:32.262Z",
"object": "reward_assignment"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find reward_assignment with id rewa_pJYQBXSitK2OVPK3XMXZK76XI",
"request_id": "v-0b95b8760a4ad5dda1",
"resource_id": "rewa_pJYQBXSitK2OVPK3XMXZK76XI",
"resource_type": "reward_assignment"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Define the number of points required to exchange for the reward.
Response
Returns the updated reward assignment object.
Response body schema for PUT v1/rewards/{rewardId}/assignments/{assignmentId}.
Related object type to which the reward was assigned. Use campaign for legacy loyalty campaign rewards. Use referral_tier for LOYALTY_POINTS rewards that credit a v2/loyalties (loyalty hub) card from a referral tier. A LOYALTY_POINTS reward can only be assigned to a referral tier.
Available options:
campaign, referral_tier 
