Updates the loyalty program.
You cannot activate the loyalty program using this endpoint. To do so, use the Activate Loyalty Program endpoint.
You can only call this method when authenticated as a Wix app or Wix user identity.
Loyalty program fields to update.
Updated loyalty program.
curl -X PATCH \
'https://www.wixapis.com/loyalty-programs/v1/program' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
--data-raw '{
"loyaltyProgram": {
"name": "Northern Star Loyalty Program",
"points": {
"customName": "Northern Star"
}
}
}'
{
"loyaltyProgram": {
"name": "Northern Star Loyalty Program",
"pointDefinition": {
"customName": "Northern Star",
"icon": {
"id": "",
"url": "shapes/39dce0a5d1ce498f95526b1390eaf585.svg",
"height": 0,
"width": 0
}
},
"status": "ACTIVE",
"pointsExpiration": {
"status": "DISABLED",
"monthsOfInactivity": 3,
"expiringPointsPercentage": 100
},
"premiumFeatures": {
"loyaltyProgram": true,
"tiers": true,
"pointsExpiration": true
},
"createdDate": "2022-05-22T08:18:32.186Z",
"updatedDate": "2022-06-07T08:40:47.426Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.