> 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-orderids.md).

# Sync Order IDs

Discover the seamless synchronization of order IDs between HotWax Commerce and NetSuite.

Before an order can be processed further, HotWax ensures successful creation in NetSuite by syncing order ID and order item IDs.

## Create Orders in NetSuite

### Export orders from HotWax

Schedule a job in the HotWax Commerce integration layer to create a file of orders in HotWax that have not yet been sent to NetSuite.

{% hint style="warning" %}

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

{% endhint %}

**SFTP Location for exported 'Created' orders with verified customers**

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

### Import orders into NetSuite

Schedule the following SuiteScript in NetSuite to consume the file of new orders from HotWax.

```
HC_importSalesOrders
```

{% hint style="success" %}

```
Orders are now created in NetSuite
```

{% endhint %}

## Import Order IDs from NetSuite

Now that the order is created in NetSuite, the following jobs will sync their identifications back to HotWax for a full sync.

### Export order line item IDs from NetSuite

Schedule this script to export order item IDs from NetSuite to enable order updates during allocation.

```
HC_MR_ExportedSalesOrderItemCSV
```

### Import order line item IDs into HotWax

Open `Catalog` in Job Manager, search for the job, then configure its schedule.

```
Order Item Attribute
FTP Config: IMP_ORDER_ITM_ATTR
```

### Export order IDs from NetSuite

Schedule this SuiteScript in NetSuite to export NetSuite internal order IDs of recently created orders that have not been synced back to HotWax.

```
HC_MR_ExportedSalesOrderCSV
```

### Import order IDs into HotWax

Open `Catalog` in Job Manager, search for the job, then configure its schedule to consume the file generated by NetSuite.

```
Order Identification
FTP Config: IMP_ORDER_IDENT
```

See [Manage a job](https://github.com/hotwax/oms-documentation/tree/user-guides-pub/documents/system-admin/administration/job-manager/jobs/job-details.md) for current scheduling instructions.

{% hint style="success" %}

```
Orders and order line IDs are now synced back into HotWax
```

{% endhint %}


---

# 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-orderids.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.
