Retrieves the total amount of points earned, redeemed, and adjusted for the entire loyalty program.
The balance
is the current total of points outstanding, while the earned
, adjusted
, and redeemed
amounts
are the historically accumulated amounts. The totals include the amounts for all loyalty accounts.
You can only call this method when authenticated as a Wix app or Wix user identity.
Point totals for the entire program.
Tier total for the entire program.
curl -X GET \
'https://www.wixapis.com/loyalty-accounts/v1/accounts/program-totals' \
-H 'Authorization: <AUTH>'
{
"points": {
"balance": 165,
"earned": 136,
"redeemed": 0,
"adjusted": 29,
"expired": 0
},
"tierTotals": [
{
"numberOfAccounts": 5
},
{
"id": "acddc0e0-5e27-4a1b-a52d-b3785ac258cb",
"numberOfAccounts": 3
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.