food-orders / #147
- userId
-
Adelia Roberts @adelia_roberts0
- restaurantId
- Bartoletti LLC · Shannychester · ★ 3.3
- items
-
[ { "menuItemId": 740, "quantity": 3, "unitPrice": 49.23, "lineTotal": 147.69 }, { "menuItemId": 746, "quantity": 4, "unitPrice": 33.22, "lineTotal": 132.88 }, { "menuItemId": 737, "quantity": 2, "unitPrice": 72.62, "lineTotal": 145.24 } ] - subtotal
- 425.81
- deliveryFee
- 3.24
- tip
- 11.87
- total
- 440.92
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#147
#147
Small
food-orders/147 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/147" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/147"
);
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/147"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/147"
)
food_order = res.json() {
"id": 147,
"userId": 231,
"restaurantId": 49,
"items": [
{
"menuItemId": 740,
"quantity": 3,
"unitPrice": 49.23,
"lineTotal": 147.69
},
{
"menuItemId": 746,
"quantity": 4,
"unitPrice": 33.22,
"lineTotal": 132.88
},
{
"menuItemId": 737,
"quantity": 2,
"unitPrice": 72.62,
"lineTotal": 145.24
}
],
"subtotal": 425.81,
"deliveryFee": 3.24,
"tip": 11.87,
"total": 440.92,
"currency": "USD",
"status": "cancelled",
"placedAt": "2024-12-06T21:07:39.548Z",
"deliveredAt": null
}