food-orders / #219
- userId
-
Lawrence Rogahn @lawrence_rogahn33
- restaurantId
- Ritchie - Rowe · Trompfort · ★ 2.9
- items
-
[ { "menuItemId": 1237, "quantity": 1, "unitPrice": 76.78, "lineTotal": 76.78 }, { "menuItemId": 1243, "quantity": 3, "unitPrice": 72.04, "lineTotal": 216.12 }, { "menuItemId": 1242, "quantity": 4, "unitPrice": 55.8, "lineTotal": 223.2 } ] - subtotal
- 516.1
- deliveryFee
- 4.65
- tip
- 1.74
- total
- 522.49
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#219
#219
Small
food-orders/219 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/219" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/219"
);
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/219"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/219"
)
food_order = res.json() {
"id": 219,
"userId": 245,
"restaurantId": 85,
"items": [
{
"menuItemId": 1237,
"quantity": 1,
"unitPrice": 76.78,
"lineTotal": 76.78
},
{
"menuItemId": 1243,
"quantity": 3,
"unitPrice": 72.04,
"lineTotal": 216.12
},
{
"menuItemId": 1242,
"quantity": 4,
"unitPrice": 55.8,
"lineTotal": 223.2
}
],
"subtotal": 516.1,
"deliveryFee": 4.65,
"tip": 1.74,
"total": 522.49,
"currency": "USD",
"status": "placed",
"placedAt": "2024-12-11T08:37:29.389Z",
"deliveredAt": null
}