example-data.com

food-orders / #227

userId
Judy Hackett @judy_hackett49
restaurantId
Heathcote Group · New Eduardoboro · ★ 4.0
items
[
  {
    "menuItemId": 1174,
    "quantity": 4,
    "unitPrice": 10.64,
    "lineTotal": 42.56
  }
]
subtotal
42.56
deliveryFee
4.81
tip
5.67
total
53.04
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/227"
)
food_order = res.json()
{
  "id": 227,
  "userId": 13,
  "restaurantId": 80,
  "items": [
    {
      "menuItemId": 1174,
      "quantity": 4,
      "unitPrice": 10.64,
      "lineTotal": 42.56
    }
  ],
  "subtotal": 42.56,
  "deliveryFee": 4.81,
  "tip": 5.67,
  "total": 53.04,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-11-12T22:45:58.403Z",
  "deliveredAt": "2025-11-13T02:12:59.439Z"
}
Draftbit