# Inventory

The Eshopbox Inventory API allows you to view the stock for the products in your project catalog.

### The Stock object

{% tabs %}
{% tab title="Attributes" %}

| **Attribute**    | **Type** | **Description**                                                                                            |
| ---------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| sku              | `string` | A `SKU` is a unique code that identifies characteristics of each product, source: client                   |
| warehouse        | `string` | Fulfillment center                                                                                         |
| sellable         | `number` | Inventory which is available for sale                                                                      |
| nonSellable      | `number` | Inventory that cannot be made available for sale. It is because Eshopbox rejected it during the inspection |
| inwardInProcess  | `number` | Inventory for which inward is in process                                                                   |
| outwardInProcess | `number` | Inventory for which outward is in process                                                                  |
| {% endtab %}     |          |                                                                                                            |

{% tab title="Sample Object" %}

```
{
    "0SGAT12SG25F": {
        "warehouseInventories": {
            "GGN": {
                "outwardInProcess": 4,
                "sellable": 3,
                "inwardInProcess": 2,
                "nonSellable": 7
            },
            "BNG": {
                "outwardInProcess": 4,
                "sellable": 5,
                "inwardInProcess": 1,
                "nonSellable": 0
            }
        },
        "inventories": {
            "outwardInProcess": 8,
            "sellable": 8,
            "inwardInProcess": 3,
            "nonSellable": 7
        }
    }
}    
```

{% endtab %}
{% endtabs %}

Here, key is the ESIN of the product and it's value itself has two keys, *warehouseInventories* and *inventories*.\
\&#xNAN;*warehouseInventories*  has the warehouse wise inventories of all four statuses,\
\&#xNAN;*inventories*  has the combined inventories on all warehouses of all four statuses.


---

# 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://eshop.gitbook.io/eshopbox-developers/product/untitled.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.
