food-orders / #171
- userId
-
Niko Wisozk @niko_wisozk
- restaurantId
- Walsh LLC · Predovicville · ★ 4.8
- items
-
[ { "menuItemId": 1450, "quantity": 3, "unitPrice": 40.3, "lineTotal": 120.9 }, { "menuItemId": 1444, "quantity": 1, "unitPrice": 60.6, "lineTotal": 60.6 } ] - subtotal
- 181.5
- deliveryFee
- 5.47
- tip
- 9.53
- total
- 196.5
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#171
#171
Small
food-orders/171 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/171" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/171"
);
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/171"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/171"
)
food_order = res.json() {
"id": 171,
"userId": 56,
"restaurantId": 100,
"items": [
{
"menuItemId": 1450,
"quantity": 3,
"unitPrice": 40.3,
"lineTotal": 120.9
},
{
"menuItemId": 1444,
"quantity": 1,
"unitPrice": 60.6,
"lineTotal": 60.6
}
],
"subtotal": 181.5,
"deliveryFee": 5.47,
"tip": 9.53,
"total": 196.5,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-03-24T21:34:59.357Z",
"deliveredAt": "2025-03-25T00:12:40.277Z"
}