food-orders / #34
- userId
-
Conner Bernhard @conner.bernhard33
- restaurantId
- Ortiz, Torp and Howell · Fort Devanside · ★ 2.9
- items
-
[ { "menuItemId": 78, "quantity": 3, "unitPrice": 78.59, "lineTotal": 235.77 }, { "menuItemId": 70, "quantity": 3, "unitPrice": 49, "lineTotal": 147 }, { "menuItemId": 79, "quantity": 2, "unitPrice": 20.75, "lineTotal": 41.5 } ] - subtotal
- 424.27
- deliveryFee
- 2.94
- tip
- 3.23
- total
- 430.44
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#34
#34
Small
food-orders/34 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/34" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/34"
);
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/34"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/34"
)
food_order = res.json() {
"id": 34,
"userId": 3,
"restaurantId": 7,
"items": [
{
"menuItemId": 78,
"quantity": 3,
"unitPrice": 78.59,
"lineTotal": 235.77
},
{
"menuItemId": 70,
"quantity": 3,
"unitPrice": 49,
"lineTotal": 147
},
{
"menuItemId": 79,
"quantity": 2,
"unitPrice": 20.75,
"lineTotal": 41.5
}
],
"subtotal": 424.27,
"deliveryFee": 2.94,
"tip": 3.23,
"total": 430.44,
"currency": "USD",
"status": "placed",
"placedAt": "2024-10-15T08:13:46.496Z",
"deliveredAt": null
}