# Let customers cancel or change an order in chat

> Shoppers fix a shipping address or cancel and refund an unshipped WooCommerce order in chat, after they confirm on a card. Shopify support is in development.

> Status: early access.

Shoppers can fix a delivery address or cancel and refund an order that has not shipped, without waiting for you. The agent shows a card that says exactly what will happen, nothing changes until the shopper taps **Yes**, and the order is read again at that moment, so an order that shipped in the meantime is left alone.

This works today for WooCommerce stores on Growth and above. Shopify support is in development, and the Shopify parts of this page show how it works.

## Before you start

- Your store is connected: [Shopify](/stores/shopify/) or [WooCommerce](/stores/woocommerce/).
- You switch each action on yourself. They stay off until you do.
- For Shopify, the connection needs permission to write orders. Switching an action on shows **Reconnect Shopify**; reconnect once and approve it. Until then the agent says it cannot change the order and offers your team.
- For WooCommerce, these actions need a connection with read and write access. If your store's connection is read-only, switch the action on, then choose **Reconnect WooCommerce** in its settings and approve read and write access. Until then the agent says it cannot change the order and offers your team.

## The four actions

| Action | What it does |
| --- | --- |
| **Fix Shipping Address (Shopify)** | Changes the delivery address while Shopify still shows the order as unfulfilled. |
| **Cancel & Refund Order (Shopify)** | Cancels the order, asks Shopify to refund the full amount to the original payment method, restocks the items and sends Shopify's cancellation email. |
| **Fix Shipping Address (WooCommerce)** | Changes the delivery address before the order ships. |
| **Cancel & Refund Order (WooCommerce)** | Refunds the full amount to the original payment method and restocks every item. WooCommerce marks the order Refunded once the full amount is refunded. An unpaid order is cancelled instead. |

Address changes are for the same country only. A different country changes tax and shipping, so the agent offers to pass that to your team.

On WooCommerce, a cash-on-delivery order or any unpaid order is cancelled with nothing to refund, except bank transfer and cheque, which go to your team. So an unpaid order on another offline payment method is cancelled, and the shopper is told nothing was charged. Check this if you accept one. On Shopify, an unpaid order is cancelled with nothing to refund, except the bank and money order methods listed below, and a payment that is only authorized is released.

## Steps

1. **Switch the action on.** Open **Automation** › **Skills** (new dashboard: **Behaviour** › **Actions**) and switch on the action you want. The new dashboard calls them Fix a delivery address and Cancel and refund an order.

2. **Set the window if you need to.** Actions work for 60 minutes after checkout by default. To change that, open the skill's settings, open **Advanced settings (JSON)** and set `window_minutes`, for example `{"window_minutes": 30}`, up to 10080 (7 days). Keep it short if your warehouse works fast, because a store cannot always see that a packing tool has picked the order.

3. **The shopper asks in chat.** The agent first checks the order is theirs, with the order number plus the checkout email or, for an order placed without one, the phone number on the order. On WooCommerce, a chat opened from the shopper's own order page, with [plugin 1.1.0 or later](/stores/woocommerce/), proves this by itself, so no email or phone is asked for.

   **Rolling out:** an order number plus an email or phone number will no longer be enough to change or cancel an order, because both are printed on receipts and shipping labels. The shopper will need to be signed in to the chat through your site's identity verification, as the same shopper who placed the order (by checkout email or store customer ID). When your site signs shoppers in by customer ID, the chat may still ask for the checkout email as well. A shopper who is not signed in is offered your team or pointed to their account page. Checking an order's status is unchanged.

4. **The shopper confirms on a card.** The card states the change, for example the refund amount and where it goes. The agent re-reads the order at that moment, so an order that shipped in the meantime is left alone.

5. **The agent reports the result.** It tells the shopper what your store answered. See [what the agent reports](#what-the-agent-reports).

## What the agent reports

On WooCommerce, it depends on what your store answered. An alert is an in-app notification to the workspace owner.

| What happened | What the agent tells the shopper | What you get |
| --- | --- | --- |
| The change went through | It is done | A note on the order. An address change or an unpaid cancellation also adds a customer note that names the change and asks the shopper to reply if they did not ask for it |
| An address change or unpaid cancellation did not take | It could not be done right now, and it offers to pass the request to your team | No alert |
| Your store answered the refund request with an error, such as the payment gateway refusing it | The refund could not be sent automatically, the order is unchanged and your team will finish it | An alert and a note on the order saying the gateway refused it. A server error from your store is reported the same way, even if the refund went through, so check for a refund before you send one |
| The refund got no clear answer from your store | The cancellation is with your team to confirm, and your team will email them. It does not say the order is refunded | An alert and a note on the order. Check for a refund before shipping. If the shopper asks again while the order shows no refund, the agent can offer the cancellation again, and a yes sends another refund request |
| The refund went through but the order still shows as open | It is cancelled and refunded | An alert and a note on the order: do not ship it, and cancel it yourself |

On Shopify, the agent reports a cancellation only once Shopify shows the order as cancelled. If Shopify refuses it, the order stays as it was. If Shopify accepts it but the order has not changed yet, the agent says it was submitted and the store emails the shopper. If there is no clear answer, it says your team will confirm. You get an alert in all three cases. After Shopify accepts a cancellation or gives no clear answer, a second one for the same order within an hour is not sent: if the shopper asks again, the agent says it is being processed.

An address Shopify refuses raises no alert: the agent asks the shopper to check it, or offers your team. A change Shopify accepts but the order does not show, or an order that cannot be read back afterwards, raises an alert, and the agent says your team will confirm before the order ships. Any other failure raises no alert, and the agent offers your team.

## When the agent offers your team instead

The agent changes nothing and offers to pass the request to your team, with the chat attached, when:

- the order has started shipping, or is past the window;
- your store set the order up rather than a shopper at checkout: on WooCommerce an order made in the admin, a subscription renewal or an import, and on Shopify a draft order or a point-of-sale order.

For a cancellation, it also does this when:

- the order already has a refund;
- on WooCommerce, the order uses bank transfer or cheque, paid or not, or its amounts need a person to check;
- on Shopify, the order uses bank deposit, bank transfer or money order, paid or not, is paid on a manual or cash-on-delivery method, or is only partly paid.

Those checks don't stop an address change.

## What it will not do

Creating orders, exchanges and partial refunds are not built. Neither is changing a billing address.

## Related

- [AI customer support for online stores](/stores/)
- [Order status in chat](/actions/order-status/)
- [Hand a chat to a person](/actions/hand-off-to-a-person/)

Source: https://docs.askvault.co/stores/order-changes/
