/v1/plate
Menu pricing & food-cost %
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}