food-orders / #134
- userId
-
Casimir Smitham @casimir_smitham35
- restaurantId
- Leffler, Dibbert and Yost · Boehmcester · ★ 4.5
- items
-
[ { "menuItemId": 1277, "quantity": 1, "unitPrice": 52.02, "lineTotal": 52.02 }, { "menuItemId": 1274, "quantity": 2, "unitPrice": 18.12, "lineTotal": 36.24 } ] - subtotal
- 88.26
- deliveryFee
- 5.89
- tip
- 10.68
- total
- 104.83
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#134
#134
Small
food-orders/134 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/134" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/134"
);
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/134"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/134"
)
food_order = res.json() {
"id": 134,
"userId": 16,
"restaurantId": 88,
"items": [
{
"menuItemId": 1277,
"quantity": 1,
"unitPrice": 52.02,
"lineTotal": 52.02
},
{
"menuItemId": 1274,
"quantity": 2,
"unitPrice": 18.12,
"lineTotal": 36.24
}
],
"subtotal": 88.26,
"deliveryFee": 5.89,
"tip": 10.68,
"total": 104.83,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-06-01T17:17:50.202Z",
"deliveredAt": "2024-06-01T19:58:58.908Z"
}