food-orders / #69
- userId
-
Matt Kuhic @matt_kuhic57
- restaurantId
- Effertz, Langworth and Walsh · Lake Maudiehaven · ★ 2.7
- items
-
[ { "menuItemId": 326, "quantity": 1, "unitPrice": 29.81, "lineTotal": 29.81 }, { "menuItemId": 328, "quantity": 1, "unitPrice": 22.43, "lineTotal": 22.43 }, { "menuItemId": 329, "quantity": 3, "unitPrice": 33.41, "lineTotal": 100.23 }, { "menuItemId": 337, "quantity": 3, "unitPrice": 33.8, "lineTotal": 101.4 }, { "menuItemId": 330, "quantity": 4, "unitPrice": 43.87, "lineTotal": 175.48 } ] - subtotal
- 429.35
- deliveryFee
- 3.43
- tip
- 4.35
- total
- 437.13
- currency
- USD
- status
- placed
- placedAt
- deliveredAt
- —
Component variants
Medium
#69
#69
Small
food-orders/69 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/69" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/69"
);
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/69"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/69"
)
food_order = res.json() {
"id": 69,
"userId": 226,
"restaurantId": 21,
"items": [
{
"menuItemId": 326,
"quantity": 1,
"unitPrice": 29.81,
"lineTotal": 29.81
},
{
"menuItemId": 328,
"quantity": 1,
"unitPrice": 22.43,
"lineTotal": 22.43
},
{
"menuItemId": 329,
"quantity": 3,
"unitPrice": 33.41,
"lineTotal": 100.23
},
{
"menuItemId": 337,
"quantity": 3,
"unitPrice": 33.8,
"lineTotal": 101.4
},
{
"menuItemId": 330,
"quantity": 4,
"unitPrice": 43.87,
"lineTotal": 175.48
}
],
"subtotal": 429.35,
"deliveryFee": 3.43,
"tip": 4.35,
"total": 437.13,
"currency": "USD",
"status": "placed",
"placedAt": "2024-05-27T19:56:41.172Z",
"deliveredAt": null
}