---
title: "Inventory histories"
method: GET
path: "/shops/{SHOP_ID}/inventory_histories"
tags: ["Warehouse"]
---

# Inventory histories

`GET /shops/{SHOP_ID}/inventory_histories`

Get inventory history

## Path parameters

- `SHOP_ID` integer, required

## Query parameters

- `page` integer, required
- `page_size` integer, required
- `warehouse_id` string
- `variation_ids[]` string[]
- `startDate` integer
- `endDate` integer

## Response `200`

Success

- object
  - `data` object[] — List of inventory histories
    - `avg_price` integer — Average import price
    - `current_inventory` object[] — Current inventory information
      - `actual_remain_quantity` integer — Actual remain quantity
      - `avg_price` number — Average price
      - `id` string — Warehouse ID
      - `name` string — Warehouse name
      - `remain_quantity` integer — Remain quantity
      - `total_quantity` integer — Total quantity
    - `editor_id` string — Updated employee ID
    - `id` integer — Inventory history ID
    - `inserted_at` string, date-time — Inserted at
    - `quantity` integer — Change quantity
    - `ref_display_id` string — Reference display ID
    - `remain_quantity` integer — In stock
    - `table_name` string — Table name
    - `type` string — Type
    - `variation_now` object — Variation information
      - `barcode` string
      - `display_id` string
      - `fields` object[]
        - `id` string
        - `keyValue` string
        - `name` string
        - `value` string
      - `id` string
      - `images` string[]
      - `is_hidden` boolean
      - `is_locked` boolean
      - `is_sell_negative_variation` boolean
      - `last_imported_price` integer
      - `product_id` string
      - `retail_price` integer
      - `weight` integer
    - `warehouse` object — Warehouse change inventory
      - `custom_id` string
      - `ffm_id` string
      - `full_address` string
      - `id` string
      - `name` string
      - `phone_number` string
  - `page_number` integer — Page number
  - `page_size` integer — Page size
  - `success` boolean — Success status
  - `total_entries` integer — Total entries
  - `total_pages` integer — Total pages

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pancake/pancake-pos-open-api/revisions/acb70aa4b3f5/schema)
