food-orders / #25
- userId
-
Maximus Bosco @maximus_bosco
- restaurantId
- Roob - Fisher · Kuhlmanshire · ★ 3.2
- items
-
[ { "menuItemId": 1230, "quantity": 1, "unitPrice": 3.98, "lineTotal": 3.98 }, { "menuItemId": 1219, "quantity": 3, "unitPrice": 53.57, "lineTotal": 160.71 }, { "menuItemId": 1227, "quantity": 2, "unitPrice": 59.83, "lineTotal": 119.66 }, { "menuItemId": 1223, "quantity": 3, "unitPrice": 49.7, "lineTotal": 149.1 }, { "menuItemId": 1228, "quantity": 2, "unitPrice": 9.71, "lineTotal": 19.42 } ] - subtotal
- 452.87
- deliveryFee
- 2.67
- tip
- 0.38
- total
- 455.92
- currency
- USD
- status
- preparing
- placedAt
- deliveredAt
- —
Component variants
Medium
#25
#25
Small
food-orders/25 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/25" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/25"
);
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/25"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/25"
)
food_order = res.json() {
"id": 25,
"userId": 128,
"restaurantId": 83,
"items": [
{
"menuItemId": 1230,
"quantity": 1,
"unitPrice": 3.98,
"lineTotal": 3.98
},
{
"menuItemId": 1219,
"quantity": 3,
"unitPrice": 53.57,
"lineTotal": 160.71
},
{
"menuItemId": 1227,
"quantity": 2,
"unitPrice": 59.83,
"lineTotal": 119.66
},
{
"menuItemId": 1223,
"quantity": 3,
"unitPrice": 49.7,
"lineTotal": 149.1
},
{
"menuItemId": 1228,
"quantity": 2,
"unitPrice": 9.71,
"lineTotal": 19.42
}
],
"subtotal": 452.87,
"deliveryFee": 2.67,
"tip": 0.38,
"total": 455.92,
"currency": "USD",
"status": "preparing",
"placedAt": "2024-07-24T01:26:28.211Z",
"deliveredAt": null
}