Check Stock
Check the current available stock for a product SKU in a specific warehouse.
Endpoint
POST https://wms.fulfillio.si/api/v1/stock
Content-Type: application/json
Request
{
"apiKey": "YOUR_API_KEY",
"sku": "MY-SKU-55",
"warehouseCode": "SI-01"
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your secret API key generated in the Fulfillio app |
sku | string | Yes | Product SKU as registered in Fulfillio |
warehouseCode | string | Yes | Fulfillio warehouse code, for example SI-01 |
Code Examples
Node.js (fetch)
const response = await fetch("https://wms.fulfillio.si/api/v1/stock", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
apiKey: process.env.FULFILLIO_API_KEY,
sku: "MY-SKU-55",
warehouseCode: "SI-01",
}),
})
const data = await response.json()
console.log(data)
Python (requests)
import requests
import os
payload = {
"apiKey": os.environ["FULFILLIO_API_KEY"],
"sku": "MY-SKU-55",
"warehouseCode": "SI-01",
}
response = requests.post(
"https://wms.fulfillio.si/api/v1/stock",
json=payload,
)
print(response.json())
PHP (cURL)
<?php
$payload = json_encode([
"apiKey" => getenv("FULFILLIO_API_KEY"),
"sku" => "MY-SKU-55",
"warehouseCode" => "SI-01",
]);
$ch = curl_init("https://wms.fulfillio.si/api/v1/stock");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Response
Success - 200 OK
{
"currentStock": 24,
"warehouseName": "Slovenia Warehouse",
"lastStockUpdatedAt": "2026-05-03T08:15:30.000Z"
}
| Field | Type | Description |
|---|---|---|
currentStock | number | Current available stock for the SKU in the requested warehouse |
warehouseName | string | Name of the requested warehouse |
lastStockUpdatedAt | string or null | Last stock update timestamp in ISO 8601 UTC format, if known |
Validation error - 400 Bad Request
Returned when required fields are missing or invalid:
{
"message": "Bad request",
"issues": [
{
"code": "too_small",
"path": ["sku"],
"message": "SKU is missing"
}
]
}
Invalid API key - 401 Unauthorized
{ "message": "Unauthorized" }
Product not found - 404 Not Found
{ "message": "Product not found" }
Warehouse not found - 404 Not Found
{ "message": "Warehouse not found" }
Notes
- If the product exists but has no inventory row in the requested warehouse,
currentStockis returned as0andlastStockUpdatedAtis returned asnull. lastStockUpdatedAtis returned as an ISO 8601 UTC timestamp.