PATCH

Update Tier


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.

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
PATCH
https://www.wixapis.com/loyalty-tiers/v1/tiers/{tier.id}

Path Params
tier.idstringRequired

Tier ID.

Body Params
tierTierRequired

Tier details to update.

Response Object
tierTier

Updated loyalty tier.

Update tier
Request
cURL
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 } }'
Response
JSON
{ "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" }
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?