food-orders / #175
- userId
-
Cassidy Boehm @cassidy_boehm22
- restaurantId
- Hickle, Glover and Christiansen · Zulauffurt · ★ 3.7
- items
-
[ { "menuItemId": 321, "quantity": 1, "unitPrice": 32.11, "lineTotal": 32.11 }, { "menuItemId": 324, "quantity": 4, "unitPrice": 76.31, "lineTotal": 305.24 }, { "menuItemId": 309, "quantity": 3, "unitPrice": 16.34, "lineTotal": 49.02 }, { "menuItemId": 308, "quantity": 2, "unitPrice": 55.81, "lineTotal": 111.62 } ] - subtotal
- 497.99
- deliveryFee
- 2.15
- tip
- 8.03
- total
- 508.17
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#175
#175
Small
food-orders/175 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/175" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/175"
);
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/175"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/175"
)
food_order = res.json() {
"id": 175,
"userId": 204,
"restaurantId": 20,
"items": [
{
"menuItemId": 321,
"quantity": 1,
"unitPrice": 32.11,
"lineTotal": 32.11
},
{
"menuItemId": 324,
"quantity": 4,
"unitPrice": 76.31,
"lineTotal": 305.24
},
{
"menuItemId": 309,
"quantity": 3,
"unitPrice": 16.34,
"lineTotal": 49.02
},
{
"menuItemId": 308,
"quantity": 2,
"unitPrice": 55.81,
"lineTotal": 111.62
}
],
"subtotal": 497.99,
"deliveryFee": 2.15,
"tip": 8.03,
"total": 508.17,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-05-23T03:14:27.044Z",
"deliveredAt": "2024-05-23T04:52:52.496Z"
}