food-orders / #95
- userId
-
Leonor Corwin @leonor_corwin3
- restaurantId
- Schoen, Cole and Bauch · Thompsonberg · ★ 3.1
- items
-
[ { "menuItemId": 467, "quantity": 4, "unitPrice": 68.16, "lineTotal": 272.64 }, { "menuItemId": 461, "quantity": 2, "unitPrice": 11.78, "lineTotal": 23.56 }, { "menuItemId": 457, "quantity": 4, "unitPrice": 46.98, "lineTotal": 187.92 }, { "menuItemId": 473, "quantity": 4, "unitPrice": 18.26, "lineTotal": 73.04 } ] - subtotal
- 557.16
- deliveryFee
- 6.2
- tip
- 5.42
- total
- 568.78
- currency
- USD
- status
- out_for_delivery
- placedAt
- deliveredAt
- —
Component variants
Medium
#95
#95
Small
food-orders/95 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/95" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/95"
);
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/95"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/95"
)
food_order = res.json() {
"id": 95,
"userId": 211,
"restaurantId": 31,
"items": [
{
"menuItemId": 467,
"quantity": 4,
"unitPrice": 68.16,
"lineTotal": 272.64
},
{
"menuItemId": 461,
"quantity": 2,
"unitPrice": 11.78,
"lineTotal": 23.56
},
{
"menuItemId": 457,
"quantity": 4,
"unitPrice": 46.98,
"lineTotal": 187.92
},
{
"menuItemId": 473,
"quantity": 4,
"unitPrice": 18.26,
"lineTotal": 73.04
}
],
"subtotal": 557.16,
"deliveryFee": 6.2,
"tip": 5.42,
"total": 568.78,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2024-06-12T14:36:43.590Z",
"deliveredAt": null
}