food-orders / #208
- userId
-
Merl Jenkins @merl.jenkins6
- restaurantId
- Armstrong - Rau · Uptonshire · ★ 3.9
- items
-
[ { "menuItemId": 1039, "quantity": 4, "unitPrice": 39.51, "lineTotal": 158.04 }, { "menuItemId": 1035, "quantity": 2, "unitPrice": 8.65, "lineTotal": 17.3 }, { "menuItemId": 1031, "quantity": 2, "unitPrice": 77.19, "lineTotal": 154.38 }, { "menuItemId": 1036, "quantity": 4, "unitPrice": 18.92, "lineTotal": 75.68 }, { "menuItemId": 1033, "quantity": 2, "unitPrice": 14.36, "lineTotal": 28.72 } ] - subtotal
- 434.12
- deliveryFee
- 7.32
- tip
- 6.07
- total
- 447.51
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#208
#208
Small
food-orders/208 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/208" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/208"
);
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/208"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/208"
)
food_order = res.json() {
"id": 208,
"userId": 60,
"restaurantId": 69,
"items": [
{
"menuItemId": 1039,
"quantity": 4,
"unitPrice": 39.51,
"lineTotal": 158.04
},
{
"menuItemId": 1035,
"quantity": 2,
"unitPrice": 8.65,
"lineTotal": 17.3
},
{
"menuItemId": 1031,
"quantity": 2,
"unitPrice": 77.19,
"lineTotal": 154.38
},
{
"menuItemId": 1036,
"quantity": 4,
"unitPrice": 18.92,
"lineTotal": 75.68
},
{
"menuItemId": 1033,
"quantity": 2,
"unitPrice": 14.36,
"lineTotal": 28.72
}
],
"subtotal": 434.12,
"deliveryFee": 7.32,
"tip": 6.07,
"total": 447.51,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-09-25T17:32:41.579Z",
"deliveredAt": "2024-09-25T19:43:06.320Z"
}