food-orders / #43
- userId
-
Jaycee Erdman @jaycee_erdman96
- restaurantId
- Larson, Keeling and Klocko · Aidanboro · ★ 4.4
- items
-
[ { "menuItemId": 125, "quantity": 3, "unitPrice": 10.21, "lineTotal": 30.63 }, { "menuItemId": 134, "quantity": 3, "unitPrice": 38.88, "lineTotal": 116.64 } ] - subtotal
- 147.27
- deliveryFee
- 0.29
- tip
- 6.96
- total
- 154.52
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#43
#43
Small
food-orders/43 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/43" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/43"
);
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/43"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/43"
)
food_order = res.json() {
"id": 43,
"userId": 10,
"restaurantId": 9,
"items": [
{
"menuItemId": 125,
"quantity": 3,
"unitPrice": 10.21,
"lineTotal": 30.63
},
{
"menuItemId": 134,
"quantity": 3,
"unitPrice": 38.88,
"lineTotal": 116.64
}
],
"subtotal": 147.27,
"deliveryFee": 0.29,
"tip": 6.96,
"total": 154.52,
"currency": "USD",
"status": "cancelled",
"placedAt": "2024-06-15T04:14:39.300Z",
"deliveredAt": null
}