example-data.com

food-orders / #108

userId
Camron O'Conner @camron.oconner54
restaurantId
Bartell, Brakus and Schamberger · New Terrytown · ★ 3.3
items
[
  {
    "menuItemId": 783,
    "quantity": 3,
    "unitPrice": 50.23,
    "lineTotal": 150.69
  },
  {
    "menuItemId": 780,
    "quantity": 1,
    "unitPrice": 58.6,
    "lineTotal": 58.6
  },
  {
    "menuItemId": 779,
    "quantity": 3,
    "unitPrice": 58.87,
    "lineTotal": 176.61
  }
]
subtotal
385.9
deliveryFee
6.9
tip
2.29
total
395.09
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/108"
)
food_order = res.json()
{
  "id": 108,
  "userId": 94,
  "restaurantId": 52,
  "items": [
    {
      "menuItemId": 783,
      "quantity": 3,
      "unitPrice": 50.23,
      "lineTotal": 150.69
    },
    {
      "menuItemId": 780,
      "quantity": 1,
      "unitPrice": 58.6,
      "lineTotal": 58.6
    },
    {
      "menuItemId": 779,
      "quantity": 3,
      "unitPrice": 58.87,
      "lineTotal": 176.61
    }
  ],
  "subtotal": 385.9,
  "deliveryFee": 6.9,
  "tip": 2.29,
  "total": 395.09,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-07-05T12:04:20.148Z",
  "deliveredAt": "2025-07-05T16:01:55.325Z"
}
Draftbit