food-orders / #220
- userId
-
Ryan Conroy @ryan_conroy
- restaurantId
- Marks Inc · East Dena · ★ 4.1
- items
-
[ { "menuItemId": 818, "quantity": 4, "unitPrice": 78.09, "lineTotal": 312.36 }, { "menuItemId": 808, "quantity": 1, "unitPrice": 58.02, "lineTotal": 58.02 }, { "menuItemId": 800, "quantity": 4, "unitPrice": 79.2, "lineTotal": 316.8 } ] - subtotal
- 687.18
- deliveryFee
- 7.71
- tip
- 10.41
- total
- 705.3
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#220
#220
Small
food-orders/220 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/220" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/220"
);
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/220"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/220"
)
food_order = res.json() {
"id": 220,
"userId": 73,
"restaurantId": 54,
"items": [
{
"menuItemId": 818,
"quantity": 4,
"unitPrice": 78.09,
"lineTotal": 312.36
},
{
"menuItemId": 808,
"quantity": 1,
"unitPrice": 58.02,
"lineTotal": 58.02
},
{
"menuItemId": 800,
"quantity": 4,
"unitPrice": 79.2,
"lineTotal": 316.8
}
],
"subtotal": 687.18,
"deliveryFee": 7.71,
"tip": 10.41,
"total": 705.3,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-07-08T04:47:14.920Z",
"deliveredAt": "2024-07-08T06:57:53.914Z"
}