Activates a loyalty program.
When a loyalty program is installed it starts in DRAFT
status. Customers cannot earn or redeem points while the program is not ACTIVE
.
You can only call this method when authenticated as a Wix app or Wix user identity.
Activated loyalty program.
curl -X POST \
'https://www.wixapis.com/loyalty-programs/v1/program/activate' \
-H 'Authorization: <AUTH>'
{
"loyaltyProgram": {
"name": "Star Loyalty Program",
"pointDefinition": {
"customName": "Stars",
"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-05-25T10:36:32.430Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.