food-orders / #42
- userId
-
Webster Skiles @webster_skiles39
- restaurantId
- Thiel and Sons · Shyanneville · ★ 4.0
- items
-
[ { "menuItemId": 1413, "quantity": 2, "unitPrice": 10.43, "lineTotal": 20.86 }, { "menuItemId": 1411, "quantity": 1, "unitPrice": 75.28, "lineTotal": 75.28 }, { "menuItemId": 1410, "quantity": 3, "unitPrice": 61.31, "lineTotal": 183.93 } ] - subtotal
- 280.07
- deliveryFee
- 5.65
- tip
- 4.94
- total
- 290.66
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#42
#42
Small
food-orders/42 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/42" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/42"
);
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/42"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/42"
)
food_order = res.json() {
"id": 42,
"userId": 5,
"restaurantId": 97,
"items": [
{
"menuItemId": 1413,
"quantity": 2,
"unitPrice": 10.43,
"lineTotal": 20.86
},
{
"menuItemId": 1411,
"quantity": 1,
"unitPrice": 75.28,
"lineTotal": 75.28
},
{
"menuItemId": 1410,
"quantity": 3,
"unitPrice": 61.31,
"lineTotal": 183.93
}
],
"subtotal": 280.07,
"deliveryFee": 5.65,
"tip": 4.94,
"total": 290.66,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-07-29T03:45:52.008Z",
"deliveredAt": "2025-07-29T07:40:20.566Z"
}