Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/breakeven-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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