example-data.com

food-orders / #47

userId
Talon Turner @talon.turner59
restaurantId
Price LLC · Aspen Hill · ★ 2.9
items
[
  {
    "menuItemId": 1231,
    "quantity": 3,
    "unitPrice": 64.87,
    "lineTotal": 194.61
  },
  {
    "menuItemId": 1234,
    "quantity": 1,
    "unitPrice": 11.13,
    "lineTotal": 11.13
  },
  {
    "menuItemId": 1235,
    "quantity": 2,
    "unitPrice": 11.65,
    "lineTotal": 23.3
  },
  {
    "menuItemId": 1232,
    "quantity": 2,
    "unitPrice": 4.21,
    "lineTotal": 8.42
  },
  {
    "menuItemId": 1233,
    "quantity": 1,
    "unitPrice": 53.6,
    "lineTotal": 53.6
  }
]
subtotal
291.06
deliveryFee
7.2
tip
5.27
total
303.53
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/47"
)
food_order = res.json()
{
  "id": 47,
  "userId": 166,
  "restaurantId": 84,
  "items": [
    {
      "menuItemId": 1231,
      "quantity": 3,
      "unitPrice": 64.87,
      "lineTotal": 194.61
    },
    {
      "menuItemId": 1234,
      "quantity": 1,
      "unitPrice": 11.13,
      "lineTotal": 11.13
    },
    {
      "menuItemId": 1235,
      "quantity": 2,
      "unitPrice": 11.65,
      "lineTotal": 23.3
    },
    {
      "menuItemId": 1232,
      "quantity": 2,
      "unitPrice": 4.21,
      "lineTotal": 8.42
    },
    {
      "menuItemId": 1233,
      "quantity": 1,
      "unitPrice": 53.6,
      "lineTotal": 53.6
    }
  ],
  "subtotal": 291.06,
  "deliveryFee": 7.2,
  "tip": 5.27,
  "total": 303.53,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-10-23T02:33:59.319Z",
  "deliveredAt": "2025-10-23T06:06:34.313Z"
}
Draftbit