Obtener Niveles de Stock
curl --request GET \
--url https://api.zenflow.com.ar/api/v1/stock \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.zenflow.com.ar/api/v1/stock"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.zenflow.com.ar/api/v1/stock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zenflow.com.ar/api/v1/stock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zenflow.com.ar/api/v1/stock"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zenflow.com.ar/api/v1/stock")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenflow.com.ar/api/v1/stock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyStock
Obtener Niveles de Stock
Obtener niveles de stock con filtros
GET
/
api
/
v1
/
stock
Obtener Niveles de Stock
curl --request GET \
--url https://api.zenflow.com.ar/api/v1/stock \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.zenflow.com.ar/api/v1/stock"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.zenflow.com.ar/api/v1/stock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zenflow.com.ar/api/v1/stock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zenflow.com.ar/api/v1/stock"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zenflow.com.ar/api/v1/stock")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenflow.com.ar/api/v1/stock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyObtener Niveles de Stock
Obtén los niveles de stock de todos los productos y ubicaciones.Requiere scope
read:stock.Solicitud
GET /api/v1/stock
Parámetros de Consulta
integer
default:"1"
Número de página
integer
default:"50"
Items por página (máx 100)
integer
Filtrar por ID de producto
string
Filtrar por ID de ubicación
boolean
Solo mostrar items por debajo del umbral mínimo
string
Buscar por nombre de producto, código de barras o SKU
Ejemplo
curl -X GET "https://api.zenflow.com.ar/api/v1/stock?low_stock=true" \
-H "X-API-Key: zenflow_live_your_key"
Respuesta
{
"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
}
}
}
⌘I

