food-orders / #38
- userId
-
Aaron Fritsch @aaron.fritsch
- restaurantId
- Macejkovic - Lehner · Petertown · ★ 4.3
- items
-
[ { "menuItemId": 731, "quantity": 3, "unitPrice": 7.94, "lineTotal": 23.82 } ] - subtotal
- 23.82
- deliveryFee
- 5.28
- tip
- 5.36
- total
- 34.46
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#38
#38
Small
food-orders/38 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/38" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/38"
);
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/38"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/38"
)
food_order = res.json() {
"id": 38,
"userId": 124,
"restaurantId": 48,
"items": [
{
"menuItemId": 731,
"quantity": 3,
"unitPrice": 7.94,
"lineTotal": 23.82
}
],
"subtotal": 23.82,
"deliveryFee": 5.28,
"tip": 5.36,
"total": 34.46,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-03-01T22:15:07.336Z",
"deliveredAt": "2025-03-02T02:00:54.493Z"
}