example-data.com

food-orders / #76

userId
Fritz Skiles @fritz_skiles
restaurantId
Parisian and Sons · New Timmothy · ★ 3.9
items
[
  {
    "menuItemId": 1046,
    "quantity": 2,
    "unitPrice": 44.13,
    "lineTotal": 88.26
  },
  {
    "menuItemId": 1048,
    "quantity": 1,
    "unitPrice": 43.73,
    "lineTotal": 43.73
  }
]
subtotal
131.99
deliveryFee
0.93
tip
5.76
total
138.68
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/76"
)
food_order = res.json()
{
  "id": 76,
  "userId": 144,
  "restaurantId": 70,
  "items": [
    {
      "menuItemId": 1046,
      "quantity": 2,
      "unitPrice": 44.13,
      "lineTotal": 88.26
    },
    {
      "menuItemId": 1048,
      "quantity": 1,
      "unitPrice": 43.73,
      "lineTotal": 43.73
    }
  ],
  "subtotal": 131.99,
  "deliveryFee": 0.93,
  "tip": 5.76,
  "total": 138.68,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-04-30T11:47:31.412Z",
  "deliveredAt": "2026-04-30T14:36:26.548Z"
}
Draftbit