/v1/eoq
Economic order quantity
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/inventory-api/v1/eoq" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inventory-api/v1/eoq", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inventory-api/v1/eoq");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/inventory-api/v1/eoq",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "EOQ = √(2·D·S/H). At the EOQ the annual ordering and holding costs are equal.",
"inputs": {
"holding_cost": 2,
"annual_demand": 10000,
"ordering_cost": 50
},
"orders_per_year": 14.1421,
"total_annual_cost": 1414.2136,
"annual_holding_cost": 707.1068,
"days_between_orders": 25.8094,
"annual_ordering_cost": 707.1068,
"economic_order_quantity": 707.1068
},
"meta": {
"timestamp": "2026-06-04T18:38:18.446Z",
"request_id": "de332b92-30ad-4831-9954-189cc8cf8f52"
},
"status": "ok",
"message": "Economic order quantity",
"success": true
}