example-data.com

food-orders / #231

userId
Mara Johnson @mara.johnson17
restaurantId
Schoen, Cole and Bauch · Thompsonberg · ★ 3.1
items
[
  {
    "menuItemId": 471,
    "quantity": 1,
    "unitPrice": 53.07,
    "lineTotal": 53.07
  }
]
subtotal
53.07
deliveryFee
1.64
tip
10.71
total
65.42
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/231"
)
food_order = res.json()
{
  "id": 231,
  "userId": 12,
  "restaurantId": 31,
  "items": [
    {
      "menuItemId": 471,
      "quantity": 1,
      "unitPrice": 53.07,
      "lineTotal": 53.07
    }
  ],
  "subtotal": 53.07,
  "deliveryFee": 1.64,
  "tip": 10.71,
  "total": 65.42,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-08-26T23:02:20.876Z",
  "deliveredAt": "2025-08-27T01:50:15.489Z"
}
Draftbit