example-data.com

food-orders / #67

userId
Hortense Cruickshank @hortense.cruickshank65
restaurantId
Klocko, Gusikowski and Lockman · Lake Vern · ★ 2.9
items
[
  {
    "menuItemId": 1339,
    "quantity": 2,
    "unitPrice": 5.4,
    "lineTotal": 10.8
  },
  {
    "menuItemId": 1340,
    "quantity": 4,
    "unitPrice": 7.03,
    "lineTotal": 28.12
  },
  {
    "menuItemId": 1342,
    "quantity": 3,
    "unitPrice": 22.14,
    "lineTotal": 66.42
  },
  {
    "menuItemId": 1346,
    "quantity": 2,
    "unitPrice": 15.86,
    "lineTotal": 31.72
  },
  {
    "menuItemId": 1341,
    "quantity": 1,
    "unitPrice": 47.74,
    "lineTotal": 47.74
  }
]
subtotal
184.8
deliveryFee
4.97
tip
9.51
total
199.28
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/67"
)
food_order = res.json()
{
  "id": 67,
  "userId": 83,
  "restaurantId": 92,
  "items": [
    {
      "menuItemId": 1339,
      "quantity": 2,
      "unitPrice": 5.4,
      "lineTotal": 10.8
    },
    {
      "menuItemId": 1340,
      "quantity": 4,
      "unitPrice": 7.03,
      "lineTotal": 28.12
    },
    {
      "menuItemId": 1342,
      "quantity": 3,
      "unitPrice": 22.14,
      "lineTotal": 66.42
    },
    {
      "menuItemId": 1346,
      "quantity": 2,
      "unitPrice": 15.86,
      "lineTotal": 31.72
    },
    {
      "menuItemId": 1341,
      "quantity": 1,
      "unitPrice": 47.74,
      "lineTotal": 47.74
    }
  ],
  "subtotal": 184.8,
  "deliveryFee": 4.97,
  "tip": 9.51,
  "total": 199.28,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-05-30T06:05:03.519Z",
  "deliveredAt": "2025-05-30T07:53:29.993Z"
}
Draftbit