food-orders / #87
- userId
-
Karolann Legros @karolann_legros
- restaurantId
- Hills Group · North Jaylincester · ★ 2.5
- items
-
[ { "menuItemId": 965, "quantity": 2, "unitPrice": 63.76, "lineTotal": 127.52 }, { "menuItemId": 964, "quantity": 2, "unitPrice": 9.01, "lineTotal": 18.02 }, { "menuItemId": 966, "quantity": 4, "unitPrice": 30.7, "lineTotal": 122.8 }, { "menuItemId": 969, "quantity": 4, "unitPrice": 5.91, "lineTotal": 23.64 } ] - subtotal
- 291.98
- deliveryFee
- 3.84
- tip
- 6.58
- total
- 302.4
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#87
#87
Small
food-orders/87 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/87" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/87"
);
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/87"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/87"
)
food_order = res.json() {
"id": 87,
"userId": 246,
"restaurantId": 64,
"items": [
{
"menuItemId": 965,
"quantity": 2,
"unitPrice": 63.76,
"lineTotal": 127.52
},
{
"menuItemId": 964,
"quantity": 2,
"unitPrice": 9.01,
"lineTotal": 18.02
},
{
"menuItemId": 966,
"quantity": 4,
"unitPrice": 30.7,
"lineTotal": 122.8
},
{
"menuItemId": 969,
"quantity": 4,
"unitPrice": 5.91,
"lineTotal": 23.64
}
],
"subtotal": 291.98,
"deliveryFee": 3.84,
"tip": 6.58,
"total": 302.4,
"currency": "USD",
"status": "cancelled",
"placedAt": "2025-05-20T20:55:48.832Z",
"deliveredAt": null
}