food-orders / #189
- userId
-
Norbert Jacobi @norbert_jacobi92
- restaurantId
- Simonis - Kshlerin · Stanleybury · ★ 2.8
- items
-
[ { "menuItemId": 673, "quantity": 2, "unitPrice": 63.75, "lineTotal": 127.5 }, { "menuItemId": 668, "quantity": 1, "unitPrice": 49.48, "lineTotal": 49.48 }, { "menuItemId": 666, "quantity": 3, "unitPrice": 8.71, "lineTotal": 26.13 } ] - subtotal
- 203.11
- deliveryFee
- 6.14
- tip
- 4.76
- total
- 214.01
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#189
#189
Small
food-orders/189 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/189" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/189"
);
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/189"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/189"
)
food_order = res.json() {
"id": 189,
"userId": 101,
"restaurantId": 45,
"items": [
{
"menuItemId": 673,
"quantity": 2,
"unitPrice": 63.75,
"lineTotal": 127.5
},
{
"menuItemId": 668,
"quantity": 1,
"unitPrice": 49.48,
"lineTotal": 49.48
},
{
"menuItemId": 666,
"quantity": 3,
"unitPrice": 8.71,
"lineTotal": 26.13
}
],
"subtotal": 203.11,
"deliveryFee": 6.14,
"tip": 4.76,
"total": 214.01,
"currency": "USD",
"status": "cancelled",
"placedAt": "2025-05-22T06:30:39.576Z",
"deliveredAt": null
}