# GET /inventory/value

**Resource:** [INVENTORY](./inventory.md)  
**MCP tool:** `get_stock_value`  
**Scopes:** `products:read`  
**Write operation:** no

What the stock on hand is worth at cost, by product (default), by location, or by product at each location, with a total. Uses each batch's purchase cost, else the product's cost lines; units with no cost known are reported separately.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `group_by` | query | string | no | "product" (default): one row per product across all locations. "location": one row per location. "product_location": one row per product at each location. |
| `location_id` | query | string | no | Only stock at this location. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/inventory/value"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`