Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Overview

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

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

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

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

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

2. Configure Cancel Order Action

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

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

Example:

Cancel Shopify Order

3. Select Shopify Connection

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

This connects the workflow directly with your Shopify store.

4. Configure Order ID

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

Example:

568923145

OR

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

Example:

{{shopifyorder.order_id}}

This enables dynamic order cancellation directly from workflow responses.

5. Store Cancellation Response

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

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

6. Finalize Cancel Order Action

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

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

This helps manage:

  • Refund requests

  • Failed payments

  • Customer cancellations

  • Order changes

  • Workflow-based cancellation automation

directly through your workflow.

7. Publish the Bot

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

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

Workflow Summary

Add Node ↓ Connections ↓ Shopify ↓ Cancel Order ↓ Select Connection ↓ Enter Order ID ↓ Store Response Variable ↓ Create ↓ Publish

Using Cancellation Response Variables

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

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

Last updated