# Sort Out a Customer's Missing Points

> Checks a customer's order and points history to see if points really are missing, then fixes it with a note.

- 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: ~15 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Advanced Coupons
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/missing-loyalty-points/

## The prompt

```text
A customer says they did not get points for order [order number]. Look up the order and show me its status, total and items. Then find the customer, show their current points balance and their points history, and check if there is an entry for that order. Tell me in plain words if points are missing and how many they should have got. If they are missing, show me the adjustment and the note you will add, and wait for my OK before you add the points.
```

## What happens when you paste it

You: A customer says they did not get points for order [order number]…

Assistant: Order 10511 is completed, $84.00, 2 items. Priya Shah has 620 points. Her history shows no entry for order 10511, but her other orders earned 1 point per $1. Calling: `woocommerce/orders-query`, `advanced-coupons/get-loyalty-balance`, `advanced-coupons/get-loyalty-points-ledger`, `advanced-coupons/adjust-loyalty-points`.

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

Assistant: I added 84 points with the note: Missing points for order 10511. Priya now has 704 points, worth $7.04.

## Abilities this recipe calls

- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **Get loyalty points balance** (`advanced-coupons/get-loyalty-balance`, read only, from Advanced Coupons): Shows a customer points balance, what it is worth and when it expires.
- **Get loyalty points history** (`advanced-coupons/get-loyalty-points-ledger`, read only, from Advanced Coupons): Shows one customer points history: earned, redeemed, adjusted and expired.
- **Adjust loyalty points** (`advanced-coupons/adjust-loyalty-points`, asks first, from Advanced Coupons): Adds or removes points for one customer, with a reason.

## Variations

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

- The customer email is [email]. Check their last 5 orders instead of one.
- Remove [number] points instead, with the reason [reason].

## 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.
- [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.
- [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.

---

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/
