food-orders / #129
- userId
-
Fritz Skiles @fritz_skiles
- restaurantId
- Halvorson - Torp · Tonawanda · ★ 3.3
- items
-
[ { "menuItemId": 279, "quantity": 1, "unitPrice": 73.18, "lineTotal": 73.18 }, { "menuItemId": 285, "quantity": 4, "unitPrice": 14.84, "lineTotal": 59.36 }, { "menuItemId": 280, "quantity": 1, "unitPrice": 8.15, "lineTotal": 8.15 }, { "menuItemId": 277, "quantity": 1, "unitPrice": 5.49, "lineTotal": 5.49 } ] - subtotal
- 146.18
- deliveryFee
- 0.91
- tip
- 8.18
- total
- 155.27
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#129
#129
Small
food-orders/129 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/129" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/129"
);
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/129"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/129"
)
food_order = res.json() {
"id": 129,
"userId": 144,
"restaurantId": 18,
"items": [
{
"menuItemId": 279,
"quantity": 1,
"unitPrice": 73.18,
"lineTotal": 73.18
},
{
"menuItemId": 285,
"quantity": 4,
"unitPrice": 14.84,
"lineTotal": 59.36
},
{
"menuItemId": 280,
"quantity": 1,
"unitPrice": 8.15,
"lineTotal": 8.15
},
{
"menuItemId": 277,
"quantity": 1,
"unitPrice": 5.49,
"lineTotal": 5.49
}
],
"subtotal": 146.18,
"deliveryFee": 0.91,
"tip": 8.18,
"total": 155.27,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-02-03T10:27:43.258Z",
"deliveredAt": "2025-02-03T13:14:26.797Z"
}