example-data.com

food-orders / #213

userId
Casimir Smitham @casimir_smitham35
restaurantId
Hickle, Glover and Christiansen · Zulauffurt · ★ 3.7
items
[
  {
    "menuItemId": 308,
    "quantity": 1,
    "unitPrice": 55.81,
    "lineTotal": 55.81
  },
  {
    "menuItemId": 322,
    "quantity": 1,
    "unitPrice": 22.66,
    "lineTotal": 22.66
  },
  {
    "menuItemId": 305,
    "quantity": 1,
    "unitPrice": 6.52,
    "lineTotal": 6.52
  }
]
subtotal
84.99
deliveryFee
3.53
tip
2.4
total
90.92
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/213"
)
food_order = res.json()
{
  "id": 213,
  "userId": 16,
  "restaurantId": 20,
  "items": [
    {
      "menuItemId": 308,
      "quantity": 1,
      "unitPrice": 55.81,
      "lineTotal": 55.81
    },
    {
      "menuItemId": 322,
      "quantity": 1,
      "unitPrice": 22.66,
      "lineTotal": 22.66
    },
    {
      "menuItemId": 305,
      "quantity": 1,
      "unitPrice": 6.52,
      "lineTotal": 6.52
    }
  ],
  "subtotal": 84.99,
  "deliveryFee": 3.53,
  "tip": 2.4,
  "total": 90.92,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-29T11:50:38.189Z",
  "deliveredAt": "2026-03-29T12:51:51.510Z"
}
Draftbit