> 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/generate-cod-to-prepaid-link-on-razorpay.md).

# Generate COD to Prepaid Link on Razorpay

Action Node · COD to Prepaid Conversion

### What It Does

This node generates a Razorpay payment link that converts an existing Cash on Delivery (COD) Shopify order into a prepaid order.

The generated payment link can be shared with customers through WhatsApp, allowing them to complete payment online using UPI or other supported payment methods.

This node is commonly used to reduce COD-related risks, improve prepaid conversion rates, and encourage advance payment through discounts or shipping benefits.

***

### Example

A customer places a COD order worth ₹3,499.

The workflow sends a prepaid conversion offer:

> “Complete payment online now and get ₹300 OFF plus free shipping on your order.”

The workflow generates a Razorpay payment link and shares it with the customer through WhatsApp.

Once payment is completed:

* The order converts to prepaid
* COD risk is eliminated
* Fulfillment proceeds normally

***

## When to Use This Node

Use this node when:

1. You want to reduce COD-related risks
2. You are encouraging customers to convert to prepaid
3. You want to offer discounts or shipping benefits for prepaid payments
4. You are running COD recovery or prepaid conversion campaigns
5. You need to generate Razorpay payment links for existing Shopify orders

***

## Requirements

&#x20;Before configuring this node:

* Shopify integration must already be connected
* Razorpay integration must already be configured
* The Shopify order should already exist
* Discount and shipping configurations should be validated properly

***

## Supported Events

This node supports:

1. Shopify Checkout Created
2. Shopify Checkout Updated
3. Shopify Order Created
4. Shopify Order Updated
5. Shopify Order Fulfilled
6. Shopify Order Cancelled

***

## Setting It Up

### Inputs

| Input                               | Type                          | Required | Description                                                            |
| ----------------------------------- | ----------------------------- | -------- | ---------------------------------------------------------------------- |
| Discount                            | Number                        | Yes      | Discount offered during prepaid conversion                             |
| Is UPI Link                         | Boolean (True/False)          | Yes      | Determines whether the generated payment link should be UPI-based      |
| Discount Type                       | Dropdown (Percentage / Value) | Yes      | Defines how the discount should be applied                             |
| Default Expiry Time                 | Number                        | Yes      | Time in seconds after which the payment link expires                   |
| Fulfillment Timeslots               | Time Slots (Array)            | No       | Delivery or fulfillment time windows applied after conversion          |
| Remove Shipping Price on Conversion | Boolean (True/False)          | Yes      | Controls whether shipping charges are removed after prepaid conversion |

***

## Input Field Details

### Discount

Discount value offered to the customer during prepaid conversion.

Works together with Discount Type.

#### Example

* 10
* 250

***

### Is UPI Link

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

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

***

### Discount Type

Defines how the discount should be applied.

#### Available Options

| Option     | Meaning                          |
| ---------- | -------------------------------- |
| Percentage | Discount applied as a percentage |
| Value      | Flat amount discount applied     |

#### Example

* Percentage → 10% OFF
* Value → ₹250 OFF

***

### Default Expiry Time

Defines how long the payment link remains active before expiring.

#### Example

* 3600 → 1 hour
* 86400 → 24 hours

Default value:

* 86400 seconds (24 hours)

***

### Fulfillment Timeslots

Optional delivery or fulfillment windows used after prepaid conversion.

Supports multiple time slots.

#### Example

* 10 AM – 1 PM
* 3 PM – 6 PM
* Same Day Delivery

#### Special Behavior

Orders are aligned to the next applicable fulfillment slot.

Example:

* If the next slot is 6 PM, all qualifying orders are marked fulfilled at 6 PM.

***

### Remove Shipping Price on Conversion

Controls whether shipping charges should be waived after prepaid conversion.

| Value | Behavior                           |
| ----- | ---------------------------------- |
| True  | Shipping charges removed           |
| False | Existing shipping charges retained |

***

## Special Behavior

* Supports both standard Razorpay links and UPI payment links
* Discounts and shipping benefits are automatically applied during conversion
* Fulfillment scheduling can be standardized using time slots
* Expiry times create urgency for prepaid conversion campaigns

***

## Outputs

| Output        | Type       | Description                                                   |
| ------------- | ---------- | ------------------------------------------------------------- |
| payment\_link | Text (URL) | Generated Razorpay payment link shared with the customer      |
| successful    | Boolean    | Indicates whether the payment link was successfully generated |

***

## Output Behavior

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

***

## What Happens After It Runs

Once executed:

* A Razorpay payment link is generated
* Discounts and shipping configurations are applied
* The payment URL becomes available for messaging workflows
* Customers can complete payment online using:
  * UPI
  * Cards
  * Net banking
  * Other Razorpay-supported methods
* Successful payments can trigger:
  * Order updates
  * Prepaid conversion workflows
  * Fulfillment processing
  * CRM tagging
  * Payment success automation

***

## Best Practices

&#x20;Use meaningful discounts or free shipping to improve prepaid conversion rates.

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

&#x20;Configure expiry times carefully:

* Too short → Lower conversions
* Too long → Reduced urgency

&#x20;Combine with:

* WhatsApp reminder campaigns
* COD verification workflows
* Payment success tracking
* CRM segmentation
* Fulfillment automation

&#x20;Trigger payment links soon after order placement for maximum effectiveness.

***

## Key Reminders

1. Shopify and Razorpay integrations are mandatory
2. Works only for existing Shopify COD orders
3. UPI links provide a faster payment experience but require UPI-compatible users
4. Discounts and shipping waivers strongly influence conversion rates
5. Payment links expire automatically after the configured duration
6. Fulfillment time slots help standardize order processing windows
7. Typically followed by WhatsApp messaging workflows
8. Commonly used in COD recovery and prepaid conversion campaigns
