example-data.com

food-orders / #125

userId
Elvis Littel-Vandervort @elvis.littel-vandervort28
restaurantId
Bergstrom LLC · South Gate · ★ 3.0
items
[
  {
    "menuItemId": 1001,
    "quantity": 2,
    "unitPrice": 79.86,
    "lineTotal": 159.72
  },
  {
    "menuItemId": 993,
    "quantity": 4,
    "unitPrice": 27.62,
    "lineTotal": 110.48
  },
  {
    "menuItemId": 1000,
    "quantity": 1,
    "unitPrice": 74.17,
    "lineTotal": 74.17
  }
]
subtotal
344.37
deliveryFee
3.33
tip
2.29
total
349.99
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/125"
)
food_order = res.json()
{
  "id": 125,
  "userId": 175,
  "restaurantId": 66,
  "items": [
    {
      "menuItemId": 1001,
      "quantity": 2,
      "unitPrice": 79.86,
      "lineTotal": 159.72
    },
    {
      "menuItemId": 993,
      "quantity": 4,
      "unitPrice": 27.62,
      "lineTotal": 110.48
    },
    {
      "menuItemId": 1000,
      "quantity": 1,
      "unitPrice": 74.17,
      "lineTotal": 74.17
    }
  ],
  "subtotal": 344.37,
  "deliveryFee": 3.33,
  "tip": 2.29,
  "total": 349.99,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2026-03-06T01:54:16.134Z",
  "deliveredAt": "2026-03-06T05:13:08.757Z"
}
Draftbit