White Label Loyalty MCP by usefulapi

v1.6.0
io.usefulapi/white-label-loyalty Checked 1 day ago Published 1 hour ago

Read 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.

ParameterTypeDescription
filterstringO-Rison encoded filter, for example price:(gt:10) or purchasable:(eq:!t) for purchasable rewards only.
limitintegerMaximum number of rewards to return.
orderstringSort order.
skipintegerNumber of rewards to skip (paging).
sortstringField to sort by, for example name or price.
userTokenstringOptional 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}.

ParameterTypeDescription
reward_id *stringThe UUID of the item.
userTokenstringOptional 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.

ParameterTypeDescription
userToken *stringThe end-user JWT your app issued to this customer (RS256 or HS256). Not the API key.
includeAllUnvalidatedVouchersbooleanAlso 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.

ParameterTypeDescription
userToken *stringThe 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.

ParameterTypeDescription
reward_id *stringThe UUID of the item.
userToken *stringThe end-user JWT your app issued to this customer (RS256 or HS256). Not the API key.