food-orders / #166
- userId
-
Alexa Rippin @alexa_rippin25
- restaurantId
- Aufderhar - Johns · East Lorenside · ★ 4.5
- items
-
[ { "menuItemId": 1429, "quantity": 1, "unitPrice": 27.08, "lineTotal": 27.08 }, { "menuItemId": 1416, "quantity": 4, "unitPrice": 59.95, "lineTotal": 239.8 }, { "menuItemId": 1418, "quantity": 2, "unitPrice": 69.42, "lineTotal": 138.84 }, { "menuItemId": 1423, "quantity": 3, "unitPrice": 73.02, "lineTotal": 219.06 } ] - subtotal
- 624.78
- deliveryFee
- 3.46
- tip
- 8.1
- total
- 636.34
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#166
#166
Small
food-orders/166 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/166" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/166"
);
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/166"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/166"
)
food_order = res.json() {
"id": 166,
"userId": 235,
"restaurantId": 98,
"items": [
{
"menuItemId": 1429,
"quantity": 1,
"unitPrice": 27.08,
"lineTotal": 27.08
},
{
"menuItemId": 1416,
"quantity": 4,
"unitPrice": 59.95,
"lineTotal": 239.8
},
{
"menuItemId": 1418,
"quantity": 2,
"unitPrice": 69.42,
"lineTotal": 138.84
},
{
"menuItemId": 1423,
"quantity": 3,
"unitPrice": 73.02,
"lineTotal": 219.06
}
],
"subtotal": 624.78,
"deliveryFee": 3.46,
"tip": 8.1,
"total": 636.34,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-06-10T11:24:27.780Z",
"deliveredAt": "2024-06-10T12:38:19.365Z"
}