New: connect Claude, ChatGPT or Cursor to your WooCommerce store. See how →

StoreAgent
Affiliates & loyalty recipe

Check for Affiliate Self-Referrals and Fraud

Looks for affiliates earning on their own orders, refund-heavy referrals and odd traffic before you pay them.

WHAT IT DOES asks first Changes your store, only after you say yes
TIME SAVED ~1 hr vs doing it by hand
REQUIRES BOTH
StoreAgentFree plugin · MCP on every plan
+
AffiliateWP AffiliateWP 2.37.0+ · changes need Enable MCP Write Access on
Connect your store
THE PROMPT
Check my affiliate referrals from the last 60 days for signs of fraud. Flag referrals where the customer is the affiliate's own user account, affiliates whose referred orders are often refunded, visits from one referrer that come in large numbers and never convert, and referrals much bigger than that affiliate's usual. Show me each case with the evidence. Do not change anything until I say so. Then reject the referrals I pick and add a note to the affiliate.
PASTE INTO ClaudeChatGPTCursor+ any MCP client
WHAT HAPPENS NEXT

What Happens When You Paste It

Your assistant picks the right abilities, pulls live data from your store and does the work. Here’s roughly how the conversation goes.

1
It reads first. Read abilities run straight away, so it’s working from your real catalog, not guessing.
2
It checks with you. Anything that writes to your store stops and asks before it goes ahead.
3
It’s all logged. Every ability call shows up in wp-admin, so you can see exactly what changed.
Claude · connected to your store
yourstore.com · via StoreAgent MCP
Live
Check my affiliate referrals from the last 60 days for signs of fraud…
4 referrals were for the affiliate's own account. One affiliate has 6 of 9 referred orders refunded. One referrer sent 2,300 visits with no sales. Calling:
affiliatewp/list-referralsdone
affiliatewp/list-affiliatesdone
affiliatewp/list-visitsdone
woocommerce/orders-querydone
affiliatewp/set-referral-statusdone
affiliatewp/update-affiliatedone
CONFIRM BEFORE WRITING
This will make changes in WooCommerce. Do you want me to go ahead?
Yes, applyShow me first
Rejected the 4 self-referrals and the 6 refunded ones, $418 in total. Added a note to the 2 affiliates involved. Nothing else changed.
UNDER THE HOOD

Abilities This Recipe Calls

Make sure these are switched on in your StoreAgent MCP settings. You can turn any of them off at any time.

read only
Lists commissions with amount, status, affiliate, customer and campaign. Filters by affiliate, status or date.
affiliatewp/list-referrals
read only
Lists affiliates with status, rate, group, earnings and referral counts. Filters by status, name, email or date.
affiliatewp/list-affiliates
read only
Lists affiliate link visits with landing URL, referrer, campaign and whether they converted. No IP addresses.
affiliatewp/list-visits
read only
Finds orders by status, customer, email or date, with the items in each order.
woocommerce/orders-query
Marks a referral paid, unpaid, pending or rejected. Marking paid sends no money.
affiliatewp/set-referral-status
asks first
Edits an affiliate's name, rate, rate type, payment email, admin notes or group.
affiliatewp/update-affiliate
MAKE IT YOURS

Tweak It for Your Store

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

+ Also pause any affiliate with more than [number] flagged referrals.
+ Only check affiliates who are owed more than [amount].
StoreAgent

PO BOX 4362
Gumdale QLD 4154
Australia

Our Brands

© 2026 Rymera Web Co Pty Ltd. All Rights Reserved. ABN 51 604 474 213. Privacy Policy · Terms of Service · Data Processing Addendum · Affiliate Disclosure