example-data.com

food-orders / #118

userId
Elva Roberts @elva.roberts48
restaurantId
D'Amore, Quitzon and Satterfield · Bruenberg · ★ 4.6
items
[
  {
    "menuItemId": 511,
    "quantity": 2,
    "unitPrice": 75.99,
    "lineTotal": 151.98
  }
]
subtotal
151.98
deliveryFee
0.11
tip
0.49
total
152.58
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/118"
)
food_order = res.json()
{
  "id": 118,
  "userId": 107,
  "restaurantId": 34,
  "items": [
    {
      "menuItemId": 511,
      "quantity": 2,
      "unitPrice": 75.99,
      "lineTotal": 151.98
    }
  ],
  "subtotal": 151.98,
  "deliveryFee": 0.11,
  "tip": 0.49,
  "total": 152.58,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-09-23T16:56:26.327Z",
  "deliveredAt": null
}
Draftbit