food-orders / #115
- userId
-
Alvena Emmerich @alvena_emmerich52
- restaurantId
- Klocko, Gusikowski and Lockman · Lake Vern · ★ 2.9
- items
-
[ { "menuItemId": 1339, "quantity": 4, "unitPrice": 5.4, "lineTotal": 21.6 }, { "menuItemId": 1331, "quantity": 3, "unitPrice": 31.3, "lineTotal": 93.9 }, { "menuItemId": 1336, "quantity": 2, "unitPrice": 18.42, "lineTotal": 36.84 }, { "menuItemId": 1340, "quantity": 3, "unitPrice": 7.03, "lineTotal": 21.09 } ] - subtotal
- 173.43
- deliveryFee
- 4.14
- tip
- 0.4
- total
- 177.97
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#115
#115
Small
food-orders/115 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/115" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/115"
);
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/115"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/115"
)
food_order = res.json() {
"id": 115,
"userId": 8,
"restaurantId": 92,
"items": [
{
"menuItemId": 1339,
"quantity": 4,
"unitPrice": 5.4,
"lineTotal": 21.6
},
{
"menuItemId": 1331,
"quantity": 3,
"unitPrice": 31.3,
"lineTotal": 93.9
},
{
"menuItemId": 1336,
"quantity": 2,
"unitPrice": 18.42,
"lineTotal": 36.84
},
{
"menuItemId": 1340,
"quantity": 3,
"unitPrice": 7.03,
"lineTotal": 21.09
}
],
"subtotal": 173.43,
"deliveryFee": 4.14,
"tip": 0.4,
"total": 177.97,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-07-28T05:04:37.098Z",
"deliveredAt": "2024-07-28T06:49:22.754Z"
}