food-orders / #70
- userId
-
Gerald Lind @gerald_lind57
- restaurantId
- Weimann, Herzog and Wisoky · Grahamberg · ★ 3.2
- items
-
[ { "menuItemId": 1286, "quantity": 1, "unitPrice": 64.02, "lineTotal": 64.02 } ] - subtotal
- 64.02
- deliveryFee
- 5.71
- tip
- 0.71
- total
- 70.44
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#70
#70
Small
food-orders/70 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/70" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/70"
);
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/70"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/70"
)
food_order = res.json() {
"id": 70,
"userId": 179,
"restaurantId": 89,
"items": [
{
"menuItemId": 1286,
"quantity": 1,
"unitPrice": 64.02,
"lineTotal": 64.02
}
],
"subtotal": 64.02,
"deliveryFee": 5.71,
"tip": 0.71,
"total": 70.44,
"currency": "USD",
"status": "placed",
"placedAt": "2025-02-16T20:55:53.062Z",
"deliveredAt": null
}