food-orders / #39
- userId
-
Izaiah Rempel @izaiah_rempel
- restaurantId
- Goldner - Labadie · Kylechester · ★ 3.3
- items
-
[ { "menuItemId": 977, "quantity": 4, "unitPrice": 21.49, "lineTotal": 85.96 }, { "menuItemId": 972, "quantity": 4, "unitPrice": 5.47, "lineTotal": 21.88 } ] - subtotal
- 107.84
- deliveryFee
- 5.5
- tip
- 6.78
- total
- 120.12
- currency
- USD
- status
- preparing
- placedAt
- deliveredAt
- —
Component variants
Medium
#39
#39
Small
food-orders/39 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/39" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/39"
);
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/39"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/39"
)
food_order = res.json() {
"id": 39,
"userId": 31,
"restaurantId": 65,
"items": [
{
"menuItemId": 977,
"quantity": 4,
"unitPrice": 21.49,
"lineTotal": 85.96
},
{
"menuItemId": 972,
"quantity": 4,
"unitPrice": 5.47,
"lineTotal": 21.88
}
],
"subtotal": 107.84,
"deliveryFee": 5.5,
"tip": 6.78,
"total": 120.12,
"currency": "USD",
"status": "preparing",
"placedAt": "2025-06-18T18:13:26.680Z",
"deliveredAt": null
}