example-data.com

food-orders / #52

userId
Jacynthe Sawayn @jacynthe_sawayn71
restaurantId
Halvorson - Torp · Tonawanda · ★ 3.3
items
[
  {
    "menuItemId": 281,
    "quantity": 2,
    "unitPrice": 34.47,
    "lineTotal": 68.94
  }
]
subtotal
68.94
deliveryFee
1.04
tip
9.85
total
79.83
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/52"
)
food_order = res.json()
{
  "id": 52,
  "userId": 146,
  "restaurantId": 18,
  "items": [
    {
      "menuItemId": 281,
      "quantity": 2,
      "unitPrice": 34.47,
      "lineTotal": 68.94
    }
  ],
  "subtotal": 68.94,
  "deliveryFee": 1.04,
  "tip": 9.85,
  "total": 79.83,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-12-28T12:35:10.900Z",
  "deliveredAt": "2025-12-28T14:06:18.393Z"
}
Draftbit