food-orders / #170
- userId
-
Hortense Cruickshank @hortense.cruickshank65
- restaurantId
- Hartmann, Dach and Kub · Gusikowskifield · ★ 4.2
- items
-
[ { "menuItemId": 555, "quantity": 1, "unitPrice": 38.64, "lineTotal": 38.64 } ] - subtotal
- 38.64
- deliveryFee
- 6.71
- tip
- 8.2
- total
- 53.55
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#170
#170
Small
food-orders/170 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/170" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/170"
);
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/170"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/170"
)
food_order = res.json() {
"id": 170,
"userId": 83,
"restaurantId": 38,
"items": [
{
"menuItemId": 555,
"quantity": 1,
"unitPrice": 38.64,
"lineTotal": 38.64
}
],
"subtotal": 38.64,
"deliveryFee": 6.71,
"tip": 8.2,
"total": 53.55,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-02-23T01:56:56.634Z",
"deliveredAt": "2025-02-23T05:13:51.046Z"
}