White Label Loyalty MCP by usefulapi
v1.6.0Read rewards and customer wallets, and buy rewards for a customer in White Label Loyalty.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whitelabelloyalty_list_rewards List rewards
List the rewards in the loyalty programme: name, price in points, tier, availability and whether each can be purchased. Pass userToken to see the rewards that customer may view. Use the filter purchasable:(eq:!t) to hide rewards that cannot be bought. White Label Loyalty API: GET /rewards.
| Parameter | Type | Description |
|---|---|---|
filter | string | O-Rison encoded filter, for example price:(gt:10) or purchasable:(eq:!t) for purchasable rewards only. |
limit | integer | Maximum number of rewards to return. |
order | string | Sort order. |
skip | integer | Number of rewards to skip (paging). |
sort | string | Field to sort by, for example name or price. |
userToken | string | Optional end-user JWT. With it, the reply shows what this customer may view, which can differ from the anonymous view. |
whitelabelloyalty_get_reward Get reward
Get one reward by id: description, points cost, stock, availability window, tier and discounts. White Label Loyalty API: GET /rewards/{id}.
| Parameter | Type | Description |
|---|---|---|
reward_id * | string | The UUID of the item. |
userToken | string | Optional end-user JWT. With it, the reply shows what this customer may view, which can differ from the anonymous view. |
whitelabelloyalty_get_my_wallet Get customer wallet
Get the loyalty wallet of the customer behind userToken: points balance, tier and progress to the next tier, and vouchers. White Label Loyalty API: GET /users/me/wallet.
| Parameter | Type | Description |
|---|---|---|
userToken * | string | The end-user JWT your app issued to this customer (RS256 or HS256). Not the API key. |
includeAllUnvalidatedVouchers | boolean | Also return vouchers that are not validated yet, not only the unredeemed ones. |
whitelabelloyalty_get_my_wallet_predictions Get customer wallet predictions
Get points liability predictions for the customer behind userToken: spend and earn caps and points expiry. White Label Loyalty API: GET /users/me/wallet/predictions.
| Parameter | Type | Description |
|---|---|---|
userToken * | string | The end-user JWT your app issued to this customer (RS256 or HS256). Not the API key. |
whitelabelloyalty_purchase_reward Purchase reward
Purchase a reward for the customer behind userToken. If the reward has a points cost, that many points are deducted from the wallet. Not idempotent: a repeat call buys again. Only call it when the customer asked for this reward. White Label Loyalty API: POST /commands/purchase_reward.
| Parameter | Type | Description |
|---|---|---|
reward_id * | string | The UUID of the item. |
userToken * | string | The end-user JWT your app issued to this customer (RS256 or HS256). Not the API key. |