**Version: 202601**

# Get product inventory

**GET** `/openapi/2026-01/products/:product_id/inventory`

Retrieves the inventory details of a product by its unique identifier (product\_id).

## Request

**Path Parameters**

- `product_id` string (required)

  Product ID

**Query Parameters**

- `location_id` uint64

  Location to filter inventory details (optional) ID

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `product_id` string

    Product ID
  - `Stock` int32

    Product's inventory
  - `variants` object[]

    List of variant objects containing inventory details

    *   Array \[

    - `variant_id` string

      Product variant ID
    - `location_items` object[]

      Inventory details for each location

      *   Array \[

      - `location_id` uint64

        Location ID
      - `stock` int32

        Current stock quantity at the location
      *   \]
    *   \]

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "product_id": "string",
    "Stock": 0,
    "variants": [
      {
        "variant_id": "string",
        "location_items": [
          {
            "location_id": 0,
            "stock": 0
          }
        ]
      }
    ]
  }
}
```
