> For the complete documentation index, see [llms.txt](https://docs.mercuri.cx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mercuri.cx/features/flows/e-commerce-order-triggers/order-canceled-trigger.md).

# Order Canceled Trigger

**Trigger:** Activated when an order is cancelled by the customer or the store.

This trigger is commonly used for **informing customers about order cancellations, sharing refund information, and maintaining transparent communication**.

### Example Workflow: Refund Status Notification

This workflow informs customers about the **refund process when a prepaid order is cancelled**.

{% hint style="info" %}
**Workflow Overview**

***The workflow follows these steps:***

Order Canceled\
→ Check Condition (Payment Status = Paid)\
→ Send WhatsApp Refund Notification

This ensures that **refund messages are sent only for prepaid orders**.
{% endhint %}

***

#### Step 1: Select Trigger – Order Cancelled

* Start by selecting the **Order Cancelled** trigger. This trigger activates the workflow whenever **an order cancellation event occurs on the store**.

***

#### Step 2: Add Condition – Check Payment Status

1. Click **Logic**.
2. Select **Condition**.
3. Configure the condition as follows:

**Field:** `Payment Status`\
**Rule:** `Equals`\
**Value:** `Paid`

This condition checks whether the order was **prepaid**.

If the condition evaluates to **Yes**, the workflow will continue and send the refund notification.

***

#### Step 3: Add and Configure the WhatsApp Action

1. In the **Add Nodes** section, click **Actions**.
2. Select **WhatsApp**.
3. Configure the required details:
   * Select the **phone number**
   * Select the **refund notification template**

**Example template:**

```
Hi {{1}},

Your order **#{{2}}** has been canceled.

If you have already made a payment, the refund will be processed shortly according to our refund policy.

For any questions, please contact our support team.
```

4. Click **Save Configuration**.

***

#### Step 4: Connect the WhatsApp Action to the "Yes" Branch

1. Go to the **Condition** node.
2. From the **green Yes branch**, draw a connection line.
3. Connect it to the configured **WhatsApp action** node.

This ensures the message is sent **only when Payment Status = Paid**.

***

#### Step 5: Activate the Workflow

1. Turn **Workflow ON**.
2. Click **Save Changes**.

The refund notification will now be sent automatically when a **prepaid order is cancelled**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mercuri.cx/features/flows/e-commerce-order-triggers/order-canceled-trigger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
