food-orders / #27
- userId
-
Hilda Crooks @hilda_crooks61
- restaurantId
- Murazik - Goodwin · Haneborough · ★ 3.2
- items
-
[ { "menuItemId": 840, "quantity": 3, "unitPrice": 8.79, "lineTotal": 26.37 } ] - subtotal
- 26.37
- deliveryFee
- 4.18
- tip
- 2.34
- total
- 32.89
- currency
- USD
- status
- preparing
- placedAt
- deliveredAt
- —
Component variants
Medium
#27
#27
Small
food-orders/27 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/27" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/27"
);
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/27"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/27"
)
food_order = res.json() {
"id": 27,
"userId": 187,
"restaurantId": 56,
"items": [
{
"menuItemId": 840,
"quantity": 3,
"unitPrice": 8.79,
"lineTotal": 26.37
}
],
"subtotal": 26.37,
"deliveryFee": 4.18,
"tip": 2.34,
"total": 32.89,
"currency": "USD",
"status": "preparing",
"placedAt": "2025-07-25T07:52:29.503Z",
"deliveredAt": null
}