food-orders / #226
- userId
-
Roma Durgan @roma.durgan
- restaurantId
- Hayes - McDermott · Lake Tanya · ★ 2.5
- items
-
[ { "menuItemId": 1014, "quantity": 4, "unitPrice": 31.24, "lineTotal": 124.96 }, { "menuItemId": 1023, "quantity": 2, "unitPrice": 18.52, "lineTotal": 37.04 }, { "menuItemId": 1019, "quantity": 3, "unitPrice": 5.08, "lineTotal": 15.24 } ] - subtotal
- 177.24
- deliveryFee
- 1.67
- tip
- 1.1
- total
- 180.01
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#226
#226
Small
food-orders/226 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/226" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/226"
);
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/226"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/226"
)
food_order = res.json() {
"id": 226,
"userId": 215,
"restaurantId": 68,
"items": [
{
"menuItemId": 1014,
"quantity": 4,
"unitPrice": 31.24,
"lineTotal": 124.96
},
{
"menuItemId": 1023,
"quantity": 2,
"unitPrice": 18.52,
"lineTotal": 37.04
},
{
"menuItemId": 1019,
"quantity": 3,
"unitPrice": 5.08,
"lineTotal": 15.24
}
],
"subtotal": 177.24,
"deliveryFee": 1.67,
"tip": 1.1,
"total": 180.01,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-07-30T10:56:10.832Z",
"deliveredAt": "2025-07-30T14:00:22.352Z"
}