food-orders / #89
- userId
-
Maryam Kunze @maryam_kunze
- restaurantId
- Gerhold - Dietrich · North Joshua · ★ 4.9
- items
-
[ { "menuItemId": 943, "quantity": 2, "unitPrice": 12.97, "lineTotal": 25.94 }, { "menuItemId": 945, "quantity": 1, "unitPrice": 53.91, "lineTotal": 53.91 }, { "menuItemId": 950, "quantity": 1, "unitPrice": 65.42, "lineTotal": 65.42 } ] - subtotal
- 145.27
- deliveryFee
- 2.59
- tip
- 2.71
- total
- 150.57
- currency
- USD
- status
- out_for_delivery
- placedAt
- deliveredAt
- —
Component variants
Medium
#89
#89
Small
food-orders/89 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/89" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/89"
);
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/89"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/89"
)
food_order = res.json() {
"id": 89,
"userId": 195,
"restaurantId": 63,
"items": [
{
"menuItemId": 943,
"quantity": 2,
"unitPrice": 12.97,
"lineTotal": 25.94
},
{
"menuItemId": 945,
"quantity": 1,
"unitPrice": 53.91,
"lineTotal": 53.91
},
{
"menuItemId": 950,
"quantity": 1,
"unitPrice": 65.42,
"lineTotal": 65.42
}
],
"subtotal": 145.27,
"deliveryFee": 2.59,
"tip": 2.71,
"total": 150.57,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2025-01-29T17:22:23.697Z",
"deliveredAt": null
}