food-orders / #74
- userId
-
Rupert Lebsack @rupert.lebsack
- restaurantId
- Greenfelder LLC · Jaydentown · ★ 3.2
- items
-
[ { "menuItemId": 184, "quantity": 1, "unitPrice": 77.13, "lineTotal": 77.13 }, { "menuItemId": 182, "quantity": 3, "unitPrice": 26.93, "lineTotal": 80.79 }, { "menuItemId": 183, "quantity": 3, "unitPrice": 14.2, "lineTotal": 42.6 }, { "menuItemId": 186, "quantity": 1, "unitPrice": 64.97, "lineTotal": 64.97 } ] - subtotal
- 265.49
- deliveryFee
- 1.44
- tip
- 6.6
- total
- 273.53
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#74
#74
Small
food-orders/74 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/74" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/74"
);
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/74"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/74"
)
food_order = res.json() {
"id": 74,
"userId": 249,
"restaurantId": 13,
"items": [
{
"menuItemId": 184,
"quantity": 1,
"unitPrice": 77.13,
"lineTotal": 77.13
},
{
"menuItemId": 182,
"quantity": 3,
"unitPrice": 26.93,
"lineTotal": 80.79
},
{
"menuItemId": 183,
"quantity": 3,
"unitPrice": 14.2,
"lineTotal": 42.6
},
{
"menuItemId": 186,
"quantity": 1,
"unitPrice": 64.97,
"lineTotal": 64.97
}
],
"subtotal": 265.49,
"deliveryFee": 1.44,
"tip": 6.6,
"total": 273.53,
"currency": "USD",
"status": "cancelled",
"placedAt": "2025-06-07T17:42:41.169Z",
"deliveredAt": null
}