example-data.com

food-orders / #110

userId
Leonel Hamill @leonel_hamill33
restaurantId
Kertzmann - Boyer · Chicago · ★ 4.1
items
[
  {
    "menuItemId": 1295,
    "quantity": 2,
    "unitPrice": 69.87,
    "lineTotal": 139.74
  },
  {
    "menuItemId": 1304,
    "quantity": 3,
    "unitPrice": 4.8,
    "lineTotal": 14.4
  },
  {
    "menuItemId": 1292,
    "quantity": 2,
    "unitPrice": 20.49,
    "lineTotal": 40.98
  },
  {
    "menuItemId": 1300,
    "quantity": 2,
    "unitPrice": 19.05,
    "lineTotal": 38.1
  },
  {
    "menuItemId": 1293,
    "quantity": 2,
    "unitPrice": 30.38,
    "lineTotal": 60.76
  }
]
subtotal
293.98
deliveryFee
6.21
tip
7.09
total
307.28
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/110"
)
food_order = res.json()
{
  "id": 110,
  "userId": 11,
  "restaurantId": 90,
  "items": [
    {
      "menuItemId": 1295,
      "quantity": 2,
      "unitPrice": 69.87,
      "lineTotal": 139.74
    },
    {
      "menuItemId": 1304,
      "quantity": 3,
      "unitPrice": 4.8,
      "lineTotal": 14.4
    },
    {
      "menuItemId": 1292,
      "quantity": 2,
      "unitPrice": 20.49,
      "lineTotal": 40.98
    },
    {
      "menuItemId": 1300,
      "quantity": 2,
      "unitPrice": 19.05,
      "lineTotal": 38.1
    },
    {
      "menuItemId": 1293,
      "quantity": 2,
      "unitPrice": 30.38,
      "lineTotal": 60.76
    }
  ],
  "subtotal": 293.98,
  "deliveryFee": 6.21,
  "tip": 7.09,
  "total": 307.28,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2025-07-24T12:18:55.566Z",
  "deliveredAt": null
}
Draftbit