Skip to main content
GET
https://api.zenflow.com.ar
/
api
/
v1
/
stock
Get Stock Levels
curl --request GET \
  --url https://api.zenflow.com.ar/api/v1/stock \
  --header 'X-API-Key: <api-key>'

Get Stock Levels

Retrieve stock levels across all products and locations.
Requires read:stock scope.

Request

GET /api/v1/stock

Query Parameters

page
integer
default:"1"
Page number
limit
integer
default:"50"
Items per page (max 100)
product_id
integer
Filter by product ID
location_id
string
Filter by location ID
low_stock
boolean
Only show items below minimum threshold
Search by product name, barcode, or SKU

Example

curl -X GET "https://api.zenflow.com.ar/api/v1/stock?low_stock=true" \
  -H "X-API-Key: zenflow_live_your_key"

Response

{
  "success": true,
  "data": {
    "stock": [
      {
        "product_id": 100,
        "product_name": "Widget A",
        "barcode": "7891234567890",
        "sku": "SKU-001",
        "location_id": "LOC-A1",
        "location_code": "A-01-01",
        "quantity": 50,
        "min_quantity": 10,
        "max_quantity": 100
      },
      {
        "product_id": 101,
        "product_name": "Widget B",
        "barcode": "7891234567891",
        "sku": "SKU-002",
        "location_id": "LOC-A2",
        "location_code": "A-01-02",
        "quantity": 5,
        "min_quantity": 10,
        "max_quantity": 50
      }
    ],
    "pagination": {
      "total": 150,
      "page": 1,
      "limit": 50,
      "total_pages": 3
    }
  }
}