food-orders / #65
- userId
-
Conner Bernhard @conner.bernhard33
- restaurantId
- Vandervort, Bogisich and Hilll · Lake Gino · ★ 4.3
- items
-
[ { "menuItemId": 190, "quantity": 2, "unitPrice": 32.89, "lineTotal": 65.78 }, { "menuItemId": 188, "quantity": 3, "unitPrice": 17.39, "lineTotal": 52.17 }, { "menuItemId": 197, "quantity": 2, "unitPrice": 47.7, "lineTotal": 95.4 } ] - subtotal
- 213.35
- deliveryFee
- 5.99
- tip
- 7.98
- total
- 227.32
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#65
#65
Small
food-orders/65 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/65" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/65"
);
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/65"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/65"
)
food_order = res.json() {
"id": 65,
"userId": 3,
"restaurantId": 14,
"items": [
{
"menuItemId": 190,
"quantity": 2,
"unitPrice": 32.89,
"lineTotal": 65.78
},
{
"menuItemId": 188,
"quantity": 3,
"unitPrice": 17.39,
"lineTotal": 52.17
},
{
"menuItemId": 197,
"quantity": 2,
"unitPrice": 47.7,
"lineTotal": 95.4
}
],
"subtotal": 213.35,
"deliveryFee": 5.99,
"tip": 7.98,
"total": 227.32,
"currency": "USD",
"status": "cancelled",
"placedAt": "2024-08-12T20:59:49.800Z",
"deliveredAt": null
}