example-data.com

food-orders / #122

userId
Marcelina Grady @marcelina_grady19
restaurantId
Schoen, Cole and Bauch · Thompsonberg · ★ 3.1
items
[
  {
    "menuItemId": 466,
    "quantity": 2,
    "unitPrice": 18.03,
    "lineTotal": 36.06
  }
]
subtotal
36.06
deliveryFee
4.38
tip
7.86
total
48.3
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/122"
)
food_order = res.json()
{
  "id": 122,
  "userId": 241,
  "restaurantId": 31,
  "items": [
    {
      "menuItemId": 466,
      "quantity": 2,
      "unitPrice": 18.03,
      "lineTotal": 36.06
    }
  ],
  "subtotal": 36.06,
  "deliveryFee": 4.38,
  "tip": 7.86,
  "total": 48.3,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2026-02-14T12:39:07.427Z",
  "deliveredAt": null
}
Draftbit