/v1/plate
Menu pricing & food-cost %
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/foodcost-api/v1/plate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/foodcost-api/v1/plate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/foodcost-api/v1/plate");
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/foodcost-api/v1/plate",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Menu price = plate cost / target food-cost %. A 30% target means a 3.33x markup. Prime cost (food + labour) under ~60% of sales is the usual benchmark.",
"inputs": {
"plate_cost": 1.25
},
"gross_profit": 2.92,
"markup_factor": 3.3333,
"gross_margin_percent": 70,
"suggested_menu_price": 4.17,
"target_food_cost_percent": 30
},
"meta": {
"timestamp": "2026-06-05T21:48:47.898Z",
"request_id": "50874672-2d72-490d-8baa-d16dd4acf4c2"
},
"status": "ok",
"message": "Plate pricing",
"success": true
}