example-data.com

food-orders / #207

userId
Gerald Lind @gerald_lind57
restaurantId
Lesch - Stehr · New Winona · ★ 4.3
items
[
  {
    "menuItemId": 420,
    "quantity": 2,
    "unitPrice": 25.15,
    "lineTotal": 50.3
  },
  {
    "menuItemId": 424,
    "quantity": 1,
    "unitPrice": 31.7,
    "lineTotal": 31.7
  },
  {
    "menuItemId": 418,
    "quantity": 4,
    "unitPrice": 68.66,
    "lineTotal": 274.64
  }
]
subtotal
356.64
deliveryFee
1.94
tip
0.29
total
358.87
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/207"
)
food_order = res.json()
{
  "id": 207,
  "userId": 179,
  "restaurantId": 28,
  "items": [
    {
      "menuItemId": 420,
      "quantity": 2,
      "unitPrice": 25.15,
      "lineTotal": 50.3
    },
    {
      "menuItemId": 424,
      "quantity": 1,
      "unitPrice": 31.7,
      "lineTotal": 31.7
    },
    {
      "menuItemId": 418,
      "quantity": 4,
      "unitPrice": 68.66,
      "lineTotal": 274.64
    }
  ],
  "subtotal": 356.64,
  "deliveryFee": 1.94,
  "tip": 0.29,
  "total": 358.87,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-02-09T13:28:27.106Z",
  "deliveredAt": "2026-02-09T14:34:06.455Z"
}
Draftbit