food-orders / #225
- userId
-
Ike Breitenberg @ike.breitenberg
- restaurantId
- Heathcote Inc · Schmidtfield · ★ 2.7
- items
-
[ { "menuItemId": 786, "quantity": 4, "unitPrice": 8.76, "lineTotal": 35.04 }, { "menuItemId": 796, "quantity": 1, "unitPrice": 16.17, "lineTotal": 16.17 }, { "menuItemId": 790, "quantity": 2, "unitPrice": 33.57, "lineTotal": 67.14 } ] - subtotal
- 118.35
- deliveryFee
- 6.12
- tip
- 5.25
- total
- 129.72
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#225
#225
Small
food-orders/225 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/225" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/225"
);
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/225"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/225"
)
food_order = res.json() {
"id": 225,
"userId": 72,
"restaurantId": 53,
"items": [
{
"menuItemId": 786,
"quantity": 4,
"unitPrice": 8.76,
"lineTotal": 35.04
},
{
"menuItemId": 796,
"quantity": 1,
"unitPrice": 16.17,
"lineTotal": 16.17
},
{
"menuItemId": 790,
"quantity": 2,
"unitPrice": 33.57,
"lineTotal": 67.14
}
],
"subtotal": 118.35,
"deliveryFee": 6.12,
"tip": 5.25,
"total": 129.72,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-07-13T23:06:30.432Z",
"deliveredAt": "2024-07-14T02:46:04.369Z"
}