> 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-order-with-prepaid-link-flow.md).

# Create Order with Prepaid Link Flow

Action Node · Shopify Prepaid Checkout Link

### What It Does

This node creates a prepaid checkout link for selected Shopify products and returns a payment URL that can be shared with the customer to complete the purchase.

The generated payment link allows customers to pay online before order confirmation, making it useful for prepaid conversions, abandoned cart recovery, and advance payment workflows.

This node integrates Shopify for order creation and Razorpay for payment processing.

***

### Example

A customer selects products through WhatsApp but does not complete payment.

The workflow generates a prepaid checkout link and sends it to the customer:

> “Complete your payment here to confirm your order and get an additional 10% discount.”

The customer clicks the payment link, completes payment, and the order proceeds as prepaid.

***

## When to Use This Node

Use this node when:

1. You want to convert COD orders into prepaid orders
2. You need to send payment links through WhatsApp
3. You are building abandoned cart recovery workflows
4. You want to collect payment before confirming an order
5. You need conversational commerce checkout experiences

***

## Requirements

&#x20;Before configuring this node:

* Shopify must already be connected
* Razorpay integration must be configured
* Valid Shopify product variant IDs should be available
* Ensure payment workflows and shipping configurations are properly set up

***

## Supported Events

This node supports:

1. All Events

***

## Setting It Up

### Inputs

| Input                       | Type                      | Required | Description                                                                 |
| --------------------------- | ------------------------- | -------- | --------------------------------------------------------------------------- |
| Variants                    | List (Text / Variant IDs) | Yes      | Product variants for which the prepaid order link should be generated       |
| Is UPI Link                 | Boolean (True/False)      | No       | Determines whether the payment link should be UPI-based                     |
| Discount Percent            | Number                    | No       | Discount percentage applied to the order                                    |
| Default Expiry Time         | Number (Seconds)          | No       | Time after which the payment link expires                                   |
| Flat Shipping Amount        | Number                    | No       | Fixed shipping amount applied to the order                                  |
| Shipping Rate Handles       | List (Text)               | No       | Specific shipping methods or rates applied                                  |
| 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 included in the prepaid order.

Supports multiple variants.

#### Example

* 498237492
* 918273645
* 728374923

***

### Is UPI Link

Controls whether the generated payment link uses a UPI payment flow.

| Value | Behavior                                  |
| ----- | ----------------------------------------- |
| True  | Generates a UPI-based payment link        |
| False | Generates a standard prepaid payment link |

Default value:

* False

***

### Discount Percent

Optional discount percentage applied to incentivize prepaid conversion.

#### Example

* 10
* 15
* 20

Default value:

* 0

***

### Default Expiry Time

Defines how long the payment link remains valid before expiring.

#### Example

* 3600 → 1 hour
* 86400 → 24 hours

Default value:

* 86400 seconds (24 hours)

***

### Flat Shipping Amount

Fixed shipping fee added to the order.

#### Example

* ₹50
* ₹100

Default value:

* 0

***

### Shipping Rate Handles

Specific shipping methods or shipping rates applied during order creation.

Supports multiple values.

#### Example

* express\_shipping
* standard\_delivery

***

### Event Variant ID List Field

Field name from the workflow event containing product variant IDs dynamically.

Typically used when variants are selected in earlier workflow steps.

#### Example

* variant\_id\_list
* selected\_products

Default value:

* variant\_id\_list

***

## Special Behavior

* Supports both standard prepaid and UPI-based payment links
* Integrates Shopify order creation with Razorpay payment processing
* Supports dynamic variant mapping from workflow events
* Payment links automatically expire based on configured expiry duration
* Multiple product variants can be included in a single prepaid order

***

## Outputs

| Output        | Type    | Description                                                            |
| ------------- | ------- | ---------------------------------------------------------------------- |
| successful    | Boolean | Indicates whether the prepaid checkout link was successfully generated |
| prepaid\_link | URL     | Payment link that can be shared with the customer                      |
| Flow Metadata | Object  | Internal workflow-related metadata                                     |

***

## Output Behavior

| Output Value       | Meaning                             | Recommended Next Step                         |
| ------------------ | ----------------------------------- | --------------------------------------------- |
| successful = true  | Payment link generated successfully | Send link to customer through WhatsApp        |
| successful = false | Link generation failed              | Retry generation or trigger fallback handling |

***

## What Happens After It Runs

Once executed:

* A prepaid checkout session is created
* The payment link is generated
* The workflow receives the payment URL
* The link can be shared using WhatsApp or other messaging channels
* Customers complete payment through Razorpay
* Downstream workflows can continue toward:
  * Order confirmation
  * Payment success tracking
  * Fulfillment workflows
  * CRM tagging

***

## Best Practices

&#x20;Use prepaid discounts strategically to improve conversion rates.

&#x20;Set shorter expiry times for urgency-driven campaigns.

&#x20;Validate product variant IDs before generating links.

&#x20;Combine with:

* Abandoned cart recovery workflows
* COD to prepaid conversion campaigns
* Reminder notifications
* Payment success automation
* CRM segmentation

&#x20;Use UPI links for faster mobile payment experiences in India.

***

## Key Reminders

1. Shopify and Razorpay integrations are mandatory
2. Valid product variants are required for successful link generation
3. Payment links expire automatically based on configured expiry duration
4. UPI payment links are optional
5. Typically followed by a WhatsApp message node to share the payment URL
6. Supports multiple variants in a single checkout flow
7. Useful for prepaid conversion and conversational commerce journeys
8. Works across all workflow events
