> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/connections/shopify/cancel-order.md).

# Cancel Order

This section explains how to configure the Cancel Order action in Shopify using Ownchat Bot Builder.

The Cancel Order action allows businesses to automatically cancel Shopify orders directly through workflow automation using an Order ID or dynamic variables.

{% embed url="<https://app.supademo.com/demo/cmpkrzbgt2hyjqms9ima9f1zf?utm_source=link>" %}

## Overview &#x20;

The Cancel Order action helps you:

* Automatically cancel Shopify orders
* Handle customer cancellation requests
* Manage failed payment scenarios
* Process order modifications
* Automate refund and cancellation workflows

This feature is useful for:

* Customer support automation
* Refund processing
* Failed payment handling
* Order management workflows
* WhatsApp-based order cancellation

## Prerequisites &#x20;

Before starting, ensure:

* Shopify store access is available
* Shopify connection is already created
* Order IDs are available
* Bot Builder access is enabled
* Shopify Orders are synced properly

## 1. Open Bot Builder &#x20;

To begin, click the Add Node button to create a new action node.

{% embed url="<https://app.supademo.com/demo/cmprx029m01fj0f0jxvgysama?utm_source=link>" %}

Next up, click the Connections tab to view and manage available integrations.

{% embed url="<https://app.supademo.com/demo/cmprx1g4q02jd0t0i5yaor9h4?utm_source=link>" %}

Next up, click on Shopify to configure your e-commerce integration settings.<br>

{% embed url="<https://app.supademo.com/demo/cmprx27q701fl0f0j4cm1rmbi?utm_source=link>" %}

## 2. Configure Cancel Order Action &#x20;

Next, click the Cancel Order action to open the cancellation configuration dialog.<br>

{% embed url="<https://app.supademo.com/demo/cmprx320l02jf0t0i1lyge4ge?utm_source=link>" %}

After that, enter a descriptive name for this cancel order action in the field.

{% embed url="<https://app.supademo.com/demo/cmprx49zp02jh0t0i9exaqkpc?utm_source=link>" %}

Example:

Cancel Shopify Order

## 3. Select Shopify Connection &#x20;

Afterwards, select the ieyal shopify live connection from the dropdown menu.

{% embed url="<https://app.supademo.com/demo/cmprx59zo01ne0y0j6o6jw8d9?utm_source=link>" %}

This connects the workflow directly with your Shopify store.

## 4. Configure Order ID &#x20;

If you want to cancel a specific order, enter the Order ID from your Shopify Orders page.<br>

{% embed url="<https://app.supademo.com/demo/cmprx9wm502jz0t0iakgxssho?utm_source=link>" %}

Example:

568923145

OR

Click Add Variable and select a variable to dynamically cancel the order from your workflow or previous Shopify actions.

{% embed url="<https://app.supademo.com/demo/cmprx8iux02jx0t0iol6r83w1?utm_source=link>" %}

Example:

{{shopifyorder.order\_id}}

This enables dynamic order cancellation directly from workflow responses.

## 5. Store Cancellation Response &#x20;

After that, click the Add Variable button to create a new variable for the action.

Then, select the variable to store the order response for future reference.

Example:

Create new variable: cancelorderresponse

{% embed url="<https://app.supademo.com/demo/cmprxaww001fq0f0jp66zfmig?utm_source=link>" %}

This variable stores the Shopify cancellation response dynamically for later workflow usage.

## 6. Finalize Cancel Order Action &#x20;

After that, click the Create button to finalize the cancel order action.

{% embed url="<https://app.supademo.com/demo/cmprxcf3602k30t0iaw9ke7fd?utm_source=link>" %}

The Cancel Order action in Shopify is used to automatically cancel an existing order using the Order ID.

{% embed url="<https://app.supademo.com/demo/cmprxdcyt02k50t0ix83y24jv?utm_source=link>" %}

This helps manage:

* Refund requests
* Failed payments
* Customer cancellations
* Order changes
* Workflow-based cancellation automation

directly through your workflow.

## 7. Publish the Bot &#x20;

Next, click the Publish button to deploy your bot configuration to the WhatsApp channel.<br>

{% embed url="<https://app.supademo.com/demo/cmprxeenu02k70t0izbpavgbo?utm_source=link>" %}

Once published, the bot automatically processes Shopify order cancellations whenever the configured workflow is triggered.

## Workflow Summary &#x20;

Add Node\
&#x20;  ↓\
Connections\
&#x20;  ↓\
Shopify\
&#x20;  ↓\
Cancel Order\
&#x20;  ↓\
Select Connection\
&#x20;  ↓\
Enter Order ID\
&#x20;  ↓\
Store Response Variable\
&#x20;  ↓\
Create\
&#x20;  ↓\
Publish

## Using Cancellation Response Variables &#x20;

The cancellation response variable can be used dynamically throughout your workflow.

Example:

{{cancelorderresponse.order\_id}}\
{{cancelorderresponse.status}}\
{{cancelorderresponse.cancelled\_at}}

These values can be used in:

* Customer notifications
* Refund workflows
* CRM updates
* WhatsApp confirmation messages
* Support automation

## Expected Output &#x20;

After successful configuration:

* Shopify orders are cancelled automatically
* Dynamic Order IDs can be processed
* Cancellation responses are stored in variables
* Refund and support workflows become automated
* Customer cancellation handling is streamlined through WhatsApp
