example-data.com

food-orders / #35

userId
Ryan Conroy @ryan_conroy
restaurantId
Klocko, Gusikowski and Lockman · Lake Vern · ★ 2.9
items
[
  {
    "menuItemId": 1337,
    "quantity": 3,
    "unitPrice": 7.45,
    "lineTotal": 22.35
  },
  {
    "menuItemId": 1345,
    "quantity": 3,
    "unitPrice": 71.58,
    "lineTotal": 214.74
  }
]
subtotal
237.09
deliveryFee
3.64
tip
11.67
total
252.4
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/35"
)
food_order = res.json()
{
  "id": 35,
  "userId": 73,
  "restaurantId": 92,
  "items": [
    {
      "menuItemId": 1337,
      "quantity": 3,
      "unitPrice": 7.45,
      "lineTotal": 22.35
    },
    {
      "menuItemId": 1345,
      "quantity": 3,
      "unitPrice": 71.58,
      "lineTotal": 214.74
    }
  ],
  "subtotal": 237.09,
  "deliveryFee": 3.64,
  "tip": 11.67,
  "total": 252.4,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-10T13:51:32.290Z",
  "deliveredAt": "2026-03-10T15:43:19.816Z"
}
Draftbit