example-data.com

food-orders / #218

userId
Lavonne Schmidt @lavonne.schmidt95
restaurantId
Effertz, Langworth and Walsh · Lake Maudiehaven · ★ 2.7
items
[
  {
    "menuItemId": 328,
    "quantity": 2,
    "unitPrice": 22.43,
    "lineTotal": 44.86
  }
]
subtotal
44.86
deliveryFee
5.65
tip
11.21
total
61.72
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/218"
)
food_order = res.json()
{
  "id": 218,
  "userId": 192,
  "restaurantId": 21,
  "items": [
    {
      "menuItemId": 328,
      "quantity": 2,
      "unitPrice": 22.43,
      "lineTotal": 44.86
    }
  ],
  "subtotal": 44.86,
  "deliveryFee": 5.65,
  "tip": 11.21,
  "total": 61.72,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-04-18T02:13:26.609Z",
  "deliveredAt": "2025-04-18T05:43:39.023Z"
}
Draftbit