food-orders / #100
- userId
-
Cindy Barrows @cindy_barrows20
- restaurantId
- Johns - Adams · Bradleyburgh · ★ 2.6
- items
-
[ { "menuItemId": 874, "quantity": 3, "unitPrice": 19.84, "lineTotal": 59.52 }, { "menuItemId": 881, "quantity": 4, "unitPrice": 50.74, "lineTotal": 202.96 }, { "menuItemId": 878, "quantity": 3, "unitPrice": 54.07, "lineTotal": 162.21 } ] - subtotal
- 424.69
- deliveryFee
- 7.38
- tip
- 6.82
- total
- 438.89
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#100
#100
Small
food-orders/100 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/100" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/100"
);
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/100"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/100"
)
food_order = res.json() {
"id": 100,
"userId": 165,
"restaurantId": 58,
"items": [
{
"menuItemId": 874,
"quantity": 3,
"unitPrice": 19.84,
"lineTotal": 59.52
},
{
"menuItemId": 881,
"quantity": 4,
"unitPrice": 50.74,
"lineTotal": 202.96
},
{
"menuItemId": 878,
"quantity": 3,
"unitPrice": 54.07,
"lineTotal": 162.21
}
],
"subtotal": 424.69,
"deliveryFee": 7.38,
"tip": 6.82,
"total": 438.89,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-05-21T17:13:40.702Z",
"deliveredAt": "2025-05-21T18:57:57.338Z"
}