---
name: "inventory_history"
area: "inventory"
title: "Stock history"
price: "free"
method: "POST"
url: "https://api.conecto.chat/v1/tools/inventory_history"
mcp_server: "https://api.conecto.chat/mcp/inventory"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/inventory/inventory_history"
---

# Stock history (`inventory_history`)

Stock moves, newest first, of one item, at one location, of one kind, or in a period.

Moves newest first: of one item, at one location, of one kind, in a period.

Price: Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads. A call that fails costs nothing.

## Use it when

Someone asks where stock went, or when it came in.

## Say this to your agent

> Where did the black bistro chairs go this month?

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `sku` | string | no | The item's SKU. 1 to 64 characters. |  |  |
| `location` | string | no | A location by name. Default: "Main" (made on first use). Up to 120 characters. |  |  |
| `kind` | string | no |  | `"receive"`, `"ship"`, `"transfer"`, `"adjust"`, `"count"` |  |
| `from` | string | no | YYYY-MM-DD (matches ^\\d{4}-\\d{2}-\\d{2}$) |  |  |
| `to` | string | no | YYYY-MM-DD (matches ^\\d{4}-\\d{2}-\\d{2}$) |  |  |
| `limit` | integer | no | 1 to 500. |  | `100` |
| `offset` | integer | no | At least 0. |  | `0` |

## Example

Written for Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff.

MCP: call `inventory_history` on the MCP server `https://api.conecto.chat/mcp/inventory` with these arguments:

```json
{
  "sku": "CHAIR-BISTRO-BLACK",
  "from": "2026-10-01",
  "to": "2026-10-31"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/inventory_history \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku": "CHAIR-BISTRO-BLACK", "from": "2026-10-01", "to": "2026-10-31"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "inventory_history",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.00",
  "balance_usd": "$19.75",
  "result": {
    "moves": [
      {
        "move_id": 4106,
        "date": "2026-10-14",
        "kind": "ship",
        "sku": "CHAIR-BISTRO-BLACK",
        "quantity": "-2",
        "from": "Main",
        "to": null,
        "unit_cost": "165",
        "value": "-330.00",
        "quantity_after": "6",
        "reference": "Order 1001",
        "note": null
      },
      {
        "move_id": 4103,
        "date": "2026-10-14",
        "kind": "receive",
        "sku": "CHAIR-BISTRO-BLACK",
        "quantity": "8",
        "from": null,
        "to": "Main",
        "unit_cost": "165",
        "value": "1320.00",
        "quantity_after": "8",
        "reference": "Delivery 40",
        "note": null
      }
    ],
    "total": 2
  }
}
```

`result`: moves: newest first, each with its move_id, date, kind, SKU, quantity, from, to, unit cost, value, quantity after, reference and note; and the total.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No location has that name. | Call inventory_locations, or add it with inventory_save_location. |
| `archived` | 409 | The item or location is archived. | Use another one, or name a location that is in use. |
| `not_found` | 404 | No item has that SKU. | Find it with inventory_list_items. |
| `invalid_input` | 400 | A date is not a date like 2026-10-01. | Fix the date. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [inventory_save_items](https://conecto.chat/tools/inventory/inventory_save_items.md): Adds stock items or changes them by SKU: name, unit, barcode, cost, price and reorder point. $0.005 per item saved.
- [inventory_list_items](https://conecto.chat/tools/inventory/inventory_list_items.md): Items with their stock in total and per location, the moving-average cost and the value. Free up to 1,000,000 reads a month.
- [inventory_move](https://conecto.chat/tools/inventory/inventory_move.md): Changes stock, all moves or none: receive, ship, transfer between locations, or adjust. $0.005 per move.
- [inventory_stocktake](https://conecto.chat/tools/inventory/inventory_stocktake.md): Records a count of one location; each difference from the books becomes a count move. $0.002 per line counted.
- [inventory_locations](https://conecto.chat/tools/inventory/inventory_locations.md): Every location with how many items it holds and their value. Free up to 1,000,000 reads a month.
- [inventory_save_location](https://conecto.chat/tools/inventory/inventory_save_location.md): Adds a location (a warehouse, a shop, a van), or renames, describes or archives one. $0.001 a call.
- [inventory_report](https://conecto.chat/tools/inventory/inventory_report.md): Valuation (what was held on a day and its value), movement (per item in a period, with the cost of goods shipped) or low stock. Free up to 1,000,000 reads a month.
- [inventory_import](https://conecto.chat/tools/inventory/inventory_import.md): Creates or changes items from a CSV in the file store, with optional quantities per location; all rows or none. $0.001 per row imported.
- [inventory_export](https://conecto.chat/tools/inventory/inventory_export.md): A CSV of the items (per location, with quantities and value) or of the moves in a period, with a download link. $0.001 a call.
