POST

Create Tiers Program Settings


Create tiers program settings.

Tiers program settings apply globally to all tiers in the program.

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
POST
https://www.wixapis.com/loyalty-tiers/v1/tiers/program-settings

Body Params
programSettingsProgramSettingsRequired

Tiers program settings.

Response Object
programSettingsProgramSettings

Created tiers program settings.

Create tiers program settings
Request
cURL
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 } } }'
Response
JSON
{ "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 } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?