food-orders / #151
- userId
-
Vidal Parker @vidal_parker12
- restaurantId
- Hudson - Lueilwitz · South Lesliefurt · ★ 4.9
- items
-
[ { "menuItemId": 582, "quantity": 1, "unitPrice": 31.32, "lineTotal": 31.32 }, { "menuItemId": 579, "quantity": 2, "unitPrice": 17.49, "lineTotal": 34.98 } ] - subtotal
- 66.3
- deliveryFee
- 1.73
- tip
- 4.9
- total
- 72.93
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#151
#151
Small
food-orders/151 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/151" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/151"
);
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/151"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/151"
)
food_order = res.json() {
"id": 151,
"userId": 203,
"restaurantId": 40,
"items": [
{
"menuItemId": 582,
"quantity": 1,
"unitPrice": 31.32,
"lineTotal": 31.32
},
{
"menuItemId": 579,
"quantity": 2,
"unitPrice": 17.49,
"lineTotal": 34.98
}
],
"subtotal": 66.3,
"deliveryFee": 1.73,
"tip": 4.9,
"total": 72.93,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-03-08T03:06:07.041Z",
"deliveredAt": "2025-03-08T04:32:12.648Z"
}