example-data.com

food-orders / #104

userId
Einar Volkman @einar_volkman69
restaurantId
Parisian and Sons · New Timmothy · ★ 3.9
items
[
  {
    "menuItemId": 1049,
    "quantity": 1,
    "unitPrice": 40.58,
    "lineTotal": 40.58
  },
  {
    "menuItemId": 1056,
    "quantity": 2,
    "unitPrice": 31.32,
    "lineTotal": 62.64
  },
  {
    "menuItemId": 1043,
    "quantity": 3,
    "unitPrice": 55.21,
    "lineTotal": 165.63
  }
]
subtotal
268.85
deliveryFee
7.61
tip
11.11
total
287.57
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/104"
)
food_order = res.json()
{
  "id": 104,
  "userId": 7,
  "restaurantId": 70,
  "items": [
    {
      "menuItemId": 1049,
      "quantity": 1,
      "unitPrice": 40.58,
      "lineTotal": 40.58
    },
    {
      "menuItemId": 1056,
      "quantity": 2,
      "unitPrice": 31.32,
      "lineTotal": 62.64
    },
    {
      "menuItemId": 1043,
      "quantity": 3,
      "unitPrice": 55.21,
      "lineTotal": 165.63
    }
  ],
  "subtotal": 268.85,
  "deliveryFee": 7.61,
  "tip": 11.11,
  "total": 287.57,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-31T11:31:49.519Z",
  "deliveredAt": "2026-03-31T14:54:13.140Z"
}
Draftbit