example-data.com

food-orders / #126

userId
Jennifer Hoeger @jennifer.hoeger
restaurantId
Braun and Sons · Deckowland · ★ 3.6
items
[
  {
    "menuItemId": 609,
    "quantity": 3,
    "unitPrice": 63.63,
    "lineTotal": 190.89
  },
  {
    "menuItemId": 606,
    "quantity": 1,
    "unitPrice": 73.22,
    "lineTotal": 73.22
  },
  {
    "menuItemId": 614,
    "quantity": 3,
    "unitPrice": 27.39,
    "lineTotal": 82.17
  }
]
subtotal
346.28
deliveryFee
3.73
tip
11.34
total
361.35
currency
USD
status
delivered
placedAt
deliveredAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/food-orders/126"
)
food_order = res.json()
{
  "id": 126,
  "userId": 119,
  "restaurantId": 42,
  "items": [
    {
      "menuItemId": 609,
      "quantity": 3,
      "unitPrice": 63.63,
      "lineTotal": 190.89
    },
    {
      "menuItemId": 606,
      "quantity": 1,
      "unitPrice": 73.22,
      "lineTotal": 73.22
    },
    {
      "menuItemId": 614,
      "quantity": 3,
      "unitPrice": 27.39,
      "lineTotal": 82.17
    }
  ],
  "subtotal": 346.28,
  "deliveryFee": 3.73,
  "tip": 11.34,
  "total": 361.35,
  "currency": "USD",
  "status": "delivered",
  "placedAt": "2025-10-28T12:19:50.394Z",
  "deliveredAt": "2025-10-28T15:47:37.396Z"
}
Draftbit