Zum Inhalt springen
GET /v1/eoq

Economic order quantity

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/inventory-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}