Base URL
https://{tenant}.logzi.com/api/stock_history/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. The stock movement history is read-only — entries are generated automatically when a document is closed.
/api/stock_history/get
Retrieve a single stock movement item by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique ID of the movement item |
Example request
GET /api/stock_history/get?id=200
X-API-KEY: {your_api_key}
/api/stock_history/list
Retrieve a paginated list of stock movements with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition[product_id] | int | Filter by product ID | |
list_condition[store_id] | int | Filter by warehouse ID |
Example request
GET /api/stock_history/list?list_offset=0&list_condition[store_id]=1
X-API-KEY: {your_api_key}
/api/stock_history/list_full
Full list of stock movements with detailed document and product information.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition[product_id] | int | Filter by product ID | |
list_condition[store_id] | int | Filter by warehouse ID |
Example request
GET /api/stock_history/list_full?list_condition[product_id]=5
X-API-KEY: {your_api_key}
/api/stock_history/statistic
Aggregated stock movement statistics: total count, received and issued quantities.
Can be called without parameters — returns aggregated totals for all movements (count_all, quantity_all, quantity_in, quantity_out).
Example request
GET /api/stock_history/statistic
X-API-KEY: {your_api_key}
Create your account now,
pay later!