example-data.com

food-orders / #139

userId
Celia D'Amore @celia_damore
restaurantId
Lesch - Stehr · New Winona · ★ 4.3
items
[
  {
    "menuItemId": 418,
    "quantity": 2,
    "unitPrice": 68.66,
    "lineTotal": 137.32
  },
  {
    "menuItemId": 424,
    "quantity": 2,
    "unitPrice": 31.7,
    "lineTotal": 63.4
  }
]
subtotal
200.72
deliveryFee
0.1
tip
1.62
total
202.44
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/139"
)
food_order = res.json()
{
  "id": 139,
  "userId": 24,
  "restaurantId": 28,
  "items": [
    {
      "menuItemId": 418,
      "quantity": 2,
      "unitPrice": 68.66,
      "lineTotal": 137.32
    },
    {
      "menuItemId": 424,
      "quantity": 2,
      "unitPrice": 31.7,
      "lineTotal": 63.4
    }
  ],
  "subtotal": 200.72,
  "deliveryFee": 0.1,
  "tip": 1.62,
  "total": 202.44,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-19T21:22:22.648Z",
  "deliveredAt": "2026-02-19T23:18:18.699Z"
}
Draftbit