food-orders / #23
- userId
-
Charlene Roberts @charlene_roberts
- restaurantId
- Hayes - McDermott · Lake Tanya · ★ 2.5
- items
-
[ { "menuItemId": 1024, "quantity": 4, "unitPrice": 4.53, "lineTotal": 18.12 }, { "menuItemId": 1023, "quantity": 2, "unitPrice": 18.52, "lineTotal": 37.04 } ] - subtotal
- 55.16
- deliveryFee
- 0.32
- tip
- 10.44
- total
- 65.92
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#23
#23
Small
food-orders/23 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/23" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/23"
);
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/23"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/23"
)
food_order = res.json() {
"id": 23,
"userId": 1,
"restaurantId": 68,
"items": [
{
"menuItemId": 1024,
"quantity": 4,
"unitPrice": 4.53,
"lineTotal": 18.12
},
{
"menuItemId": 1023,
"quantity": 2,
"unitPrice": 18.52,
"lineTotal": 37.04
}
],
"subtotal": 55.16,
"deliveryFee": 0.32,
"tip": 10.44,
"total": 65.92,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-07-02T04:37:15.838Z",
"deliveredAt": "2024-07-02T07:27:38.336Z"
}