example-data.com

food-orders / #60

userId
Allan Buckridge @allan_buckridge
restaurantId
Lehner - Smith · Larkinfurt · ★ 3.0
items
[
  {
    "menuItemId": 1350,
    "quantity": 3,
    "unitPrice": 29.23,
    "lineTotal": 87.69
  },
  {
    "menuItemId": 1354,
    "quantity": 2,
    "unitPrice": 44.06,
    "lineTotal": 88.12
  },
  {
    "menuItemId": 1360,
    "quantity": 3,
    "unitPrice": 53.67,
    "lineTotal": 161.01
  }
]
subtotal
336.82
deliveryFee
7.08
tip
4.73
total
348.63
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/food-orders/60" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-orders/60"
);
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/60"
);
const foodOrder = (await res.json()) as FoodOrder;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders/60"
)
food_order = res.json()
{
  "id": 60,
  "userId": 106,
  "restaurantId": 93,
  "items": [
    {
      "menuItemId": 1350,
      "quantity": 3,
      "unitPrice": 29.23,
      "lineTotal": 87.69
    },
    {
      "menuItemId": 1354,
      "quantity": 2,
      "unitPrice": 44.06,
      "lineTotal": 88.12
    },
    {
      "menuItemId": 1360,
      "quantity": 3,
      "unitPrice": 53.67,
      "lineTotal": 161.01
    }
  ],
  "subtotal": 336.82,
  "deliveryFee": 7.08,
  "tip": 4.73,
  "total": 348.63,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-12-11T08:26:05.250Z",
  "deliveredAt": "2025-12-11T11:36:50.337Z"
}
Draftbit