# Customer Export

## What it does

This flow exports NetSuite customers to Lightspeed X-Series so they appear in your Lightspeed POS system and ecommerce platform. When you create a customer in NetSuite, IDC sends their contact info, addresses, and preferences to Lightspeed. Updates to customer records are also synced.

## Direction

**NetSuite → Lightspeed X-Series**

## When it runs

Configure when this flow runs in [Triggers](/idc/idc-core/apps/triggers.md). Most setups trigger this flow when a customer is created or modified in NetSuite. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for a step-by-step walkthrough.

## Settings

This flow has no additional settings. It runs automatically once the connection is set up.

## Default field mappings

| NetSuite field      | Lightspeed field                  |
| ------------------- | --------------------------------- |
| Entity ID           | Customer Code                     |
| First Name          | First Name                        |
| Last Name           | Last Name                         |
| Company Name        | Company Name                      |
| Email               | Email                             |
| Phone               | Phone                             |
| Mobile Phone        | Mobile                            |
| Fax                 | Fax                               |
| Billing Address     | Postal Address (all components)   |
| Shipping Address    | Physical Address (all components) |
| Subscription Status | Do Not Email                      |

You can add or modify these mappings to include custom fields. See [Field Mappings](/idc/idc-core/apps/field-mappings.md).

## Use cases

* **Creating customers in Lightspeed from NetSuite:** When a customer is added in NetSuite, they automatically appear in Lightspeed POS for the next sale.
* **Syncing customer preferences:** If you capture subscription preferences or contact restrictions in NetSuite, map them to Lightspeed's do-not-email or do-not-call fields.
* **Multi-channel customer experience:** Keep the same customer record across POS, ecommerce, and NetSuite so transactions are consistent everywhere.

## Common issues

| Symptom                                          | What to try                                                                                                                         |
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| Customer not appearing in Lightspeed             | Check the activity log for validation errors. Verify that the customer's Entity ID is not blank and is unique.                      |
| Lightspeed shows "Customer already exists" error | The customer code already exists in Lightspeed. Check that you're not creating duplicate records — update the existing one instead. |
| Addresses not syncing correctly                  | Verify that your address fields in NetSuite (shipping vs. billing) match the mapping. Check that country codes are valid.           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.in8sync.com/idc/lightspeed-x-series/flows/customer-export.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
