Naar de inhoud
GET /v1/eoq

Economic order quantity

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/inventory-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}