example-data.com

food-orders / #161

userId
Jameson Considine @jameson.considine1
restaurantId
Welch LLC · North Brando · ★ 4.0
items
[
  {
    "menuItemId": 1377,
    "quantity": 2,
    "unitPrice": 52.08,
    "lineTotal": 104.16
  },
  {
    "menuItemId": 1379,
    "quantity": 2,
    "unitPrice": 51.51,
    "lineTotal": 103.02
  },
  {
    "menuItemId": 1376,
    "quantity": 2,
    "unitPrice": 8.95,
    "lineTotal": 17.9
  }
]
subtotal
225.08
deliveryFee
1.15
tip
10.79
total
237.02
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/161"
)
food_order = res.json()
{
  "id": 161,
  "userId": 236,
  "restaurantId": 95,
  "items": [
    {
      "menuItemId": 1377,
      "quantity": 2,
      "unitPrice": 52.08,
      "lineTotal": 104.16
    },
    {
      "menuItemId": 1379,
      "quantity": 2,
      "unitPrice": 51.51,
      "lineTotal": 103.02
    },
    {
      "menuItemId": 1376,
      "quantity": 2,
      "unitPrice": 8.95,
      "lineTotal": 17.9
    }
  ],
  "subtotal": 225.08,
  "deliveryFee": 1.15,
  "tip": 10.79,
  "total": 237.02,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-01-12T02:28:54.733Z",
  "deliveredAt": "2026-01-12T04:26:10.072Z"
}
Draftbit