> For the complete documentation index, see [llms.txt](https://limechatai.gitbook.io/limechat-product-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://limechatai.gitbook.io/limechat-product-guide/whatsapp-marketing/flows/action-nodes/create-cod-order-flow.md).

# Create COD Order Flow

Action Node · Shopify COD Order Creation

### What It Does

This node creates a Cash on Delivery (COD) order directly on Shopify using selected product variants.

It allows workflows to convert customer purchase intent into an actual Shopify order during conversational commerce journeys such as WhatsApp ordering flows.

The node also supports optional discount and shipping configurations while placing the order.

***

### Example

A customer selects two products through WhatsApp and confirms they want to place the order using Cash on Delivery.

The workflow uses this node to:

* Create the Shopify order
* Apply a 10% discount
* Add shipping charges
* Return the generated order ID for downstream automation

The order is immediately visible inside Shopify as a COD order.

***

## When to Use This Node

Use this node when:

1. Customers confirm purchases through WhatsApp or chat flows
2. You want to place COD orders directly from conversational workflows
3. You need to convert selected product variants into Shopify orders
4. You want to offer discounts or custom shipping during checkout
5. You are building conversational commerce or assisted shopping experiences

***

## Requirements

&#x20;Before configuring this node:

* Shopify must already be connected to your LimeChat account
* Valid Shopify product variant IDs should be available
* Either Variants or Event Variant ID List Field must be configured properly
* Ensure the variants exist and are active inside Shopify

***

## Supported Events

This node supports:

1. All Events

***

## Setting It Up

### Inputs

| Input                       | Type        | Required | Description                                                                 |
| --------------------------- | ----------- | -------- | --------------------------------------------------------------------------- |
| Variants                    | List (Text) | No       | Product variant IDs to include in the order                                 |
| Discount Percent            | Number      | No       | Percentage discount applied to the order                                    |
| Flat Shipping Amount        | Number      | No       | Fixed shipping charge applied to the order                                  |
| Shipping Rate Handles       | List (Text) | No       | Specific shipping methods or rates applied to the order                     |
| Event Variant ID List Field | Text        | No       | Event field containing variant IDs dynamically from previous workflow steps |

***

## Input Field Details

### Variants

List of Shopify product variant IDs that should be added to the order.

Supports multiple product variants.

#### Example

* 487392874
* 983274983
* 728374923

***

### Discount Percent

Optional discount percentage applied during order creation.

#### Example

* 10
* 15
* 20

Default value:

* 0

***

### Flat Shipping Amount

Fixed shipping fee added to the order.

#### Example

* ₹50
* ₹100

Default value:

* 0

***

### Shipping Rate Handles

Specific shipping methods or shipping rate identifiers applied to the order.

Supports multiple values.

#### Example

* standard\_shipping
* express\_delivery
* same\_day\_delivery

***

### Event Variant ID List Field

Field name from the workflow event where variant IDs are stored dynamically.

Typically used when variant selection comes from earlier workflow steps.

#### Example

* selected\_variants
* cart\_variant\_ids

***

## Special Behavior

* The order is automatically created as a COD order
* No separate checkout type selection is required
* Supports multiple product variants
* Discount and shipping configurations are optional
* Variant IDs can be passed directly or dynamically through event fields

***

## Outputs

| Output         | Type    | Description                                                       |
| -------------- | ------- | ----------------------------------------------------------------- |
| successful     | Boolean | Indicates whether the Shopify COD order was successfully created  |
| order\_id      | Text    | Unique identifier of the created Shopify order                    |
| order\_details | Object  | Additional structured order data used internally within workflows |

***

## Output Behavior

| Output Value       | Meaning                    | Recommended Next Step                             |
| ------------------ | -------------------------- | ------------------------------------------------- |
| successful = true  | Order created successfully | Continue fulfillment or confirmation workflow     |
| successful = false | Order creation failed      | Retry order creation or trigger fallback handling |

***

## What Happens After It Runs

Once executed:

* A COD order is created inside Shopify
* Discounts and shipping rules are applied if configured
* The workflow receives the generated order ID
* Downstream workflows can continue with:
  * Order confirmation
  * COD verification
  * CRM tagging
  * Fulfillment workflows
  * Payment conversion campaigns

***

## Best Practices

&#x20;Validate product variant IDs before order creation.

&#x20;Use dynamic event fields for scalable conversational commerce flows.

&#x20;Apply discounts strategically to improve conversion rates.

Configure shipping logic carefully based on:

* Region
* Delivery speed
* Order value

&#x20;Combine this node with:

* COD verification calls
* Payment reminder flows
* Order confirmation messages
* CRM tagging workflows

***

## Key Reminders

1. Shopify integration is mandatory
2. The order is always created as a COD order
3. Either Variants or Event Variant ID List Field must be configured
4. Invalid variant IDs will prevent successful order creation
5. Discount and shipping settings are optional
6. Supports conversational commerce and assisted checkout journeys
7. Works across all workflow events
8. Created orders are immediately visible inside Shopify admin
