example-data.com

food-orders / #224

userId
Roberta Mueller-Yundt @roberta_mueller-yundt
restaurantId
Rogahn - Kreiger · South Cathrynside · ★ 4.6
items
[
  {
    "menuItemId": 1216,
    "quantity": 1,
    "unitPrice": 12.2,
    "lineTotal": 12.2
  }
]
subtotal
12.2
deliveryFee
6.05
tip
4.95
total
23.2
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/224"
)
food_order = res.json()
{
  "id": 224,
  "userId": 162,
  "restaurantId": 82,
  "items": [
    {
      "menuItemId": 1216,
      "quantity": 1,
      "unitPrice": 12.2,
      "lineTotal": 12.2
    }
  ],
  "subtotal": 12.2,
  "deliveryFee": 6.05,
  "tip": 4.95,
  "total": 23.2,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2025-05-25T22:26:53.946Z",
  "deliveredAt": null
}
Draftbit