food-orders / #181
- userId
-
Brad Wisoky @brad.wisoky41
- restaurantId
- Schoen, Rice and Koss · South Danielabury · ★ 3.6
- items
-
[ { "menuItemId": 1100, "quantity": 4, "unitPrice": 61.51, "lineTotal": 246.04 }, { "menuItemId": 1095, "quantity": 1, "unitPrice": 52.13, "lineTotal": 52.13 }, { "menuItemId": 1096, "quantity": 3, "unitPrice": 37.22, "lineTotal": 111.66 }, { "menuItemId": 1097, "quantity": 3, "unitPrice": 24.96, "lineTotal": 74.88 } ] - subtotal
- 484.71
- deliveryFee
- 3.64
- tip
- 0.6
- total
- 488.95
- currency
- USD
- status
- out_for_delivery
- placedAt
- deliveredAt
- —
Component variants
Medium
#181
#181
Small
food-orders/181 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/181" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/181"
);
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/181"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/181"
)
food_order = res.json() {
"id": 181,
"userId": 154,
"restaurantId": 74,
"items": [
{
"menuItemId": 1100,
"quantity": 4,
"unitPrice": 61.51,
"lineTotal": 246.04
},
{
"menuItemId": 1095,
"quantity": 1,
"unitPrice": 52.13,
"lineTotal": 52.13
},
{
"menuItemId": 1096,
"quantity": 3,
"unitPrice": 37.22,
"lineTotal": 111.66
},
{
"menuItemId": 1097,
"quantity": 3,
"unitPrice": 24.96,
"lineTotal": 74.88
}
],
"subtotal": 484.71,
"deliveryFee": 3.64,
"tip": 0.6,
"total": 488.95,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2024-10-04T17:36:57.599Z",
"deliveredAt": null
}