# Delhivery

## Feature Setup: LimeChat Integration with Delhivery

### Prerequisites

Before setting up the integration, ensure you have:

* **Admin Access** to Delhivery.
* **API Token** for authentication.
* A dedicated LimeChat Product Consultant for integration support.

### Step-by-Step Setup

#### **1. Obtain Delhivery API Token**

To authenticate and interact with Delhivery’s API, an **API Token** is required.

**Steps to Generate API Token**

1. Navigate to [**Delhivery Tracking Portal**](https://track.delhivery.com/).
2. Log in using your **Delhivery Username & Password**.
3. After successful login, click on the **API Key** link located in the top-right corner.
4. Copy the **API Token**.
5. Share this **API Token** securely with your **LimeChat Product Consultant**.

#### **2. Share API Token with LimeChat**

After generating the API Token, securely share it with your **LimeChat Product Consultant** to enable integration.

#### **3. Configure Webhooks for NDR Events**

1. Log in to **Delhivery’s Dashboard**.
2. Navigate to **Webhook Settings**.
3. Add a new webhook with the following details:
   * **Webhook URL:** (Provided by LimeChat)
   * **Event Type:** Delivery failure (NDR)
   * **Authentication:** Use the API Token for verification.
4. Save the webhook configuration.

#### **4. Connect Delhivery to LimeChat**

1. On LimeChat’s platform, go to **Integrations**.
2. Select **Delhivery** and click **Connect Now**.
3. Enter your **API Token**.
4. Click **Save & Activate** to complete the integration.

### Completion

After setup, LimeChat will:

* Fetch real-time order statuses from Delhivery.
* Automate order tracking queries through the chatbot.
* Listen to delivery failure webhooks and trigger WhatsApp campaigns for resolution.

This integration ensures improved logistics communication, reduced customer escalations, and an enhanced post-purchase experience.
