example-data.com

food-orders / #59

userId
Candace Mueller @candace.mueller
restaurantId
Gerhold - Dietrich · North Joshua · ★ 4.9
items
[
  {
    "menuItemId": 948,
    "quantity": 1,
    "unitPrice": 63.65,
    "lineTotal": 63.65
  }
]
subtotal
63.65
deliveryFee
4.48
tip
8.64
total
76.77
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/59"
)
food_order = res.json()
{
  "id": 59,
  "userId": 75,
  "restaurantId": 63,
  "items": [
    {
      "menuItemId": 948,
      "quantity": 1,
      "unitPrice": 63.65,
      "lineTotal": 63.65
    }
  ],
  "subtotal": 63.65,
  "deliveryFee": 4.48,
  "tip": 8.64,
  "total": 76.77,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2025-10-22T02:39:38.515Z",
  "deliveredAt": null
}
Draftbit