food-orders / #30
- userId
-
Alanna Kilback @alanna_kilback31
- restaurantId
- Ferry LLC · South Gilbertoton · ★ 3.8
- items
-
[ { "menuItemId": 861, "quantity": 2, "unitPrice": 21.21, "lineTotal": 42.42 }, { "menuItemId": 854, "quantity": 2, "unitPrice": 31.03, "lineTotal": 62.06 }, { "menuItemId": 858, "quantity": 4, "unitPrice": 24.75, "lineTotal": 99 }, { "menuItemId": 859, "quantity": 1, "unitPrice": 72.86, "lineTotal": 72.86 } ] - subtotal
- 276.34
- deliveryFee
- 6.84
- tip
- 7.67
- total
- 290.85
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#30
#30
Small
food-orders/30 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/30" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/30"
);
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/30"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/30"
)
food_order = res.json() {
"id": 30,
"userId": 14,
"restaurantId": 57,
"items": [
{
"menuItemId": 861,
"quantity": 2,
"unitPrice": 21.21,
"lineTotal": 42.42
},
{
"menuItemId": 854,
"quantity": 2,
"unitPrice": 31.03,
"lineTotal": 62.06
},
{
"menuItemId": 858,
"quantity": 4,
"unitPrice": 24.75,
"lineTotal": 99
},
{
"menuItemId": 859,
"quantity": 1,
"unitPrice": 72.86,
"lineTotal": 72.86
}
],
"subtotal": 276.34,
"deliveryFee": 6.84,
"tip": 7.67,
"total": 290.85,
"currency": "USD",
"status": "cancelled",
"placedAt": "2024-10-30T15:16:22.497Z",
"deliveredAt": null
}