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

StoreAgent
Orders & fulfilment recipe

Take Back Points From Cancelled Orders

RewardsWP takes points back on refunds, not on cancellations. This finds cancelled orders that kept their points and reverses them.

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
+
RewardsWP RewardsWP 1.6.0+ (free) · changes need Enable MCP Write Access on
Connect your store
THE PROMPT
Find orders cancelled in the last 90 days. For each one, check whether it still has RewardsWP purchase points that were not taken back. Show me a table with the order, the customer, the points and the date. Do a dry run of taking those points back and show me each member's new balance. Take them back only after I say yes, with the reason Order cancelled.
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 cancelled in the last 90 days…
9 cancelled orders still have their points: 3,140 points across 7 members. The biggest is order #4182 with 860 points. Calling:
woocommerce/orders-querydone
rewardswp/get-order-rewardsdone
rewardswp/revoke-points-entrydone
CONFIRM BEFORE WRITING
This will make changes in WooCommerce. Do you want me to go ahead?
Yes, applyShow me first
Took back 3,140 points. Each member's history shows a reversal with the reason Order cancelled.
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
Shows the points, referral and rewards linked to an order, and why it did or did not earn points.
rewardswp/get-order-rewards
Reverses one points entry with a reason and updates the member's balance.
rewardswp/revoke-points-entry
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 check failed orders.
+ Look back 12 months instead of 90 days.
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