> 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/get-order-of-customer.md).

# Get Order of Customer

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

The Get Order of Customer action allows businesses to retrieve all orders placed by a specific customer from their Shopify store and use the response dynamically within workflows.

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

## Overview &#x20;

The Get Order of Customer action helps you:

* Fetch customer order history automatically
* Retrieve Shopify order details dynamically
* Store customer order responses in variables
* Use order data within workflows
* Automate customer support and order tracking

This feature is useful for:

* Order tracking workflows
* Customer support automation
* Purchase history retrieval
* CRM integrations
* WhatsApp customer service

## Prerequisites &#x20;

Before starting, ensure:

* Shopify store access is available
* Shopify connection is already created
* Customer details are available
* Bot Builder access is enabled
* Shopify order data is synced properly

## 1. Open Bot Builder &#x20;

Start by clicking the Add Node button to begin building your bot action flow.<br>

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

From here, click the Connections tab to view and manage your bot integrations.

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

After that, click Shopify to integrate your e-commerce store with the bot.<br>

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

## 2. Configure Get Order of Customer Action &#x20;

From here, select a connection and enter an action name to configure.<br>

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

Following that, enter a name for this action in the Action Name field.

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

Example:

Get Customer Orders

This action will retrieve all orders associated with a customer from Shopify.

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

## 3. Select Shopify Connection &#x20;

Afterwards, select the ieyal shopify live connection option from the dropdown list.<br>

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

This connects your workflow directly with your Shopify store.

## 4. Store API Response &#x20;

Following this, select a variable from the dropdown to store the API response.

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

Example:

Create new variable: customerorders

This variable stores the Shopify customer order response dynamically for further workflow usage.

## 5. Complete Action Configuration &#x20;

Following this, click the Create button to finalize your customer order action configuration.<br>

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

The Get Order of Customer action fetches all orders placed by a specific customer from your Shopify store.<br>

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

This response can then be used dynamically throughout your workflow.

## 6. Publish the Bot &#x20;

After completing the configuration, click the Publish button to save and deploy your bot workflow.

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

Once published, the workflow automatically retrieves customer order details whenever the configured action is triggered.

## Workflow Summary &#x20;

Add Node\
&#x20;  ↓\
Connections\
&#x20;  ↓\
Shopify\
&#x20;  ↓\
Get Order of Customer\
&#x20;  ↓\
Select Connection\
&#x20;  ↓\
Store Response Variable\
&#x20;  ↓\
Create\
&#x20;  ↓\
Publish

## Using Customer Order Response &#x20;

The stored customer order response can be used dynamically anywhere in your workflow.

Example:

{{customerorders.order\_id}}\
{{customerorders.product\_name}}\
{{customerorders.order\_status}}

These values can be used in:

* Customer support messages
* Order tracking workflows
* CRM automation
* WhatsApp notifications
* Purchase history displays

## Expected Output &#x20;

After successful configuration:

* Customer order history is fetched automatically
* Shopify order data is stored dynamically
* Order details can be reused in workflows
* Customer support automation becomes easier
* WhatsApp workflows can display real-time order information
