food-orders / #4
- userId
-
Carley Gleichner @carley.gleichner
- restaurantId
- Huel, Stark and Zulauf · Zoiemouth · ★ 2.7
- items
-
[ { "menuItemId": 1003, "quantity": 2, "unitPrice": 28.8, "lineTotal": 57.6 }, { "menuItemId": 1006, "quantity": 4, "unitPrice": 51.33, "lineTotal": 205.32 }, { "menuItemId": 1005, "quantity": 2, "unitPrice": 9.96, "lineTotal": 19.92 } ] - subtotal
- 282.84
- deliveryFee
- 6.49
- tip
- 9.79
- total
- 299.12
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#4
#4
Small
food-orders/4 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/4" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/4"
);
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/4"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/4"
)
food_order = res.json() {
"id": 4,
"userId": 142,
"restaurantId": 67,
"items": [
{
"menuItemId": 1003,
"quantity": 2,
"unitPrice": 28.8,
"lineTotal": 57.6
},
{
"menuItemId": 1006,
"quantity": 4,
"unitPrice": 51.33,
"lineTotal": 205.32
},
{
"menuItemId": 1005,
"quantity": 2,
"unitPrice": 9.96,
"lineTotal": 19.92
}
],
"subtotal": 282.84,
"deliveryFee": 6.49,
"tip": 9.79,
"total": 299.12,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-08-30T22:38:47.647Z",
"deliveredAt": "2025-08-31T01:36:53.252Z"
}