food-orders / #94
- userId
-
Karlee MacGyver @karlee_macgyver
- restaurantId
- Hirthe, Klein and Baumbach · North Giles · ★ 4.2
- items
-
[ { "menuItemId": 366, "quantity": 4, "unitPrice": 53.31, "lineTotal": 213.24 }, { "menuItemId": 377, "quantity": 2, "unitPrice": 54.29, "lineTotal": 108.58 }, { "menuItemId": 370, "quantity": 4, "unitPrice": 3.79, "lineTotal": 15.16 }, { "menuItemId": 372, "quantity": 4, "unitPrice": 3.66, "lineTotal": 14.64 }, { "menuItemId": 376, "quantity": 2, "unitPrice": 79.78, "lineTotal": 159.56 } ] - subtotal
- 511.18
- deliveryFee
- 4.73
- tip
- 7.89
- total
- 523.8
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#94
#94
Small
food-orders/94 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/94" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/94"
);
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/94"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/94"
)
food_order = res.json() {
"id": 94,
"userId": 228,
"restaurantId": 24,
"items": [
{
"menuItemId": 366,
"quantity": 4,
"unitPrice": 53.31,
"lineTotal": 213.24
},
{
"menuItemId": 377,
"quantity": 2,
"unitPrice": 54.29,
"lineTotal": 108.58
},
{
"menuItemId": 370,
"quantity": 4,
"unitPrice": 3.79,
"lineTotal": 15.16
},
{
"menuItemId": 372,
"quantity": 4,
"unitPrice": 3.66,
"lineTotal": 14.64
},
{
"menuItemId": 376,
"quantity": 2,
"unitPrice": 79.78,
"lineTotal": 159.56
}
],
"subtotal": 511.18,
"deliveryFee": 4.73,
"tip": 7.89,
"total": 523.8,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-04-26T08:34:05.255Z",
"deliveredAt": "2025-04-26T11:40:21.156Z"
}