example-data.com

food-orders / #68

userId
Joseph Steuber @joseph_steuber
restaurantId
Halvorson - Olson · Lake Angeloton · ★ 3.7
items
[
  {
    "menuItemId": 109,
    "quantity": 1,
    "unitPrice": 4.1,
    "lineTotal": 4.1
  },
  {
    "menuItemId": 88,
    "quantity": 4,
    "unitPrice": 46.78,
    "lineTotal": 187.12
  }
]
subtotal
191.22
deliveryFee
4.85
tip
0.35
total
196.42
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/68"
)
food_order = res.json()
{
  "id": 68,
  "userId": 221,
  "restaurantId": 8,
  "items": [
    {
      "menuItemId": 109,
      "quantity": 1,
      "unitPrice": 4.1,
      "lineTotal": 4.1
    },
    {
      "menuItemId": 88,
      "quantity": 4,
      "unitPrice": 46.78,
      "lineTotal": 187.12
    }
  ],
  "subtotal": 191.22,
  "deliveryFee": 4.85,
  "tip": 0.35,
  "total": 196.42,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-01-10T22:49:09.925Z",
  "deliveredAt": "2026-01-11T01:26:01.678Z"
}
Draftbit