food-orders / #127
- userId
-
Cyril Frami @cyril_frami88
- restaurantId
- Harber, Wolf and Reynolds · Providencifurt · ★ 4.5
- items
-
[ { "menuItemId": 36, "quantity": 4, "unitPrice": 20.66, "lineTotal": 82.64 } ] - subtotal
- 82.64
- deliveryFee
- 3.02
- tip
- 10.79
- total
- 96.45
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#127
#127
Small
food-orders/127 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/127" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/127"
);
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/127"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/127"
)
food_order = res.json() {
"id": 127,
"userId": 182,
"restaurantId": 3,
"items": [
{
"menuItemId": 36,
"quantity": 4,
"unitPrice": 20.66,
"lineTotal": 82.64
}
],
"subtotal": 82.64,
"deliveryFee": 3.02,
"tip": 10.79,
"total": 96.45,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-06-16T18:59:59.215Z",
"deliveredAt": "2025-06-16T21:45:55.426Z"
}