food-orders / #114
- userId
-
Cassidy Price-Schimmel @cassidy.price-schimmel
- restaurantId
- Simonis, Reynolds and Harber · Dahliastead · ★ 3.5
- items
-
[ { "menuItemId": 267, "quantity": 3, "unitPrice": 20.34, "lineTotal": 61.02 }, { "menuItemId": 259, "quantity": 2, "unitPrice": 71.02, "lineTotal": 142.04 }, { "menuItemId": 261, "quantity": 1, "unitPrice": 24.62, "lineTotal": 24.62 }, { "menuItemId": 256, "quantity": 4, "unitPrice": 6.93, "lineTotal": 27.72 }, { "menuItemId": 273, "quantity": 2, "unitPrice": 59.36, "lineTotal": 118.72 } ] - subtotal
- 374.12
- deliveryFee
- 0.8
- tip
- 5.22
- total
- 380.14
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#114
#114
Small
food-orders/114 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/114" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/114"
);
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/114"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/114"
)
food_order = res.json() {
"id": 114,
"userId": 227,
"restaurantId": 17,
"items": [
{
"menuItemId": 267,
"quantity": 3,
"unitPrice": 20.34,
"lineTotal": 61.02
},
{
"menuItemId": 259,
"quantity": 2,
"unitPrice": 71.02,
"lineTotal": 142.04
},
{
"menuItemId": 261,
"quantity": 1,
"unitPrice": 24.62,
"lineTotal": 24.62
},
{
"menuItemId": 256,
"quantity": 4,
"unitPrice": 6.93,
"lineTotal": 27.72
},
{
"menuItemId": 273,
"quantity": 2,
"unitPrice": 59.36,
"lineTotal": 118.72
}
],
"subtotal": 374.12,
"deliveryFee": 0.8,
"tip": 5.22,
"total": 380.14,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-01-02T09:46:59.285Z",
"deliveredAt": "2025-01-02T12:13:58.750Z"
}