example-data.com

food-orders / #238

userId
Chyna Kozey @chyna_kozey80
restaurantId
Rodriguez, Nicolas and Schneider · New Anthony · ★ 4.9
items
[
  {
    "menuItemId": 758,
    "quantity": 2,
    "unitPrice": 48.02,
    "lineTotal": 96.04
  },
  {
    "menuItemId": 759,
    "quantity": 1,
    "unitPrice": 3.05,
    "lineTotal": 3.05
  },
  {
    "menuItemId": 757,
    "quantity": 1,
    "unitPrice": 60.18,
    "lineTotal": 60.18
  },
  {
    "menuItemId": 763,
    "quantity": 2,
    "unitPrice": 12.39,
    "lineTotal": 24.78
  },
  {
    "menuItemId": 761,
    "quantity": 4,
    "unitPrice": 24.15,
    "lineTotal": 96.6
  }
]
subtotal
280.65
deliveryFee
1.77
tip
4.93
total
287.35
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/238"
)
food_order = res.json()
{
  "id": 238,
  "userId": 140,
  "restaurantId": 50,
  "items": [
    {
      "menuItemId": 758,
      "quantity": 2,
      "unitPrice": 48.02,
      "lineTotal": 96.04
    },
    {
      "menuItemId": 759,
      "quantity": 1,
      "unitPrice": 3.05,
      "lineTotal": 3.05
    },
    {
      "menuItemId": 757,
      "quantity": 1,
      "unitPrice": 60.18,
      "lineTotal": 60.18
    },
    {
      "menuItemId": 763,
      "quantity": 2,
      "unitPrice": 12.39,
      "lineTotal": 24.78
    },
    {
      "menuItemId": 761,
      "quantity": 4,
      "unitPrice": 24.15,
      "lineTotal": 96.6
    }
  ],
  "subtotal": 280.65,
  "deliveryFee": 1.77,
  "tip": 4.93,
  "total": 287.35,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-12-29T03:20:21.080Z",
  "deliveredAt": "2025-12-29T06:05:43.854Z"
}
Draftbit