food-orders / #144
- userId
-
Sandrine Osinski @sandrine.osinski
- restaurantId
- Ferry LLC · South Gilbertoton · ★ 3.8
- items
-
[ { "menuItemId": 869, "quantity": 2, "unitPrice": 18.67, "lineTotal": 37.34 } ] - subtotal
- 37.34
- deliveryFee
- 3.01
- tip
- 4.74
- total
- 45.09
- currency
- USD
- status
- cancelled
- placedAt
- deliveredAt
- —
Component variants
Medium
#144
#144
Small
food-orders/144 Related
curl -sS \
"https://example-data.com/api/v1/food-orders/144" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/food-orders/144"
);
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/144"
);
const foodOrder = (await res.json()) as FoodOrder;import requests
res = requests.get(
"https://example-data.com/api/v1/food-orders/144"
)
food_order = res.json() {
"id": 144,
"userId": 157,
"restaurantId": 57,
"items": [
{
"menuItemId": 869,
"quantity": 2,
"unitPrice": 18.67,
"lineTotal": 37.34
}
],
"subtotal": 37.34,
"deliveryFee": 3.01,
"tip": 4.74,
"total": 45.09,
"currency": "USD",
"status": "cancelled",
"placedAt": "2025-02-04T23:50:40.509Z",
"deliveredAt": null
}