food-orders / #91
- userId
-
Lennie Dickinson @lennie_dickinson8
- restaurantId
- Rodriguez, Nicolas and Schneider · New Anthony · ★ 4.9
- items
-
[ { "menuItemId": 758, "quantity": 1, "unitPrice": 48.02, "lineTotal": 48.02 }, { "menuItemId": 759, "quantity": 3, "unitPrice": 3.05, "lineTotal": 9.15 } ] - subtotal
- 57.17
- deliveryFee
- 1.67
- tip
- 1.9
- total
- 60.74
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#91
#91
Small
food-orders/91 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/91" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/91"
);
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/91"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/91"
)
food_order = res.json() {
"id": 91,
"userId": 121,
"restaurantId": 50,
"items": [
{
"menuItemId": 758,
"quantity": 1,
"unitPrice": 48.02,
"lineTotal": 48.02
},
{
"menuItemId": 759,
"quantity": 3,
"unitPrice": 3.05,
"lineTotal": 9.15
}
],
"subtotal": 57.17,
"deliveryFee": 1.67,
"tip": 1.9,
"total": 60.74,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-02-28T10:22:33.297Z",
"deliveredAt": "2025-02-28T11:57:36.688Z"
}