food-orders / #117
- userId
-
Orrin Grant @orrin.grant42
- restaurantId
- Hirthe, Klein and Baumbach · North Giles · ★ 4.2
- items
-
[ { "menuItemId": 379, "quantity": 2, "unitPrice": 70.11, "lineTotal": 140.22 }, { "menuItemId": 370, "quantity": 4, "unitPrice": 3.79, "lineTotal": 15.16 } ] - subtotal
- 155.38
- deliveryFee
- 4.61
- tip
- 9.38
- total
- 169.37
- currency
- USD
- status
- preparing
- placedAt
- deliveredAt
- —
Component variants
Medium
#117
#117
Small
food-orders/117 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/117" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/117"
);
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/117"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/117"
)
food_order = res.json() {
"id": 117,
"userId": 152,
"restaurantId": 24,
"items": [
{
"menuItemId": 379,
"quantity": 2,
"unitPrice": 70.11,
"lineTotal": 140.22
},
{
"menuItemId": 370,
"quantity": 4,
"unitPrice": 3.79,
"lineTotal": 15.16
}
],
"subtotal": 155.38,
"deliveryFee": 4.61,
"tip": 9.38,
"total": 169.37,
"currency": "USD",
"status": "preparing",
"placedAt": "2024-10-13T01:42:41.607Z",
"deliveredAt": null
}