Updates a loyalty tier.
Use this endpoint to update tier-specific settings, such as the name and the required points threshold of an individual loyalty tier. To update global settings that apply to all of a site's loyalty tiers, use Update Tiers Program Settings.
You can only call this method when authenticated as a Wix app or Wix user identity.
Tier ID.
Tier details to update.
Updated loyalty tier.
curl -X PATCH \
'https://www.wixapis.com/loyalty-tiers/v1/tiers/acddc0e0-5e27-4a1b-a52d-b3785ac258cb' \
-H 'Authorization: <AUTH>'
-H 'Content-Type: application/json' \
--data-raw '{
"tier": {
"tierDefinition": {
"name": "Gold",
"description": "Earn 2x points and get special discount",
"icon": {
"url": "shapes/39dce0a5d1ce498f95526b1390eaf585.svg"
}
},
"requiredPoints": 400
}
}'
{
"id": "acddc0e0-5e27-4a1b-a52d-b3785ac258cb",
"tierDefinition": {
"icon": {
"id": "",
"url": "shapes/39dce0a5d1ce498f95526b1390eaf585.svg",
"height": 0,
"width": 0
},
"name": "Gold",
"description": "Earn 2x points and get special discount"
},
"requiredPoints": 400,
"revision": "2",
"createdDate": "2024-02-15T14:22:02.539Z",
"updatedDate": "2024-04-17T11:34:25.274Z"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.