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

StoreAgent
Customers recipe

Remove Memberships Granted by Refunded Orders

Finds members whose access came from an order you refunded, so nobody keeps paid access for free.

WHAT IT DOES asks first Changes your store, only after you say yes
TIME SAVED ~30 min vs doing it by hand
REQUIRES BOTH
StoreAgentFree plugin · MCP on every plan
+
Me
WooCommerce Memberships Installed and active
Connect your store
THE PROMPT
Find orders refunded in the last [number] days and skip guest orders. For each customer on those orders, list their memberships and show any membership whose order ID matches the refunded order, with the plan name, status and start date. Show me the list and wait for my OK. Deleting a membership removes the customer's access and cannot be undone, so only delete the ones I confirm.
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
Find orders refunded in the last [number] days and skip guest orders…
6 refunded orders in the last 30 days, 4 from registered customers. 2 of those customers have an active Gold Club membership linked to the refunded order. Calling:
woocommerce/orders-querydone
woocommerce-memberships/user-memberships-listdone
woocommerce-memberships/plans-getdone
woocommerce-memberships/user-memberships-deletedone
woocommerce/order-add-notedone
CONFIRM BEFORE WRITING
This will make changes in WooCommerce. Do you want me to go ahead?
Yes, applyShow me first
Deleted 2 memberships after your OK: membership 1182 for customer 77 and membership 1190 for customer 103. The other 2 customers had no membership tied to those orders.
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
Finds orders by status, customer, email or date, with the items in each order.
woocommerce/orders-query
Lists the memberships of one customer, with plan, status and dates.
woocommerce-memberships/user-memberships-list
Shows one membership plan with its access method, length and rules.
woocommerce-memberships/plans-get
asks first
Permanently deletes a customer's membership, which removes their access.
woocommerce-memberships/user-memberships-delete
asks first
Adds a private note to an order, or a note the customer gets by email.
woocommerce/order-add-note
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.

+ Include cancelled orders as well as refunded ones.
+ Add a private note to each refunded order to say the membership was removed.
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