food-orders / #21
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- restaurantId
- Kertzmann - Boyer · Chicago · ★ 4.1
- items
-
[ { "menuItemId": 1313, "quantity": 1, "unitPrice": 11.71, "lineTotal": 11.71 }, { "menuItemId": 1296, "quantity": 1, "unitPrice": 57.13, "lineTotal": 57.13 }, { "menuItemId": 1303, "quantity": 4, "unitPrice": 42.7, "lineTotal": 170.8 } ] - subtotal
- 239.64
- deliveryFee
- 3.68
- tip
- 4.26
- total
- 247.58
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#21
#21
Small
food-orders/21 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/21" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/21"
);
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/21"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/21"
)
food_order = res.json() {
"id": 21,
"userId": 98,
"restaurantId": 90,
"items": [
{
"menuItemId": 1313,
"quantity": 1,
"unitPrice": 11.71,
"lineTotal": 11.71
},
{
"menuItemId": 1296,
"quantity": 1,
"unitPrice": 57.13,
"lineTotal": 57.13
},
{
"menuItemId": 1303,
"quantity": 4,
"unitPrice": 42.7,
"lineTotal": 170.8
}
],
"subtotal": 239.64,
"deliveryFee": 3.68,
"tip": 4.26,
"total": 247.58,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-07-15T03:03:35.357Z",
"deliveredAt": "2024-07-15T06:02:58.880Z"
}