food-orders / #77
- userId
-
Stephan Heller @stephan.heller
- restaurantId
- O'Keefe - Cruickshank · Covina · ★ 4.8
- items
-
[ { "menuItemId": 1328, "quantity": 3, "unitPrice": 59.55, "lineTotal": 178.65 }, { "menuItemId": 1316, "quantity": 4, "unitPrice": 60.49, "lineTotal": 241.96 } ] - subtotal
- 420.61
- deliveryFee
- 7.68
- tip
- 4.9
- total
- 433.19
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#77
#77
Small
food-orders/77 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/77" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/77"
);
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/77"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/77"
)
food_order = res.json() {
"id": 77,
"userId": 82,
"restaurantId": 91,
"items": [
{
"menuItemId": 1328,
"quantity": 3,
"unitPrice": 59.55,
"lineTotal": 178.65
},
{
"menuItemId": 1316,
"quantity": 4,
"unitPrice": 60.49,
"lineTotal": 241.96
}
],
"subtotal": 420.61,
"deliveryFee": 7.68,
"tip": 4.9,
"total": 433.19,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-08-20T13:25:10.813Z",
"deliveredAt": "2024-08-20T16:36:21.082Z"
}