food-orders / #6
- userId
-
Carroll Wisozk @carroll_wisozk
- restaurantId
- Gerhold - Dietrich · North Joshua · ★ 4.9
- items
-
[ { "menuItemId": 951, "quantity": 2, "unitPrice": 62.14, "lineTotal": 124.28 }, { "menuItemId": 946, "quantity": 4, "unitPrice": 69.88, "lineTotal": 279.52 }, { "menuItemId": 962, "quantity": 4, "unitPrice": 60.65, "lineTotal": 242.6 }, { "menuItemId": 948, "quantity": 1, "unitPrice": 63.65, "lineTotal": 63.65 } ] - subtotal
- 710.05
- deliveryFee
- 0.85
- tip
- 4.19
- total
- 715.09
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#6
#6
Small
food-orders/6 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/6" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/6"
);
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/6"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/6"
)
food_order = res.json() {
"id": 6,
"userId": 210,
"restaurantId": 63,
"items": [
{
"menuItemId": 951,
"quantity": 2,
"unitPrice": 62.14,
"lineTotal": 124.28
},
{
"menuItemId": 946,
"quantity": 4,
"unitPrice": 69.88,
"lineTotal": 279.52
},
{
"menuItemId": 962,
"quantity": 4,
"unitPrice": 60.65,
"lineTotal": 242.6
},
{
"menuItemId": 948,
"quantity": 1,
"unitPrice": 63.65,
"lineTotal": 63.65
}
],
"subtotal": 710.05,
"deliveryFee": 0.85,
"tip": 4.19,
"total": 715.09,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-09-27T17:48:35.505Z",
"deliveredAt": "2024-09-27T20:39:01.238Z"
}