PUT

Update Reward


Updates a loyalty reward.

Use this endpoint to update details of a reward, such as the name, whether or not a reward is active, or the amount of points it costs to redeem. Also use this endpoint to add new tiers that are eligible to redeem a reward.

You may not change the type of a reward. That is set upon creation and cannot be updated.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Loyalty
Learn more about app permissions.
Endpoint
PUT
https://www.wixapis.com/loyalty-rewards/v1/rewards/{reward.id}

Path Params
reward.idstringRequired

Reward ID.

Body Params
rewardRewardRequired

Reward information to update.

Response Object
rewardReward

Updated reward.

Update reward
Request
cURL
curl -X PUT \ 'https://www.wixapis.com/loyalty-rewards/v1/rewards/46d7bbce-6bb4-4174-ae5a-7f44c19f95ce' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ --data-raw '{ "reward": { "active": true, "name": "Free shipping", "type": "COUPON_REWARD", "revision": "1", "couponReward": { "freeShipping": { "configsByTier": [ { "tierId": null, "costInPoints": 20 }, { "tierId": "acddc0e0-5e27-4a1b-a52d-b3785ac258cb", "costInPoints": 15 } ] } } } }'
Response
JSON
{ "reward": { "id": "46d7bbce-6bb4-4174-ae5a-7f44c19f95ce", "name": "Free shipping", "requiredPoints": 20, "active": true, "type": "COUPON_REWARD", "couponReward": { "freeShipping": { "configsByTier": [ { "costInPoints": 20 }, { "tierId": "acddc0e0-5e27-4a1b-a52d-b3785ac258cb", "costInPoints": 15 } ] } }, "revision": "2", "createdDate": "2024-04-18T10:35:41.071Z", "updatedDate": "2024-04-18T10:35:41.071Z" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?