food-orders / #33
- userId
-
Jo Haag-Mayer @jo_haag-mayer
- restaurantId
- Franey, Volkman and Kutch · Piercecester · ★ 3.5
- items
-
[ { "menuItemId": 597, "quantity": 1, "unitPrice": 46.35, "lineTotal": 46.35 } ] - subtotal
- 46.35
- deliveryFee
- 5.57
- tip
- 11.55
- total
- 63.47
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#33
#33
Small
food-orders/33 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/33" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/33"
);
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/33"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/33"
)
food_order = res.json() {
"id": 33,
"userId": 54,
"restaurantId": 41,
"items": [
{
"menuItemId": 597,
"quantity": 1,
"unitPrice": 46.35,
"lineTotal": 46.35
}
],
"subtotal": 46.35,
"deliveryFee": 5.57,
"tip": 11.55,
"total": 63.47,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-10-01T01:05:41.341Z",
"deliveredAt": "2024-10-01T04:43:29.305Z"
}