Zum Inhalt springen
GET /v1/breakeven

Break-even analysis

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/margin-api/v1/breakeven" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/margin-api/v1/breakeven", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/margin-api/v1/breakeven");
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/margin-api/v1/breakeven",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "price": 25,
        "fixed_costs": 10000,
        "variable_cost": 15,
        "break_even_units": 1000,
        "break_even_revenue": 25000,
        "contribution_margin": 10,
        "contribution_margin_ratio": 40,
        "break_even_units_rounded_up": 1000
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:00.902Z",
        "request_id": "ddc2e46d-214e-4e34-a043-62e492e793ae"
    },
    "status": "ok",
    "message": "Break-even analysis",
    "success": true
}