food-orders / #5
- userId
-
Autumn Bartell @autumn.bartell95
- restaurantId
- Durgan Group · Fort Collins · ★ 3.1
- items
-
[ { "menuItemId": 50, "quantity": 4, "unitPrice": 34.46, "lineTotal": 137.84 }, { "menuItemId": 48, "quantity": 2, "unitPrice": 57.67, "lineTotal": 115.34 } ] - subtotal
- 253.18
- deliveryFee
- 0.6
- tip
- 10.2
- total
- 263.98
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#5
#5
Small
food-orders/5 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/5" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/5"
);
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/5"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/5"
)
food_order = res.json() {
"id": 5,
"userId": 58,
"restaurantId": 5,
"items": [
{
"menuItemId": 50,
"quantity": 4,
"unitPrice": 34.46,
"lineTotal": 137.84
},
{
"menuItemId": 48,
"quantity": 2,
"unitPrice": 57.67,
"lineTotal": 115.34
}
],
"subtotal": 253.18,
"deliveryFee": 0.6,
"tip": 10.2,
"total": 263.98,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-04-21T12:42:51.908Z",
"deliveredAt": "2025-04-21T15:58:08.417Z"
}