food-orders / #216
- userId
-
Abdul Rau @abdul.rau
- restaurantId
- Rogahn - Kreiger · South Cathrynside · ★ 4.6
- items
-
[ { "menuItemId": 1207, "quantity": 4, "unitPrice": 77.46, "lineTotal": 309.84 }, { "menuItemId": 1209, "quantity": 1, "unitPrice": 45.24, "lineTotal": 45.24 } ] - subtotal
- 355.08
- deliveryFee
- 2.43
- tip
- 2.37
- total
- 359.88
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#216
#216
Small
food-orders/216 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/216" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/216"
);
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/216"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/216"
)
food_order = res.json() {
"id": 216,
"userId": 108,
"restaurantId": 82,
"items": [
{
"menuItemId": 1207,
"quantity": 4,
"unitPrice": 77.46,
"lineTotal": 309.84
},
{
"menuItemId": 1209,
"quantity": 1,
"unitPrice": 45.24,
"lineTotal": 45.24
}
],
"subtotal": 355.08,
"deliveryFee": 2.43,
"tip": 2.37,
"total": 359.88,
"currency": "USD",
"status": "placed",
"placedAt": "2024-08-11T02:19:12.777Z",
"deliveredAt": null
}