> For the complete documentation index, see [llms.txt](https://vu-custom.gitbook.io/vu-custom/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vu-custom.gitbook.io/vu-custom/integrations-connections/requirements-for-order-import.md).

# Requirements for Order Import

VU's OMS has the ability to autonomously pull orders from integrated platforms, and also the ability for platforms to push orders to the OMS via the [Order API](https://vu-custom.gitbook.io/vu-custom/admin-api/orders/create-an-order). In both scenarios, there are required fields that must be populated on the Order for a successful import.

### Required Fields

**Core Order Details:**

* `created_at`
* `name (the order number, like "#1001")`
* `shipping_lines (must be present)`

**Line Items: The order must include a `line_items` array where each item has:**

* `id`
* `sku`
* `price`
* `title`
* `quantity`
* `vendor`

**\*Address Information:** The order must contain either a `shipping_address` object or a `customer.default_address` object with the following fields:

* `first_name`
* `last_name`
* `address1`
* `city`
* `zip`
* `country_code`

\*Address can be configured to be optional at a company level, however it remains required by default. Please reach out to a support representitive to assist with this cofiguration if desired.

**Customization Token**: At least one line item must have a properties array containing an object with a name of `recipe_id` or `recipeid` and a corresponding value (the recipe token).

### Optional Fields

While not required for a successful import, the service will process and save the following fields if they are present in the Order data:

**Order Level:**

* `note`
* `total_weight`

**Address Level:**

* `address2`
* `company`
* `phone`
* `province_code` (for state/region)

**The entire** `billing_address` **object and its fields.**

**Line Item Level:**

* `grams`
* `product_id`
* `variant_id`

### Additional Requirements

* Products must be active for the linking/import to work.
* Products must have inventory, upcharge items as well.
* If a Company has multiple stores connected, order numbers across all stores must be unique. For example if two stores both have Order# 1001, the import of that order from the second store would fail as the system would already see that Order# present. Uniqueness can be achieve by configuring a pre-fix ahead of the Order# assignment within the store.

<br>


---

# 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 dynamically by asking a question.

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

```
GET https://vu-custom.gitbook.io/vu-custom/integrations-connections/requirements-for-order-import.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
