food-orders / #233
- userId
-
Amina King @amina_king41
- restaurantId
- Walker - Botsford · Zulaufburgh · ★ 3.7
- items
-
[ { "menuItemId": 479, "quantity": 2, "unitPrice": 40.31, "lineTotal": 80.62 }, { "menuItemId": 480, "quantity": 2, "unitPrice": 66.92, "lineTotal": 133.84 }, { "menuItemId": 481, "quantity": 1, "unitPrice": 32.94, "lineTotal": 32.94 }, { "menuItemId": 478, "quantity": 4, "unitPrice": 27.27, "lineTotal": 109.08 }, { "menuItemId": 477, "quantity": 4, "unitPrice": 68.24, "lineTotal": 272.96 } ] - subtotal
- 629.44
- deliveryFee
- 7.45
- tip
- 9.4
- total
- 646.29
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#233
#233
Small
food-orders/233 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/233" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/233"
);
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/233"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/233"
)
food_order = res.json() {
"id": 233,
"userId": 2,
"restaurantId": 32,
"items": [
{
"menuItemId": 479,
"quantity": 2,
"unitPrice": 40.31,
"lineTotal": 80.62
},
{
"menuItemId": 480,
"quantity": 2,
"unitPrice": 66.92,
"lineTotal": 133.84
},
{
"menuItemId": 481,
"quantity": 1,
"unitPrice": 32.94,
"lineTotal": 32.94
},
{
"menuItemId": 478,
"quantity": 4,
"unitPrice": 27.27,
"lineTotal": 109.08
},
{
"menuItemId": 477,
"quantity": 4,
"unitPrice": 68.24,
"lineTotal": 272.96
}
],
"subtotal": 629.44,
"deliveryFee": 7.45,
"tip": 9.4,
"total": 646.29,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-12-19T04:18:32.758Z",
"deliveredAt": "2024-12-19T06:24:07.899Z"
}