food-orders / #159
- userId
-
Michale Hilpert @michale_hilpert62
- restaurantId
- Mohr, Treutel and Watsica · East Felipa · ★ 4.6
- items
-
[ { "menuItemId": 402, "quantity": 1, "unitPrice": 42.4, "lineTotal": 42.4 }, { "menuItemId": 401, "quantity": 3, "unitPrice": 33.7, "lineTotal": 101.1 }, { "menuItemId": 406, "quantity": 1, "unitPrice": 29.17, "lineTotal": 29.17 }, { "menuItemId": 400, "quantity": 4, "unitPrice": 3.02, "lineTotal": 12.08 }, { "menuItemId": 413, "quantity": 1, "unitPrice": 57.1, "lineTotal": 57.1 } ] - subtotal
- 241.85
- deliveryFee
- 1.63
- tip
- 4.94
- total
- 248.42
- currency
- USD
- status
- preparing
- placedAt
- deliveredAt
- —
Component variants
Medium
#159
#159
Small
food-orders/159 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/159" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/159"
);
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/159"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/159"
)
food_order = res.json() {
"id": 159,
"userId": 250,
"restaurantId": 27,
"items": [
{
"menuItemId": 402,
"quantity": 1,
"unitPrice": 42.4,
"lineTotal": 42.4
},
{
"menuItemId": 401,
"quantity": 3,
"unitPrice": 33.7,
"lineTotal": 101.1
},
{
"menuItemId": 406,
"quantity": 1,
"unitPrice": 29.17,
"lineTotal": 29.17
},
{
"menuItemId": 400,
"quantity": 4,
"unitPrice": 3.02,
"lineTotal": 12.08
},
{
"menuItemId": 413,
"quantity": 1,
"unitPrice": 57.1,
"lineTotal": 57.1
}
],
"subtotal": 241.85,
"deliveryFee": 1.63,
"tip": 4.94,
"total": 248.42,
"currency": "USD",
"status": "preparing",
"placedAt": "2025-07-27T10:07:01.615Z",
"deliveredAt": null
}