food-orders / #140
- userId
-
Alexander Beahan @alexander.beahan57
- restaurantId
- Aufderhar - Johns · East Lorenside · ★ 4.5
- items
-
[ { "menuItemId": 1424, "quantity": 3, "unitPrice": 65.44, "lineTotal": 196.32 }, { "menuItemId": 1429, "quantity": 4, "unitPrice": 27.08, "lineTotal": 108.32 }, { "menuItemId": 1428, "quantity": 2, "unitPrice": 48.68, "lineTotal": 97.36 }, { "menuItemId": 1417, "quantity": 4, "unitPrice": 20.71, "lineTotal": 82.84 } ] - subtotal
- 484.84
- deliveryFee
- 0.2
- tip
- 5.85
- total
- 490.89
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#140
#140
Small
food-orders/140 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/140" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/140"
);
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/140"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/140"
)
food_order = res.json() {
"id": 140,
"userId": 169,
"restaurantId": 98,
"items": [
{
"menuItemId": 1424,
"quantity": 3,
"unitPrice": 65.44,
"lineTotal": 196.32
},
{
"menuItemId": 1429,
"quantity": 4,
"unitPrice": 27.08,
"lineTotal": 108.32
},
{
"menuItemId": 1428,
"quantity": 2,
"unitPrice": 48.68,
"lineTotal": 97.36
},
{
"menuItemId": 1417,
"quantity": 4,
"unitPrice": 20.71,
"lineTotal": 82.84
}
],
"subtotal": 484.84,
"deliveryFee": 0.2,
"tip": 5.85,
"total": 490.89,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-01-12T08:01:08.158Z",
"deliveredAt": "2025-01-12T09:32:32.944Z"
}