example-data.com

food-orders / #192

userId
Jennifer Stoltenberg @jennifer_stoltenberg
restaurantId
Cummings and Sons · Rodriguezville · ★ 3.5
items
[
  {
    "menuItemId": 546,
    "quantity": 4,
    "unitPrice": 31.25,
    "lineTotal": 125
  },
  {
    "menuItemId": 537,
    "quantity": 4,
    "unitPrice": 17.62,
    "lineTotal": 70.48
  }
]
subtotal
195.48
deliveryFee
6.89
tip
1.86
total
204.23
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/192"
)
food_order = res.json()
{
  "id": 192,
  "userId": 25,
  "restaurantId": 37,
  "items": [
    {
      "menuItemId": 546,
      "quantity": 4,
      "unitPrice": 31.25,
      "lineTotal": 125
    },
    {
      "menuItemId": 537,
      "quantity": 4,
      "unitPrice": 17.62,
      "lineTotal": 70.48
    }
  ],
  "subtotal": 195.48,
  "deliveryFee": 6.89,
  "tip": 1.86,
  "total": 204.23,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2026-05-12T07:05:59.564Z",
  "deliveredAt": null
}
Draftbit