← All tool references

Business Tools · not_available

Economic Order Quantity Calculator

Estimate the order quantity that balances ordering and holding costs.

Open public tool

Overview

Category
Business Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/economic-order-quantity-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/economic-order-quantity-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

annual_demand · number · required
Enter annual demand.
ordering_cost · number · required
Enter cost per order.
holding_cost · number · required
Enter annual holding cost per unit.
{
    "type": "object",
    "properties": {
        "annual_demand": {
            "type": "number",
            "description": "Enter annual demand."
        },
        "ordering_cost": {
            "type": "number",
            "description": "Enter cost per order.",
            "minimum": 0
        },
        "holding_cost": {
            "type": "number",
            "description": "Enter annual holding cost per unit.",
            "minimum": 0
        }
    },
    "required": [
        "annual_demand",
        "ordering_cost",
        "holding_cost"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

eoq · number
Economic order quantity produced by the tool.
orders_per_year · number
Orders per year produced by the tool.
annual_relevant_cost · number
Annual ordering plus holding cost produced by the tool.
{
    "type": "object",
    "properties": {
        "eoq": {
            "type": "number",
            "description": "Economic order quantity produced by the tool."
        },
        "orders_per_year": {
            "type": "number",
            "description": "Orders per year produced by the tool."
        },
        "annual_relevant_cost": {
            "type": "number",
            "description": "Annual ordering plus holding cost produced by the tool."
        }
    },
    "additionalProperties": false
}

Economic Order Quantity Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/economic-order-quantity-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "annual_demand": 12000,
    "ordering_cost": 45,
    "holding_cost": 3.20000000000000017763568394002504646778106689453125
}'
{
    "ok": true,
    "data": {
        "slug": "economic-order-quantity-calculator",
        "result": {
            "values": {
                "eoq": 581,
                "orders_per_year": 20.655910999999999688725438318215310573577880859375,
                "annual_relevant_cost": 1859.029999999999972715158946812152862548828125
            },
            "display": {
                "display": "581"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.