Stock Movement History API

Retrieve warehouse stock movements and history — itemized, aggregated, and statistical views

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.

GET /api/stock_history/get

Retrieve a single stock movement item by ID.

Query parameters

ParameterTypeRequiredDescription
idintUnique ID of the movement item

Example request

GET /api/stock_history/get?id=200
X-API-KEY: {your_api_key}
GET /api/stock_history/list

Retrieve a paginated list of stock movements with filtering options.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_condition[product_id]intFilter by product ID
list_condition[store_id]intFilter by warehouse ID

Example request

GET /api/stock_history/list?list_offset=0&list_condition[store_id]=1
X-API-KEY: {your_api_key}
GET /api/stock_history/list_full

Full list of stock movements with detailed document and product information.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_condition[product_id]intFilter by product ID
list_condition[store_id]intFilter by warehouse ID

Example request

GET /api/stock_history/list_full?list_condition[product_id]=5
X-API-KEY: {your_api_key}
GET /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}

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!