example-data.com

food-orders / #149

userId
Hermina West @hermina.west3
restaurantId
Hartmann, Dach and Kub · Gusikowskifield · ★ 4.2
items
[
  {
    "menuItemId": 559,
    "quantity": 3,
    "unitPrice": 48.21,
    "lineTotal": 144.63
  }
]
subtotal
144.63
deliveryFee
7.2
tip
5.9
total
157.73
currency
USD
status
out_for_delivery
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/149"
)
food_order = res.json()
{
  "id": 149,
  "userId": 51,
  "restaurantId": 38,
  "items": [
    {
      "menuItemId": 559,
      "quantity": 3,
      "unitPrice": 48.21,
      "lineTotal": 144.63
    }
  ],
  "subtotal": 144.63,
  "deliveryFee": 7.2,
  "tip": 5.9,
  "total": 157.73,
  "currency": "USD",
  "status": "out_for_delivery",
  "placedAt": "2025-12-10T08:58:27.910Z",
  "deliveredAt": null
}
Draftbit