cURL
curl --request GET \ --url https://api.zenflow.com.ar/api/v1/stock/sku/{sku} \ --header 'X-API-Key: <api-key>'
Get stock levels for a product by SKU
read:stock
GET /api/v1/stock/sku/{sku}
curl -X GET "https://api.zenflow.com.ar/api/v1/stock/sku/SKU-001" \ -H "X-API-Key: zenflow_live_your_key"
{ "success": true, "data": { "product_id": 100, "sku": "SKU-001", "product_name": "Widget A", "total_quantity": 75, "locations": [ { "location_id": "LOC-A1", "quantity": 50 }, { "location_id": "LOC-B1", "quantity": 25 } ] } }
{ "success": false, "error": { "code": "not_found", "message": "Product not found" } }