Create tiers program settings.
Tiers program settings apply globally to all tiers in the program.
You can only call this method when authenticated as a Wix app or Wix user identity.
Tiers program settings.
Created tiers program settings.
curl -X POST \
'https://www.wixapis.com/loyalty-tiers/v1/tiers/program-settings' \
-H 'Authorization: <AUTH>'
-H 'Content-Type: application/json' \
--data-raw '{
"programSettings": {
"status": "ACTIVE",
"baseTierDefinition": {
"name": "Basic",
"description": "Basic tier",
"icon": {
"url": "shapes/11062b_0a8e17936d5b4d46971649be036c781b.svg"
}
},
"rollingWindow": {
"durationInMonths": 12
}
}
}'
{
"programSettings": {
"status": "ACTIVE",
"revision": "1",
"createdDate": "2024-02-09T09:06:21.823Z",
"updatedDate": "2024-04-17T14:23:22.985Z",
"baseTierDefinition": {
"icon": {
"id": "",
"url": "shapes/11062b_0a8e17936d5b4d46971649be036c781b.svg",
"height": 0,
"width": 0
},
"name": "Basic",
"description": "Basic tier"
},
"rollingWindow": {
"durationInMonths": 12
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.