food-orders / #45
- userId
-
Michale Hilpert @michale_hilpert62
- restaurantId
- Larson Group · Lehnerville · ★ 2.9
- items
-
[ { "menuItemId": 520, "quantity": 4, "unitPrice": 18.41, "lineTotal": 73.64 } ] - subtotal
- 73.64
- deliveryFee
- 1.55
- tip
- 6.63
- total
- 81.82
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#45
#45
Small
food-orders/45 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/45" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/45"
);
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/45"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/45"
)
food_order = res.json() {
"id": 45,
"userId": 250,
"restaurantId": 35,
"items": [
{
"menuItemId": 520,
"quantity": 4,
"unitPrice": 18.41,
"lineTotal": 73.64
}
],
"subtotal": 73.64,
"deliveryFee": 1.55,
"tip": 6.63,
"total": 81.82,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-04-25T04:57:16.885Z",
"deliveredAt": "2025-04-25T06:34:35.772Z"
}