example-data.com

food-orders / #128

userId
Lacy Gusikowski @lacy.gusikowski
restaurantId
McGlynn, Bosco and Gusikowski · Altadena · ★ 3.8
items
[
  {
    "menuItemId": 491,
    "quantity": 2,
    "unitPrice": 7.12,
    "lineTotal": 14.24
  },
  {
    "menuItemId": 486,
    "quantity": 1,
    "unitPrice": 14.76,
    "lineTotal": 14.76
  }
]
subtotal
29
deliveryFee
1.51
tip
0.34
total
30.85
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/128"
)
food_order = res.json()
{
  "id": 128,
  "userId": 47,
  "restaurantId": 33,
  "items": [
    {
      "menuItemId": 491,
      "quantity": 2,
      "unitPrice": 7.12,
      "lineTotal": 14.24
    },
    {
      "menuItemId": 486,
      "quantity": 1,
      "unitPrice": 14.76,
      "lineTotal": 14.76
    }
  ],
  "subtotal": 29,
  "deliveryFee": 1.51,
  "tip": 0.34,
  "total": 30.85,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-11T22:43:19.940Z",
  "deliveredAt": "2026-03-11T23:45:59.321Z"
}
Draftbit