food-orders / #146
- userId
-
Kaden Brekke @kaden_brekke
- restaurantId
- Hand Inc · Costa Mesa · ★ 3.2
- items
-
[ { "menuItemId": 351, "quantity": 1, "unitPrice": 32.29, "lineTotal": 32.29 }, { "menuItemId": 358, "quantity": 4, "unitPrice": 60.89, "lineTotal": 243.56 }, { "menuItemId": 346, "quantity": 1, "unitPrice": 68.02, "lineTotal": 68.02 } ] - subtotal
- 343.87
- deliveryFee
- 3.97
- tip
- 11.18
- total
- 359.02
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#146
#146
Small
food-orders/146 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/146" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/146"
);
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/146"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/146"
)
food_order = res.json() {
"id": 146,
"userId": 67,
"restaurantId": 23,
"items": [
{
"menuItemId": 351,
"quantity": 1,
"unitPrice": 32.29,
"lineTotal": 32.29
},
{
"menuItemId": 358,
"quantity": 4,
"unitPrice": 60.89,
"lineTotal": 243.56
},
{
"menuItemId": 346,
"quantity": 1,
"unitPrice": 68.02,
"lineTotal": 68.02
}
],
"subtotal": 343.87,
"deliveryFee": 3.97,
"tip": 11.18,
"total": 359.02,
"currency": "USD",
"status": "placed",
"placedAt": "2025-01-06T00:54:34.480Z",
"deliveredAt": null
}