> 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/inventory/reset-inventory.md). Agents can also search and read this documentation through its [MCP server](https://docs.hotwax.co/documents/~gitbook/mcp).

# Reset Inventory

Learn how to sync inventory from an external reference source to HotWax Commerce with the 'Reset Inventory' feature.

Syncs inventory from an external reference source to HotWax. After receiving the inventory file in CSV format, HotWax Commerce calculates the difference in inventory and matches its inventory levels exactly with CSV. CSV files can be imported in HotWax by two methods: using the EXIM menu in HotWax or saving the file at a designated SFTP location for HotWax to automatically download and process.

Sample path for SFTP method: `/home/<host_name>-sftp/staging/incoming`

## CSV example

Here's an example of the CSV file format:

| facilityId         | locationSeqId | idType | idValue       | availableQty |
| ------------------ | ------------- | ------ | ------------- | ------------ |
| DEMO\_HC\_STORE\_1 | TLTLTLLL01    | sku    | WH09-XL-Green | 20           |

## Parameters

The Reset Inventory API accepts the following parameters:

| Parameters           | Description                                                                                                                                                 | Required |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `facilityId`         | HotWax Commerce internal facility Id. Generally the same as the facility Id in Shopify.                                                                     | Yes      |
| `locationSeqId`      | The Id of the designated location in a facility in HotWax Commerce.                                                                                         | Yes      |
| `idType`             | The type of the unique product identifier in the external reference source. Default is `shopifyProductId`                                                   | No       |
| `idValue`            | The value of the product idType in the external reference source.                                                                                           | Yes      |
| `availableQty`       | The available quantity of the product in the external reference source. This number will overwrite the current ATP level of the product in HotWax Commerce. | Yes      |
| `externalFacilityId` | The Id of the facility in an external reference source.                                                                                                     | No       |
| `productId`          | The internal Id of a product in HotWax Commerce.                                                                                                            | No       |
| `comments`           | Optional field to store additional information.                                                                                                             | No       |

Note: `sku` `upca` and `shopifyProductId` are commonly used product Identifiers.


---

# 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/inventory/reset-inventory.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.
