food-orders / #187
- userId
-
Consuelo Borer @consuelo.borer
- restaurantId
- Bartell, Brakus and Schamberger · New Terrytown · ★ 3.3
- items
-
[ { "menuItemId": 779, "quantity": 3, "unitPrice": 58.87, "lineTotal": 176.61 } ] - subtotal
- 176.61
- deliveryFee
- 6.65
- tip
- 4.83
- total
- 188.09
- currency
- USD
- status
- delivered
- placedAt
- deliveredAt
Component variants
Medium
#187
#187
Small
food-orders/187 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/187" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/187"
);
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/187"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/187"
)
food_order = res.json() {
"id": 187,
"userId": 200,
"restaurantId": 52,
"items": [
{
"menuItemId": 779,
"quantity": 3,
"unitPrice": 58.87,
"lineTotal": 176.61
}
],
"subtotal": 176.61,
"deliveryFee": 6.65,
"tip": 4.83,
"total": 188.09,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-08-01T15:36:01.051Z",
"deliveredAt": "2024-08-01T16:46:15.377Z"
}