curl --request PUT \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/rewards/{assignmentId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"loyalty": {
"points": 3
}
}
}
'{
"id": "rewa_Iw9VopmlLm0topBG17ZH1gp5",
"reward_id": "rew_wg2pvCr5LDhCq4uVQZ9LhuZm",
"related_object_id": "camp_fkZ28pe7DUAEmmabofkxHI8N",
"related_object_type": "campaign",
"parameters": {
"loyalty": {
"points": 3
}
},
"created_at": "2022-11-28T18:54:19.747Z",
"updated_at": "2022-11-28T19:27:40.604Z",
"object": "reward_assignment"
}Update Campaign Reward Assignment
This endpoint belongs to the legacy loyalty API (/v1/loyalties).
Voucherify will not develop new features for this API. However, critical issues may still receive fixes.
For new integrations, use Loyalty v2.
If you have questions, contact Voucherify support.
Updates rewards parameters, i.e. the points cost for the specific reward.
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/rewards/{assignmentId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"loyalty": {
"points": 3
}
}
}
'{
"id": "rewa_Iw9VopmlLm0topBG17ZH1gp5",
"reward_id": "rew_wg2pvCr5LDhCq4uVQZ9LhuZm",
"related_object_id": "camp_fkZ28pe7DUAEmmabofkxHI8N",
"related_object_type": "campaign",
"parameters": {
"loyalty": {
"points": 3
}
},
"created_at": "2022-11-28T18:54:19.747Z",
"updated_at": "2022-11-28T19:27:40.604Z",
"object": "reward_assignment"
}Authorizations
Scopes
Path Parameters
Body
Update the points cost for the reward assignment.
Response
Returns a reward assignment with an updated points value.
Response body schema for PUT v1/v1/loyalties/{campaignId}/rewards/{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.
campaign, referral_tier 
