> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/learn-netsuite/synchronization-flows/order-sync/sync-customer.md).

# Sync Customer

Explore the synchronization process of customer data between HotWax Commerce and NetSuite.

If the order contains a new customer not present in NetSuite, the system won't allow the order to be pushed. Therefore, it's vital to synchronize customer data from HotWax Commerce to NetSuite before order creation.

## Historical Customers

If HotWax is being deployed in an environment where NetSuite already has a historical record of customers from Shopify and their Shopify internal ID, these need to synced into the OMS before orders can be synced.

{% hint style="danger" %}
Duplicate customers will be created in NetSuite and HotWax if this sync is not completed before order import.
{% endhint %}

SuiteScript to run manually to export all existing customers in NetSuite and their Shopify ID

**Generate CSV**

```
HC_SC_GenerateHistoricalCustomerCSV
```

**Move to SFTP**

```
HC_SC_UploadHistoricalCustomerCSV
```

**SFTP Locations**

```
/home/{sftp-username}/netsuite/historicalshopifycustomer/csv
```

Job to import historical customers into HotWax with both a NetSuite and Shopify identification to avoid duplicate customers.

```
Import Historical Shopify Customers
```

## Export customers from HotWax

Scheduled job in HotWax Commerce generates a CSV file comprising customers who have not been synchronized to NetSuite.

This job is scheduled in the integration layer and not executed natively in the OMS.

{% hint style="warning" %}

```
To change this job's frequency, connect with the integration team.
```

{% endhint %}

**SFTP Location**

```
/home/{sftp-username}/netsuite/customer/export
```

### Import customers into NetSuite

Schedule the following SuiteScript to export a feed of recently created customers from NetSuite

```
HC_SC_ImportCustomer
```

### Export customer IDs from NetSuite

Schedule this SuiteScript to export a file of recently created customers in NetSuite.

```
HC_MR_ExportedCustomerCSV
```

Verify that the generated file is placed at this SFTP Location

```
/home/{sftp-username}/netsuite/customer/import/
```

### Import NetSuite Customer into HotWax

Enable this job in HotWax Commerce to consume the file generated by HotWax

```
Import Party Identification
FTP Config: IMP_PARTY_IDENT
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hotwax.co/documents/learn-netsuite/synchronization-flows/order-sync/sync-customer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
