> 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/integrate-with-hotwax/hotwax-commerce-api-and-data-feeds/fulfillment/update-and-import-file.md).

# Update and Import File

Explore API and data feeds within the 'Update and Import File' documentation.

Imports shipped order details with the tracking code. To import file, you will need to call the /uploadAndImportfile endpoint with the POST method.

## Request

### Endpoint

`https://<host>/api/uploadAndImportfile`

Example: <https://demo-oms.hotwax.io/api/uploadAndImportfile>

### Header

#### Body

```
uploadedFile: (blob)
configId: IMP_TRACK_NUM
```

Note: Provide this information in form format

| Parameter      | Description                                                    | Required (Y/N) |
| -------------- | -------------------------------------------------------------- | -------------- |
| `uploadedFile` | The uploaded file                                              | Y              |
| `configId`     | The datamanager configuration ID which is used to import files | Y              |

## Response

### Header

#### Body

```
{
  "uploadFileContentId": "",
  "filePath": "/oms/runtime/datamanager/imported/IMP_TRACK_NUM/<file_name>",
  "configId": "IMP_TRACK_NUM",
  "EVENT_MESSAGE": "Upload has been started successfully."
}

```

| Parameter             | Description                                             |
| --------------------- | ------------------------------------------------------- |
| `uploadFileContentId` | The content ID of the uploadFile                        |
| `filePath`            | The location of a file in a web site's folder structure |
| `_EVENT_MESSAGE_`     | The communication message of the event                  |


---

# 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/integrate-with-hotwax/hotwax-commerce-api-and-data-feeds/fulfillment/update-and-import-file.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.
