Stock Limit API

Set minimum, optimal, and maximum stock levels for products

Base URL

https://{tenant}.logzi.com/api/stock_limit/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The stock limit stores the min/opt/max values set for a product — the basis for alerting and replenishment logic.

GET /api/stock_limit/get

Retrieve the stock limit of a single product.

Query parameters

ParameterTypeRequiredDescription
idintProduct identifier

Example request

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

Retrieve a paginated list of stock limits with filtering options.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_condition[product_id]intFilter by product identifier

Example request

GET /api/stock_limit/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/stock_limit/save

Set or update the stock limits of a product. It identifies the product by product_id and updates the min/opt/max values.

POST fields — data object

FieldTypeRequiredDescription
product_idintThe product's identifier
quantity_minfloatMinimum stock level (alert threshold)
quantity_optfloatOptimal (recommended) stock level
quantity_maxfloatMaximum stock level

Example request

POST /api/stock_limit/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{
  "data": {
    "product_id": 5,
    "quantity_min": 10,
    "quantity_opt": 50,
    "quantity_max": 200
  }
}

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!