# 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**.
