Aller au contenu
GET /v1/breakeven

Break-even analysis

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/margin-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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