example-data.com

food-orders / #176

userId
Americo Hoppe @americo_hoppe57
restaurantId
Harber, Wolf and Reynolds · Providencifurt · ★ 4.5
items
[
  {
    "menuItemId": 35,
    "quantity": 4,
    "unitPrice": 35.98,
    "lineTotal": 143.92
  }
]
subtotal
143.92
deliveryFee
6.99
tip
11.46
total
162.37
currency
USD
status
preparing
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/176"
)
food_order = res.json()
{
  "id": 176,
  "userId": 177,
  "restaurantId": 3,
  "items": [
    {
      "menuItemId": 35,
      "quantity": 4,
      "unitPrice": 35.98,
      "lineTotal": 143.92
    }
  ],
  "subtotal": 143.92,
  "deliveryFee": 6.99,
  "tip": 11.46,
  "total": 162.37,
  "currency": "USD",
  "status": "preparing",
  "placedAt": "2025-06-05T16:39:43.123Z",
  "deliveredAt": null
}
Draftbit