food-orders / #172
- userId
-
Roma Durgan @roma.durgan
- restaurantId
- Simonis - Kshlerin · Stanleybury · ★ 2.8
- items
-
[ { "menuItemId": 682, "quantity": 2, "unitPrice": 5.31, "lineTotal": 10.62 } ] - subtotal
- 10.62
- deliveryFee
- 4.08
- tip
- 4.42
- total
- 19.12
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#172
#172
Small
food-orders/172 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/172" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/172"
);
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/172"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/172"
)
food_order = res.json() {
"id": 172,
"userId": 215,
"restaurantId": 45,
"items": [
{
"menuItemId": 682,
"quantity": 2,
"unitPrice": 5.31,
"lineTotal": 10.62
}
],
"subtotal": 10.62,
"deliveryFee": 4.08,
"tip": 4.42,
"total": 19.12,
"currency": "USD",
"status": "placed",
"placedAt": "2025-01-03T07:19:49.115Z",
"deliveredAt": null
}