example-data.com

food-orders / #173

userId
Loren Schmidt @loren_schmidt
restaurantId
Pouros, O'Reilly and Block · Lake Chandler · ★ 3.5
items
[
  {
    "menuItemId": 706,
    "quantity": 1,
    "unitPrice": 67.69,
    "lineTotal": 67.69
  },
  {
    "menuItemId": 710,
    "quantity": 1,
    "unitPrice": 14.91,
    "lineTotal": 14.91
  },
  {
    "menuItemId": 716,
    "quantity": 3,
    "unitPrice": 41.54,
    "lineTotal": 124.62
  },
  {
    "menuItemId": 727,
    "quantity": 1,
    "unitPrice": 49.16,
    "lineTotal": 49.16
  }
]
subtotal
256.38
deliveryFee
3.71
tip
11.55
total
271.64
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/173"
)
food_order = res.json()
{
  "id": 173,
  "userId": 222,
  "restaurantId": 47,
  "items": [
    {
      "menuItemId": 706,
      "quantity": 1,
      "unitPrice": 67.69,
      "lineTotal": 67.69
    },
    {
      "menuItemId": 710,
      "quantity": 1,
      "unitPrice": 14.91,
      "lineTotal": 14.91
    },
    {
      "menuItemId": 716,
      "quantity": 3,
      "unitPrice": 41.54,
      "lineTotal": 124.62
    },
    {
      "menuItemId": 727,
      "quantity": 1,
      "unitPrice": 49.16,
      "lineTotal": 49.16
    }
  ],
  "subtotal": 256.38,
  "deliveryFee": 3.71,
  "tip": 11.55,
  "total": 271.64,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-09T01:59:23.179Z",
  "deliveredAt": "2026-03-09T05:57:49.652Z"
}
Draftbit