# Review Pending Customer Referrals

> Lists old pending referrals, flags odd patterns and completes or cancels the ones you choose. Needs RewardsWP Basic or higher.

- Job: [Affiliates & loyalty](https://storeagent.ai/mcp-recipes/job/affiliates/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~30 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + RewardsWP
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/rewardswp-review-pending-referrals/

## The prompt

```text
List every pending RewardsWP referral older than [30] days, with the advocate, the date and whether the friend has placed an order. Flag any advocate with many pending referrals in a short time. Wait for me to say which to complete and which to cancel. Do a dry run first and tell me what happens to the advocate reward and the friend's coupon. Then make only the changes I name.
```

## What happens when you paste it

You: List every pending RewardsWP referral older than [30] days, with the advocate, the date and whether the friend has placed an order…

Assistant: 14 pending referrals are older than 30 days and none has an order. 6 come from one advocate in 2 days. Calling: `rewardswp/list-referrals`, `rewardswp/set-referral-status`, `rewardswp/update-reward`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: Cancelled the 14 referrals. 14 friend coupons were still open, so I cancelled those too, as you asked.

## Abilities this recipe calls

- **List referrals** (`rewardswp/list-referrals`, read only, from RewardsWP): Lists referrals with advocate, status, order and dates. Filters by member, status or date.
- **Complete or cancel a referral** (`rewardswp/set-referral-status`, asks first, from RewardsWP): Marks a referral completed or canceled. A dry run shows what happens to the rewards.
- **Cancel or extend a reward** (`rewardswp/update-reward`, asks first, from RewardsWP): Cancels an unused reward and its coupon, or gives it a later expiry date.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Only show referrals from the last 7 days.
- Leave the friend coupons open.

## Related recipes

- [Loyalty Program Health Check](https://storeagent.ai/mcp-recipes/loyalty-health-check.md): Tells you if your points program is working: how many points are redeemed, what it costs you and where points come from. Needs Advanced Loyalty Program.
- [Save Loyalty Points Before They Expire](https://storeagent.ai/mcp-recipes/save-expiring-points.md): Finds customers about to lose their points and gives them a small bonus that keeps their account active. Needs Advanced Loyalty Program.
- [Reward Your Top Loyalty Members](https://storeagent.ai/mcp-recipes/reward-top-loyalty-members.md): Ranks your most loyal customers by points earned and gives them a bonus as a thank you. Needs Advanced Loyalty Program.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
