example-data.com

food-orders / #237

userId
Ismael Ward @ismael_ward
restaurantId
Hartmann, Dach and Kub · Gusikowskifield · ★ 4.2
items
[
  {
    "menuItemId": 567,
    "quantity": 3,
    "unitPrice": 46.5,
    "lineTotal": 139.5
  },
  {
    "menuItemId": 563,
    "quantity": 4,
    "unitPrice": 22.89,
    "lineTotal": 91.56
  },
  {
    "menuItemId": 561,
    "quantity": 4,
    "unitPrice": 13.27,
    "lineTotal": 53.08
  },
  {
    "menuItemId": 566,
    "quantity": 1,
    "unitPrice": 4.17,
    "lineTotal": 4.17
  }
]
subtotal
288.31
deliveryFee
6.59
tip
5.35
total
300.25
currency
USD
status
placed
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/237"
)
food_order = res.json()
{
  "id": 237,
  "userId": 178,
  "restaurantId": 38,
  "items": [
    {
      "menuItemId": 567,
      "quantity": 3,
      "unitPrice": 46.5,
      "lineTotal": 139.5
    },
    {
      "menuItemId": 563,
      "quantity": 4,
      "unitPrice": 22.89,
      "lineTotal": 91.56
    },
    {
      "menuItemId": 561,
      "quantity": 4,
      "unitPrice": 13.27,
      "lineTotal": 53.08
    },
    {
      "menuItemId": 566,
      "quantity": 1,
      "unitPrice": 4.17,
      "lineTotal": 4.17
    }
  ],
  "subtotal": 288.31,
  "deliveryFee": 6.59,
  "tip": 5.35,
  "total": 300.25,
  "currency": "USD",
  "status": "placed",
  "placedAt": "2026-01-19T13:43:33.910Z",
  "deliveredAt": null
}
Draftbit