example-data.com

food-orders / #55

userId
Autumn Bartell @autumn.bartell95
restaurantId
Simonis - Kshlerin · Stanleybury · ★ 2.8
items
[
  {
    "menuItemId": 665,
    "quantity": 1,
    "unitPrice": 62.68,
    "lineTotal": 62.68
  },
  {
    "menuItemId": 676,
    "quantity": 3,
    "unitPrice": 66.08,
    "lineTotal": 198.24
  }
]
subtotal
260.92
deliveryFee
6.09
tip
1.44
total
268.45
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/55"
)
food_order = res.json()
{
  "id": 55,
  "userId": 58,
  "restaurantId": 45,
  "items": [
    {
      "menuItemId": 665,
      "quantity": 1,
      "unitPrice": 62.68,
      "lineTotal": 62.68
    },
    {
      "menuItemId": 676,
      "quantity": 3,
      "unitPrice": 66.08,
      "lineTotal": 198.24
    }
  ],
  "subtotal": 260.92,
  "deliveryFee": 6.09,
  "tip": 1.44,
  "total": 268.45,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-07-06T07:51:11.362Z",
  "deliveredAt": "2025-07-06T09:58:07.730Z"
}
Draftbit