Overview
- Category
- Business Tools
- API mode
execute- 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/break-even-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/break-even-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.
fixed_costs· number · required- Enter costs that do not change with unit sales during the period you are modeling.
price_per_unit· number · required- Enter the sale price charged for one unit, before subtracting unit costs.
variable_cost_per_unit· number · required- Enter the direct cost that rises with each additional unit sold.
{
"type": "object",
"properties": {
"fixed_costs": {
"type": "number",
"description": "Enter costs that do not change with unit sales during the period you are modeling."
},
"price_per_unit": {
"type": "number",
"description": "Enter the sale price charged for one unit, before subtracting unit costs."
},
"variable_cost_per_unit": {
"type": "number",
"description": "Enter the direct cost that rises with each additional unit sold."
}
},
"required": [
"fixed_costs",
"price_per_unit",
"variable_cost_per_unit"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
break_even_units· number- Units needed to break even.
break_even_revenue· number- Revenue at break-even.
contribution_margin· number- Browser-calculated contribution margin.
{
"type": "object",
"properties": {
"break_even_units": {
"type": "number",
"description": "Units needed to break even."
},
"break_even_revenue": {
"type": "number",
"description": "Revenue at break-even."
},
"contribution_margin": {
"type": "number",
"description": "Browser-calculated contribution margin."
}
},
"additionalProperties": false
}
Break-Even Calculator: Basic break-even
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/break-even-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"fixed_costs": 10000,
"price_per_unit": 50,
"variable_cost_per_unit": 30
}'
{
"ok": true,
"data": {
"slug": "break-even-calculator",
"result": {
"values": {
"break_even_units": 500,
"break_even_revenue": 25000,
"contribution_margin": 20
},
"display": {
"display": "500"
},
"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.