# Order Import

## What it does

This flow fetches orders from your eBay account and creates or updates NetSuite Sales Orders. Each order includes the customer, billing and shipping addresses, line items with prices, shipping cost, tax, and any deposits you've collected. IDC also tracks the eBay order ID so it can match updates back to the same NetSuite record.

## Direction

**eBay → NetSuite**

## When it runs

This flow runs on a schedule you set. Configure when it runs in [Triggers](/idc/idc-core/apps/triggers.md). For most setups, schedule this flow to run every hour. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for a step-by-step walkthrough.

## Settings

| Setting                  | What it does                                                                                                                                                 |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Default Customer ID      | If IDC can't find or create a customer based on the eBay buyer's email, it uses this customer for the order. Leave blank to require a manual customer match. |
| Shipping Cost Override?  | Enable to use the eBay shipping amount instead of calculating shipping in NetSuite. Recommended ON.                                                          |
| Discount Item            | If the eBay order includes a discount, specify the NetSuite item ID to use as a discount line. Leave blank to skip discount lines.                           |
| Create Deposit?          | Enable to create a Customer Deposit for the payment amount received on eBay. Recommended ON.                                                                 |
| Sync Entity Address?     | Enable to sync the eBay buyer's address into the NetSuite customer record. Recommended ON.                                                                   |
| Replace Default Address? | Enable to overwrite the default address on the customer. Leave OFF unless you want eBay addresses to replace your existing default.                          |

## Default field mappings

IDC maps these eBay fields to NetSuite Sales Order fields automatically:

| eBay field         | NetSuite field                      |
| ------------------ | ----------------------------------- |
| Order ID           | External ID (used to match updates) |
| Order ID           | Other Reference Number              |
| Creation Date      | Transaction Date                    |
| Line Item SKU      | Item                                |
| Line Item Quantity | Quantity                            |
| Line Item Cost     | Amount                              |
| Buyer Email        | Customer Email                      |
| Buyer Phone        | Customer Phone                      |
| Shipping Address   | Ship Address                        |
| Billing Address    | Bill Address                        |

For detailed field mapping instructions, see [Field Mappings](/idc/idc-core/apps/field-mappings.md).

## Use cases

* **New marketplace setup:** Enable this flow first so orders start flowing into NetSuite automatically. Set it to run hourly so you capture orders quickly.
* **Multi-address fulfillment:** Enable "Sync Entity Address" and "Replace Default Address" if you want to keep each customer's eBay address current for every order.
* **Discount tracking:** Specify a discount item if your eBay orders often include promotional discounts or coupons that you want to track in NetSuite.

## Common issues

| Symptom                               | What to try                                                                                                                                                                                   |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Orders not appearing in NetSuite      | Check the [activity log](/idc/idc-core/logs.md) to see if the flow ran successfully. If the flow shows errors, verify the connection is Active and the schedule is set.                       |
| Customers being created as duplicates | If you don't set a Default Customer ID and customer matching fails, each order creates a new customer. Set a Default Customer ID or configure customer matching in the flow's field mappings. |
| Shipping or tax amounts incorrect     | Check the Shipping Cost Override and Tax Amount Override settings in the eBay app Settings tab. These affect how costs are handled on all orders.                                             |


---

# 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/ebay/flows/order-import.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.
