example-data.com

food-orders / #164

userId
Wallace Batz @wallace_batz
restaurantId
Klocko, Gusikowski and Lockman · Lake Vern · ★ 2.9
items
[
  {
    "menuItemId": 1340,
    "quantity": 4,
    "unitPrice": 7.03,
    "lineTotal": 28.12
  }
]
subtotal
28.12
deliveryFee
2.13
tip
1.92
total
32.17
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/164"
)
food_order = res.json()
{
  "id": 164,
  "userId": 229,
  "restaurantId": 92,
  "items": [
    {
      "menuItemId": 1340,
      "quantity": 4,
      "unitPrice": 7.03,
      "lineTotal": 28.12
    }
  ],
  "subtotal": 28.12,
  "deliveryFee": 2.13,
  "tip": 1.92,
  "total": 32.17,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-09-14T19:14:17.231Z",
  "deliveredAt": null
}
Draftbit