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

# Check Inventory

Discover how to retrieve stock details for products at specific locations with the 'Check Inventory' subcategory.

> \[!WARNING] This API is no longer recommended and will not be maintained for newer functionality. It is recommended to use the following APIs instead:
>
> * [BOPIS Check Inventory](https://docs.hotwax.co/documents/integrate-with-hotwax/hotwax-commerce-api-and-data-feeds/inventory/bopis-check-inventory.md)
> * [Shipping Check Inventory](https://docs.hotwax.co/documents/integrate-with-hotwax/hotwax-commerce-api-and-data-feeds/inventory/shipping-check-inventory.md)
> * [Get Online ATP](https://docs.hotwax.co/documents/integrate-with-hotwax/hotwax-commerce-api-and-data-feeds/inventory/get-online-atp.md)

Get the stock details of the product on the specific locations. To get the stock details, you will need to call the `/checkInventory` endpoint with the POST method.

## Request

### End Point

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

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

### Header

Content-Type: application/json

### Body

In case of checking a product's inventory at multiple facility.

```
{
  "filters": {
    "sku": "<sku>",
    "facilityId": ["<facilityId1>", "<facilityId2>", "<facilityId3>"],
    "facilityId_op": "in"
  }
}
```

In case of checking multiple product's inventory at single facility.

```
{
  "filters": {
    "sku": ["<sku1>", "<sku2>", "<sku3>"],
    "sku_op": "in",
    "facilityId": "<facilityId>"
  }
}
```

**Sample**

```
{
  "filters": {
    "sku": "MSH02-32-Black",
    "facilityId": "STORE_7"
  }
}
```

| Parameter Name                                            | Description                                                        | Required (Y/N) |
| --------------------------------------------------------- | ------------------------------------------------------------------ | -------------- |
| `sku`                                                     | The SKU of the product                                             | N              |
| `sku_op`                                                  | The operator to be used for the sku field                          | N              |
| `productId`                                               | HotWax Commerce internal product Id                                | N              |
| `facilityId`                                              | The HotWax Commerce facility Id where product inventory is located | N              |
| `facilityId_op`                                           | The operator to be used for the facility Id                        | N              |
| `sku_op`                                                  | The operator to be used for the sku field                          | N              |
| Note: It is required to pass either `sku` or `productId`. |                                                                    |                |

## Response

### Status Code

HTTP/1.1 200 OK

### Headers

Content-Type: application/json

### Body

```
{
  "count": "1",
  "docs": [
    {
      "facilityId": "STORE_7",
      "atp": 1.000000
    }
  ]
}
```

| Parameter Name | Description                                       |
| -------------- | ------------------------------------------------- |
| `count`        | Results count                                     |
| `docs`         | The array of results found                        |
| `facilityId`   | The Id of the facility in HotWax                  |
| `atp`          | The available to promise inventory of the product |


---

# 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/check-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.
