example-data.com

food-orders / #148

userId
Everett Yundt @everett_yundt11
restaurantId
Mills, Kassulke and Marquardt · Jeffersonville · ★ 3.6
items
[
  {
    "menuItemId": 455,
    "quantity": 3,
    "unitPrice": 22.94,
    "lineTotal": 68.82
  },
  {
    "menuItemId": 446,
    "quantity": 1,
    "unitPrice": 13.06,
    "lineTotal": 13.06
  },
  {
    "menuItemId": 443,
    "quantity": 4,
    "unitPrice": 17.94,
    "lineTotal": 71.76
  },
  {
    "menuItemId": 444,
    "quantity": 4,
    "unitPrice": 24.4,
    "lineTotal": 97.6
  },
  {
    "menuItemId": 448,
    "quantity": 4,
    "unitPrice": 72.84,
    "lineTotal": 291.36
  }
]
subtotal
542.6
deliveryFee
4.64
tip
8.02
total
555.26
currency
USD
status
cancelled
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/148"
)
food_order = res.json()
{
  "id": 148,
  "userId": 44,
  "restaurantId": 30,
  "items": [
    {
      "menuItemId": 455,
      "quantity": 3,
      "unitPrice": 22.94,
      "lineTotal": 68.82
    },
    {
      "menuItemId": 446,
      "quantity": 1,
      "unitPrice": 13.06,
      "lineTotal": 13.06
    },
    {
      "menuItemId": 443,
      "quantity": 4,
      "unitPrice": 17.94,
      "lineTotal": 71.76
    },
    {
      "menuItemId": 444,
      "quantity": 4,
      "unitPrice": 24.4,
      "lineTotal": 97.6
    },
    {
      "menuItemId": 448,
      "quantity": 4,
      "unitPrice": 72.84,
      "lineTotal": 291.36
    }
  ],
  "subtotal": 542.6,
  "deliveryFee": 4.64,
  "tip": 8.02,
  "total": 555.26,
  "currency": "USD",
  "status": "cancelled",
  "placedAt": "2026-04-14T22:14:09.697Z",
  "deliveredAt": null
}
Draftbit