example-data.com

food-orders / #119

userId
Vincenza Zemlak-Collier @vincenza_zemlak-collier
restaurantId
Kertzmann - Boyer · Chicago · ★ 4.1
items
[
  {
    "menuItemId": 1308,
    "quantity": 1,
    "unitPrice": 22.89,
    "lineTotal": 22.89
  },
  {
    "menuItemId": 1291,
    "quantity": 4,
    "unitPrice": 60.98,
    "lineTotal": 243.92
  }
]
subtotal
266.81
deliveryFee
3.36
tip
0.72
total
270.89
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/119"
)
food_order = res.json()
{
  "id": 119,
  "userId": 168,
  "restaurantId": 90,
  "items": [
    {
      "menuItemId": 1308,
      "quantity": 1,
      "unitPrice": 22.89,
      "lineTotal": 22.89
    },
    {
      "menuItemId": 1291,
      "quantity": 4,
      "unitPrice": 60.98,
      "lineTotal": 243.92
    }
  ],
  "subtotal": 266.81,
  "deliveryFee": 3.36,
  "tip": 0.72,
  "total": 270.89,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2026-05-17T03:34:31.882Z",
  "deliveredAt": null
}
Draftbit