example-data.com

food-orders / #145

userId
Carmel Schultz @carmel.schultz
restaurantId
Collins Group · Murrieta · ★ 2.8
items
[
  {
    "menuItemId": 302,
    "quantity": 3,
    "unitPrice": 47.36,
    "lineTotal": 142.08
  },
  {
    "menuItemId": 293,
    "quantity": 4,
    "unitPrice": 25.88,
    "lineTotal": 103.52
  },
  {
    "menuItemId": 297,
    "quantity": 3,
    "unitPrice": 7.24,
    "lineTotal": 21.72
  },
  {
    "menuItemId": 290,
    "quantity": 3,
    "unitPrice": 23.1,
    "lineTotal": 69.3
  }
]
subtotal
336.62
deliveryFee
2.3
tip
0.6
total
339.52
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/145"
)
food_order = res.json()
{
  "id": 145,
  "userId": 156,
  "restaurantId": 19,
  "items": [
    {
      "menuItemId": 302,
      "quantity": 3,
      "unitPrice": 47.36,
      "lineTotal": 142.08
    },
    {
      "menuItemId": 293,
      "quantity": 4,
      "unitPrice": 25.88,
      "lineTotal": 103.52
    },
    {
      "menuItemId": 297,
      "quantity": 3,
      "unitPrice": 7.24,
      "lineTotal": 21.72
    },
    {
      "menuItemId": 290,
      "quantity": 3,
      "unitPrice": 23.1,
      "lineTotal": 69.3
    }
  ],
  "subtotal": 336.62,
  "deliveryFee": 2.3,
  "tip": 0.6,
  "total": 339.52,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-05-27T17:33:31.562Z",
  "deliveredAt": "2025-05-27T19:28:14.485Z"
}
Draftbit