# Send a Customer Every Invoice They Asked For

> Pulls a customer's orders for a date range and emails the invoice for each one.

- Job: [Orders & fulfilment](https://storeagent.ai/mcp-recipes/job/orders/)
- 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) + Print Invoices & Packing Lists
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/resend-customer-invoices/

## The prompt

```text
Find all completed orders from the customer with the email [customer email] in the last 90 days. List them with the order number, date and total. Then email the invoice for each order using Print Invoices & Packing Lists, after I confirm the list.
```

## What happens when you paste it

You: Find all completed orders from the customer with the email [customer email] in the last 90 days…

Assistant: Found 7 completed orders from accounts@example.com since July. Calling: `woocommerce/orders-query`, `woocommerce-pip/documents-send-email`.

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

Assistant: Sent 7 invoice emails. The list is above if their accounts team asks again.

## 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.
- **Email invoice or packing list** (`woocommerce-pip/documents-send-email`, asks first, from Print Invoices & Packing Lists): Emails an invoice, packing list or pick list for an order.

## Variations

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

- Only include orders over $500.
- Use the last financial year instead of 90 days.

## Related recipes

- [Find Orders Stuck in Processing](https://storeagent.ai/mcp-recipes/stuck-orders.md): Catches orders that have quietly sat in Processing for days, before the customer emails you about it.
- [Email Today's Pick List in One Go](https://storeagent.ai/mcp-recipes/daily-pick-list.md): Gathers every order waiting to ship today and sends one combined pick list.
- [Turn Order Problems From Chats Into Order Notes](https://storeagent.ai/mcp-recipes/chat-order-issues-to-notes.md): Finds shoppers who told the chat assistant about a problem with an order, and logs it on that order so your team sees it.

---

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/
