food-orders / #188
- userId
-
Joseph Nitzsche @joseph_nitzsche
- restaurantId
- McKenzie - Toy · Hattiesburg · ★ 2.8
- items
-
[ { "menuItemId": 40, "quantity": 3, "unitPrice": 53.28, "lineTotal": 159.84 }, { "menuItemId": 37, "quantity": 1, "unitPrice": 10.15, "lineTotal": 10.15 } ] - subtotal
- 169.99
- deliveryFee
- 6.02
- tip
- 6.21
- total
- 182.22
- currency
- USD
- status
- out_for_delivery
- placedAt
- deliveredAt
- —
Component variants
Medium
#188
#188
Small
food-orders/188 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/188" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/188"
);
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/188"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/188"
)
food_order = res.json() {
"id": 188,
"userId": 196,
"restaurantId": 4,
"items": [
{
"menuItemId": 40,
"quantity": 3,
"unitPrice": 53.28,
"lineTotal": 159.84
},
{
"menuItemId": 37,
"quantity": 1,
"unitPrice": 10.15,
"lineTotal": 10.15
}
],
"subtotal": 169.99,
"deliveryFee": 6.02,
"tip": 6.21,
"total": 182.22,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2024-05-22T03:59:43.948Z",
"deliveredAt": null
}