/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/breakeven-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/breakeven-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/breakeven-api/v1/meta");
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/breakeven-api/v1/meta",
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": {
"notes": "All money values in the same currency; units are whole products in practice (results may be fractional). Single-product CVP model with linear costs.",
"service": "breakeven-api",
"formulae": {
"target": "units = (fixed + target_profit) / CM",
"break_even": "units = fixed / CM",
"contribution": "CM = price − variable_cost",
"margin_of_safety": "MOS = actual − break-even"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/target": "Units and revenue needed to reach a target profit.",
"GET /v1/breakeven": "Break-even units and revenue, with the contribution margin and ratio.",
"GET /v1/margin-of-safety": "Margin of safety and profit at an actual sales level."
},
"description": "Break-even and cost-volume-profit calculator: break-even point, units for a target profit, and margin of safety."
},
"meta": {
"timestamp": "2026-06-04T18:38:19.249Z",
"request_id": "62fd056f-e7b6-4c2f-b595-505d27ea173f"
},
"status": "ok",
"message": "Meta",
"success": true
}