# Narvar

## Overview

The Narvar Connector in **DBSync Cloud Workflow** enables seamless data integration between DBSync and Narvar, helping users synchronize order and shipping information for an enhanced customer experience. This guide explains how to configure, set up, and operate the Narvar Connector.

### Prerequisites

**DBSync Cloud Workflow Account** - Access to an active DBSync Cloud Workflow account.

**To set up a connection with Narvar, you will need the following:**

* **Endpoint**: The Narvar API endpoint (e.g., `https://api.narvar.com/v1/...`)
* **Client ID**: Provided by Narvar support or developer portal.
* **Client Secret**: Used with the Client ID to authenticate API requests.

#### **Common Use Cases**

* Pull real-time tracking data into **CRM,** such as Salesforc&#x65;**,** to improve agent response time and customer experience.
* Sync order and delivery status with **ERP systems** like NetSuite for better inventory and fulfillment planning.
* Consolidate shipment and delivery events in a **data warehouse** for reporting and performance analytics.

## Setting Up the Narvar Connector

#### Connect Narvar to DBSync Cloud Workflow

1. **Log into DBSync Cloud Workflow**.
2. Go to the **Connectors** section.
3. Click on **Add Connector** and select **Narvar**.
4. **Enter API Credentials**: Enter your Narvar Endpoint, Narvar Client ID, and Client Secret.
5. **Save and Test Connection**: Confirm the setup by testing the connection to verify that DBSync can access Narvar data and click on save connection.

#### **How to Obtain Client ID and Client Secret**

To set up the Narvar Connector, follow the steps below to generate your API credentials from the **Narvar**:

1. **Access Narvar Hub**\
   Log in to your Narvar Hub account.
2. **Navigate to API Accounts**\
   Go to **Advanced Settings > API Accounts** in the Narvar Hub dashboard.
3. **Create an API Account**\
   Click on **Create API Account**.
4. **Select Token Type**\
   Choose **V2/V3 API token** when prompted.
5. **Review Generated Credentials**\
   After creation, you will see the following details:
   * **API Path**
   * **Client ID**
   * **Client Secret**
   * **Access Token**
6. **Store Credentials Securely**\
   The **Client Secret** will not be displayed again once you close the popup. Store it in a secure location.
7. **Use for Token Generation**\
   Use the **Client ID** and **Client Secret** to generate an access token, which will be used to access the **Ship API V2** endpoints.

## Troubleshooting

#### 1. Connection Errors

* **Solution**: Ensure that API credentials are correct and that no firewall restrictions are blocking DBSync from accessing Narvar.

#### 2. Data Mapping Issues

* **Solution**: Revisit the data mapping section to verify that all required fields are mapped. Ensure field types match between DBSync and Narvar.

#### 3. Sync Errors

* **Solution**: Check workflow rules and trigger conditions to confirm they align with your business logic. Review logs for specific error messages.

<details>

<summary>FAQs</summary>

**Can I integrate multiple data sources with Narvar?**\
Yes, DBSync allows integration of multiple data sources, as long as each source is configured correctly.

**How often is data synced between DBSync and Narvar?**\
The sync frequency depends on the workflow settings you configure. Typically, real-time sync is available, but you can set up specific intervals if preferred.

</details>
