food-orders / #158
- userId
-
Cruz Okuneva @cruz.okuneva
- restaurantId
- Blanda and Sons · New Odashire · ★ 4.1
- items
-
[ { "menuItemId": 885, "quantity": 3, "unitPrice": 55.62, "lineTotal": 166.86 }, { "menuItemId": 893, "quantity": 3, "unitPrice": 34.85, "lineTotal": 104.55 }, { "menuItemId": 904, "quantity": 1, "unitPrice": 20.3, "lineTotal": 20.3 }, { "menuItemId": 896, "quantity": 2, "unitPrice": 33.57, "lineTotal": 67.14 } ] - subtotal
- 358.85
- deliveryFee
- 0.97
- tip
- 7.03
- total
- 366.85
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#158
#158
Small
food-orders/158 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/158" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/158"
);
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/158"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/158"
)
food_order = res.json() {
"id": 158,
"userId": 239,
"restaurantId": 59,
"items": [
{
"menuItemId": 885,
"quantity": 3,
"unitPrice": 55.62,
"lineTotal": 166.86
},
{
"menuItemId": 893,
"quantity": 3,
"unitPrice": 34.85,
"lineTotal": 104.55
},
{
"menuItemId": 904,
"quantity": 1,
"unitPrice": 20.3,
"lineTotal": 20.3
},
{
"menuItemId": 896,
"quantity": 2,
"unitPrice": 33.57,
"lineTotal": 67.14
}
],
"subtotal": 358.85,
"deliveryFee": 0.97,
"tip": 7.03,
"total": 366.85,
"currency": "USD",
"status": "cancelled",
"placedAt": "2026-05-17T10:46:01.080Z",
"deliveredAt": null
}