food-orders / #44
- userId
-
Florencio Mohr @florencio_mohr
- restaurantId
- Weimann, Herzog and Wisoky · Grahamberg · ★ 3.2
- items
-
[ { "menuItemId": 1288, "quantity": 3, "unitPrice": 25.49, "lineTotal": 76.47 } ] - subtotal
- 76.47
- deliveryFee
- 7.34
- tip
- 4.15
- total
- 87.96
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#44
#44
Small
food-orders/44 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/44" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/44"
);
const foodOrder = await res.json();import type { FoodOrder } from "https://example-data.com/types/food-orders.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/food-orders/44"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/44"
)
food_order = res.json() {
"id": 44,
"userId": 71,
"restaurantId": 89,
"items": [
{
"menuItemId": 1288,
"quantity": 3,
"unitPrice": 25.49,
"lineTotal": 76.47
}
],
"subtotal": 76.47,
"deliveryFee": 7.34,
"tip": 4.15,
"total": 87.96,
"currency": "USD",
"status": "cancelled",
"placedAt": "2025-04-16T13:57:51.322Z",
"deliveredAt": null
}