GET

Get Tiers Program


Returns Tiers and ProgramSettings in a single response.

If TiersProgramSettings doesn't exist, default TiersProgramSettings are created.

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/loyalty-tiers/v1/tiers/program

Request
This endpoint does not take any parameters.
Response Object
tiersArray <Tier>

Tiers.


programSettingsProgramSettings

Tiers program settings.

Get tiers program
Request
cURL
curl -X GET \ 'https://www.wixapis.com/loyalty-tiers/v1/tiers/program \ -H 'Authorization: <AUTH>'
Response
JSON
{ "tiers": [ { "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": 200, "revision": "2", "createdDate": "2024-02-15T14:22:02.539Z", "updatedDate": "2024-04-17T11:34:25.274Z" } ], "programSettings": { "status": "ACTIVE", "revision": "3", "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?